public class PKIXIdentity
extends java.lang.Object
Constructor and Description |
---|
PKIXIdentity(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo,
X509CertificateHolder certHolder)
Base constructor - a private key and its associated public key certificate.
|
PKIXIdentity(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo,
X509CertificateHolder[] certificateHolders)
Base constructor - a private key and its associated certificate chain.
|
Modifier and Type | Method and Description |
---|---|
X509CertificateHolder |
getCertificate()
Return the certificate associated with the private key info.
|
X509CertificateHolder[] |
getCertificateChain()
Return the certificate chain associated with the private key info.
|
org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
getPrivateKeyInfo()
Return the private key info for this identity.
|
RecipientId |
getRecipientId()
Return a RecipientId for the identity's (private key, certificate) pair.
|
public PKIXIdentity(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, X509CertificateHolder[] certificateHolders)
privateKeyInfo
- the private key.certificateHolders
- the public key certificates identifying it.public PKIXIdentity(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, X509CertificateHolder certHolder)
privateKeyInfo
- the private key.certHolder
- privKey's matching public key certificate.public org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo()
public X509CertificateHolder getCertificate()
public X509CertificateHolder[] getCertificateChain()
public RecipientId getRecipientId()