| Modifier and Type | Field and Description |
|---|---|
private org.bouncycastle.pkcs.PKCS10CertificationRequest |
csr |
private java.security.PrivateKey |
pk |
| 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() |
private org.bouncycastle.pkcs.PKCS10CertificationRequest csr
private java.security.PrivateKey pk
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 ProxyCSRjava.lang.IllegalStateException - if the private and public keys were not generatedpublic boolean hasPrivateKey()
hasPrivateKey in interface ProxyCSRProxyCSR.getPrivateKey()