Example usage for Java org.bouncycastle.openpgp PGPSecretKey fields, constructors, methods, implement or subclass
The text is from its open source code.
PGPSecretKey(PGPPrivateKey privKey, PGPPublicKey pubKey, PGPDigestCalculator checksumCalculator, boolean isMasterKey, PBESecretKeyEncryptor keyEncryptor) Construct a PGPSecretKey using the passed in private key and public key. | |
PGPSecretKey(int certificationLevel, PGPKeyPair keyPair, String id, PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, PGPContentSignerBuilder certificationSignerBuilder, PBESecretKeyEncryptor keyEncryptor) Construct a PGPSecretKey using the passed in private/public key pair and binding it to the passed in id using a generated certification of certificationLevel. |
PGPSecretKey | copyWithNewPassword(PGPSecretKey key, PBESecretKeyDecryptor oldKeyDecryptor, PBESecretKeyEncryptor newKeyEncryptor) Return a copy of the passed in secret key, encrypted using a new password and the passed in algorithm. |
void | encode(OutputStream outStream) |
PGPPrivateKey | extractPrivateKey(PBESecretKeyDecryptor decryptorFactory) Extract a PGPPrivate key from the SecretKey's encrypted contents. |
byte[] | getEncoded() |
long | getKeyID() Return the keyID of the public key associated with this key. |
PGPPublicKey | getPublicKey() Return the public key associated with this key. |
S2K | getS2K() Return the S2K used to process this key |
Iterator | getUserAttributes() Return any user attribute vectors associated with the key. |
Iterator | getUserIDs() Return any userIDs associated with the key. |
boolean | isMasterKey() Return true if this is a master key. |
boolean | isSigningKey() Return true if this key has an algorithm type that makes it suitable to use for signing. |
PGPSecretKey | replacePublicKey(PGPSecretKey secretKey, PGPPublicKey publicKey) Replace the passed the public key on the passed in secret key. |