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

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

Introduction

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

The text is from its open source code.

Constructor

Method

PGPSecretKeycopyWithNewPassword(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.
voidencode(OutputStream outStream)
PGPPrivateKeyextractPrivateKey(PBESecretKeyDecryptor decryptorFactory)
Extract a PGPPrivate key from the SecretKey's encrypted contents.
byte[]getEncoded()
longgetKeyID()
Return the keyID of the public key associated with this key.
PGPPublicKeygetPublicKey()
Return the public key associated with this key.
S2KgetS2K()
Return the S2K used to process this key
IteratorgetUserAttributes()
Return any user attribute vectors associated with the key.
IteratorgetUserIDs()
Return any userIDs associated with the key.
booleanisMasterKey()
Return true if this is a master key.
booleanisSigningKey()
Return true if this key has an algorithm type that makes it suitable to use for signing.
PGPSecretKeyreplacePublicKey(PGPSecretKey secretKey, PGPPublicKey publicKey)
Replace the passed the public key on the passed in secret key.