Constructor and Description |
---|
ProxyCSRImpl(org.bouncycastle.pkcs.PKCS10CertificationRequest csr,
PrivateKey pk) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.pkcs.PKCS10CertificationRequest |
getCSR()
Returns the CSR
|
PrivateKey |
getPrivateKey()
Returns the generated private key of this CSR.
|
boolean |
hasPrivateKey() |
public ProxyCSRImpl(org.bouncycastle.pkcs.PKCS10CertificationRequest csr, PrivateKey pk)
csr
- PKCS10 certification requestpk
- use null if PrivateKey was not generatedpublic org.bouncycastle.pkcs.PKCS10CertificationRequest getCSR()
public PrivateKey getPrivateKey() throws IllegalStateException
getPrivateKey
in interface ProxyCSR
IllegalStateException
- if the private and public keys were not generatedpublic boolean hasPrivateKey()
hasPrivateKey
in interface ProxyCSR
ProxyCSR.getPrivateKey()
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.