public class JcaPKIXIdentity extends PKIXIdentity
Constructor and Description |
---|
JcaPKIXIdentity(PrivateKey privKey,
X509Certificate cert)
Base constructor - a private key and its associated public key certificate.
|
JcaPKIXIdentity(PrivateKey privKey,
X509Certificate[] certs)
Base constructor - a private key and its associated certificate chain.
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
getPrivateKey()
Return the private key for this identity.
|
X509Certificate |
getX509Certificate()
Return the certificate associated with the private key.
|
X509Certificate[] |
getX509CertificateChain()
Return the certificate chain associated with the private key.
|
getCertificate, getCertificateChain, getPrivateKeyInfo, getRecipientId
public JcaPKIXIdentity(PrivateKey privKey, X509Certificate[] certs)
privKey
- the private key.certs
- the public key certificates identifying it.public JcaPKIXIdentity(PrivateKey privKey, X509Certificate cert)
privKey
- the private key.cert
- privKey's matching public key certificate.public PrivateKey getPrivateKey()
public X509Certificate getX509Certificate()
public X509Certificate[] getX509CertificateChain()
Copyright © 2020 BouncyCastle.org. All rights reserved.