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