| Modifier and Type | Field and Description |
|---|---|
| private final X509CertificateHolder[] | |
| private final PrivateKeyInfo |
| Access | Constructor and Description |
|---|---|
| public | PKIXIdentity(PrivateKeyInfo
the private key. privateKeyInfo, X509CertificateHolder[] the public key certificates identifying it. certificateHolders)Base constructor - a private key and its associated certificate chain. |
| public | PKIXIdentity(PrivateKeyInfo
the private key. privateKeyInfo, X509CertificateHolder privKey's matching public key certificate. certHolder)Base constructor - a private key and its associated public key certificate. |
| Modifier and Type | Method and Description |
|---|---|
| public X509CertificateHolder | Returns: a X509CertificateHolderReturn the certificate associated with the private key info. |
| public X509CertificateHolder[] | Returns: the certificate chain.Return the certificate chain associated with the private key info. |
| public PrivateKeyInfo | Returns: the identity's private key (if available, null otherwise).Return the private key info for this identity. |
| public RecipientId | |
| private byte[] |
| certificateHolders | back to summary |
|---|---|
| private final X509CertificateHolder[] certificateHolders | |
| privateKeyInfo | back to summary |
|---|---|
| private final PrivateKeyInfo privateKeyInfo | |
| PKIXIdentity | back to summary |
|---|---|
| public PKIXIdentity(PrivateKeyInfo privateKeyInfo, X509CertificateHolder[] certificateHolders) Base constructor - a private key and its associated certificate chain. The chain should be ordered so that certificateHolders[0] is the matching public key for privKey.
| |
| PKIXIdentity | back to summary |
|---|---|
| public PKIXIdentity(PrivateKeyInfo privateKeyInfo, X509CertificateHolder certHolder) Base constructor - a private key and its associated public key certificate.
| |
| getCertificate | back to summary |
|---|---|
| public X509CertificateHolder getCertificate() Return the certificate associated with the private key info.
| |
| getCertificateChain | back to summary |
|---|---|
| public X509CertificateHolder[] getCertificateChain() Return the certificate chain associated with the private key info.
| |
| getPrivateKeyInfo | back to summary |
|---|---|
| public PrivateKeyInfo getPrivateKeyInfo() Return the private key info for this identity.
| |
| getRecipientId | back to summary |
|---|---|
| public RecipientId getRecipientId() Return a RecipientId for the identity's (private key, certificate) pair. | |
| getSubjectKeyIdentifier | back to summary |
|---|---|
| private byte[] getSubjectKeyIdentifier() | |