Java org.bouncycastle.openpgp PGPSecretKeyRing fields, constructors, methods, implement or subclass

Example usage for Java org.bouncycastle.openpgp PGPSecretKeyRing fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.bouncycastle.openpgp PGPSecretKeyRing.

The text is from its open source code.

Constructor

Method

PGPSecretKeyRingcopyWithNewPassword(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.
voidencode(OutputStream outStream)
byte[]getEncoded()
PGPPublicKeygetPublicKey()
Return the public key for the master key.
PGPSecretKeygetSecretKey()
Return the master private key.
PGPSecretKeygetSecretKey(long keyID)
Return the secret key referred to by the passed in keyID if it is present.
PGPSecretKeygetSecretKey(byte[] fingerprint)
Return the secret key associated with the passed in fingerprint if it is present.
IteratorgetSecretKeys()
Return an iterator containing all the secret keys.
PGPSecretKeyRinginsertSecretKey(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.
PGPSecretKeyRingremoveSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey)
Returns a new key ring with the secret key passed in removed from the key ring.