Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.openpgp
Class PGPPrivateKey

    java.lang.Object
      |
      +--org.bouncycastle.openpgp.PGPPrivateKey

public class PGPPrivateKey
extends java.lang.Object

general class to contain a private key for use with other openPGP objects.

Method Summary
`java.security.PrivateKey` | `getKey()` Return the contained private key.
`long` | `getKeyID()` Return the keyID associated with the contained private key.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getKeyID

    public long getKeyID()

  Return the keyID associated with the contained private key.

  Returns:
    long

### getKey

    public java.security.PrivateKey getKey()

  Return the contained private key.

  Returns:
    PrivateKey

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD