PKIXIdentity (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.pkix

## Class PKIXIdentity

- java.lang.Object
- - org.bouncycastle.pkix.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 and Description
    `PKIXIdentity(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, X509CertificateHolder[] certificateHolders)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `X509CertificateHolder` | `getCertificate()` Return the certificate 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.