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

org.bouncycastle.pkix.jcajce

## Class JcaPKIXIdentity

- java.lang.Object
- - org.bouncycastle.pkix.PKIXIdentity
  - - org.bouncycastle.pkix.jcajce.JcaPKIXIdentity

-     public class JcaPKIXIdentity
      extends PKIXIdentity

  Holder class for public/private key based identity information.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JcaPKIXIdentity(java.security.PrivateKey privKey, java.security.cert.X509Certificate[] certs)`

  - ### Method Summary

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

    - ### Methods inherited from class org.bouncycastle.pkix.PKIXIdentity

      `getCertificate, getPrivateKeyInfo, getRecipientId`

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

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

- - ### Constructor Detail

    - #### JcaPKIXIdentity

          public JcaPKIXIdentity(java.security.PrivateKey privKey,
                         java.security.cert.X509Certificate[] certs)

  - ### Method Detail

    - #### getPrivateKey

          public java.security.PrivateKey getPrivateKey()

      Return the private key for this identity.
      Returns:
        the identity's private key.

    - #### getX509Certificate

          public java.security.cert.X509Certificate getX509Certificate()

      Return the certificate associated with the private key.
      Returns:
        the primary certificate.