Constructor and Description |
---|
ProxyCSRImpl(org.bouncycastle.pkcs.PKCS10CertificationRequest csr,
java.security.PrivateKey pk) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.pkcs.PKCS10CertificationRequest |
getCSR()
Returns the CSR
|
java.security.PrivateKey |
getPrivateKey()
Returns the generated private key of this CSR.
|
boolean |
hasPrivateKey() |
public ProxyCSRImpl(org.bouncycastle.pkcs.PKCS10CertificationRequest csr, java.security.PrivateKey pk)
csr
- PKCS10 certification requestpk
- use null if PrivateKey was not generatedpublic org.bouncycastle.pkcs.PKCS10CertificationRequest getCSR()
public java.security.PrivateKey getPrivateKey() throws java.lang.IllegalStateException
getPrivateKey
in interface ProxyCSR
java.lang.IllegalStateException
- if the private and public keys were not generatedpublic boolean hasPrivateKey()
hasPrivateKey
in interface ProxyCSR
ProxyCSR.getPrivateKey()