Example usage for Java org.bouncycastle.openpgp PGPSecretKeyRing fields, constructors, methods, implement or subclass
The text is from its open source code.
PGPSecretKeyRing(List secKeys) Base constructor from a list of keys representing a secret key ring (a master key and its associated sub-keys). | |
PGPSecretKeyRing(List keys, List extraPubKeys) | |
PGPSecretKeyRing(byte[] encoding, KeyFingerPrintCalculator fingerPrintCalculator) | |
PGPSecretKeyRing(InputStream in, KeyFingerPrintCalculator fingerPrintCalculator) |
PGPSecretKeyRing | copyWithNewPassword(PGPSecretKeyRing ring, PBESecretKeyDecryptor oldKeyDecryptor, PBESecretKeyEncryptor newKeyEncryptor) Return a copy of the passed in secret key ring, with the private keys (where present) associated with the master key and sub keys are encrypted using a new password and the passed in algorithm. |
void | encode(OutputStream outStream) |
byte[] | getEncoded() |
PGPPublicKey | getPublicKey() Return the public key for the master key. |
PGPSecretKey | getSecretKey() Return the master private key. |
PGPSecretKey | getSecretKey(long keyID) Return the secret key referred to by the passed in keyID if it is present. |
PGPSecretKey | getSecretKey(byte[] fingerprint) Return the secret key associated with the passed in fingerprint if it is present. |
Iterator | getSecretKeys() Return an iterator containing all the secret keys. |
PGPSecretKeyRing | insertSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey) Returns a new key ring with the secret key passed in either added or replacing an existing one with the same key ID. |
PGPSecretKeyRing | removeSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey) Returns a new key ring with the secret key passed in removed from the key ring. |