Package org.bouncycastle.openpgp.operator.jcajce

## Class JcaPGPPrivateKey

- java.lang.Object
- - org.bouncycastle.openpgp.PGPPrivateKey
  - - org.bouncycastle.openpgp.operator.jcajce.JcaPGPPrivateKey

-     public class JcaPGPPrivateKey
      extends PGPPrivateKey

  A JCA PrivateKey carrier. Use this one if you're dealing with a hardware adapter.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `JcaPGPPrivateKey​(long keyID, java.security.PrivateKey privateKey)` |
    `JcaPGPPrivateKey​(PGPPublicKey pubKey, java.security.PrivateKey privateKey)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.security.PrivateKey` | `getPrivateKey()` |

    - ### Methods inherited from class org.bouncycastle.openpgp.PGPPrivateKey

      `getKeyID, getPrivateKeyDataPacket, getPublicKeyPacket`

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

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

- - ### Constructor Detail

    - #### JcaPGPPrivateKey

          public JcaPGPPrivateKey​(long keyID,
                                  java.security.PrivateKey privateKey)

    - #### JcaPGPPrivateKey

          public JcaPGPPrivateKey​(PGPPublicKey pubKey,
                                  java.security.PrivateKey privateKey)

  - ### Method Detail

    - #### getPrivateKey

          public java.security.PrivateKey getPrivateKey()