Class PKIXIdentity

  • Direct Known Subclasses:
    JcaPKIXIdentity

    public class PKIXIdentity
    extends java.lang.Object
    Holder class for public/private key based identity information.
    • Constructor Summary

      Constructors 
      Constructor Description
      PKIXIdentity​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, X509CertificateHolder[] certificateHolders)  
    • Constructor Detail

      • PKIXIdentity

        public PKIXIdentity​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo,
                            X509CertificateHolder[] certificateHolders)
    • Method Detail

      • getPrivateKeyInfo

        public org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo()
        Return the private key info for this identity.
        Returns:
        the identity's private key (if available, null otherwise).
      • getCertificate

        public X509CertificateHolder getCertificate()
        Return the certificate associated with the private key info.
        Returns:
        a X509CertificateHolder
      • getRecipientId

        public RecipientId getRecipientId()
        Return a RecipientId for the identity's (private key, certificate) pair.