Uses of Class
org.bouncycastle.openpgp.PGPSecretKey
-
Packages that use PGPSecretKey Package Description org.bouncycastle.gpg Parsing classes for the GPG V2 SExpr format and other utilites.org.bouncycastle.openpgp High level classes for dealing with OpenPGP objects. -
-
Uses of PGPSecretKey in org.bouncycastle.gpg
Methods in org.bouncycastle.gpg that return PGPSecretKey Modifier and Type Method Description PGPSecretKey
SExprParser. parseSecretKey(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator)
Parse a secret key from one of the GPG S expression keys.PGPSecretKey
SExprParser. parseSecretKey(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey)
Parse a secret key from one of the GPG S expression keys associating it with the passed in public key. -
Uses of PGPSecretKey in org.bouncycastle.openpgp
Methods in org.bouncycastle.openpgp that return PGPSecretKey Modifier and Type Method Description static PGPSecretKey
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.PGPSecretKey
PGPSecretKeyRing. getSecretKey()
Return the master private key.PGPSecretKey
PGPSecretKeyRing. getSecretKey(byte[] fingerprint)
Return the secret key associated with the passed in fingerprint if it is present.PGPSecretKey
PGPSecretKeyRing. getSecretKey(long keyID)
Return the secret key referred to by the passed in keyID if it is present.PGPSecretKey
PGPSecretKeyRingCollection. getSecretKey(long keyID)
Return the PGP secret key associated with the given key id.static PGPSecretKey
PGPSecretKey. parseSecretKeyFromSExpr(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator)
Deprecated.use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.static PGPSecretKey
PGPSecretKey. parseSecretKeyFromSExpr(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey)
Deprecated.use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.static PGPSecretKey
PGPSecretKey. replacePublicKey(PGPSecretKey secretKey, PGPPublicKey publicKey)
Replace the passed the public key on the passed in secret key.Methods in org.bouncycastle.openpgp that return types with arguments of type PGPSecretKey Modifier and Type Method Description Iterator<PGPSecretKey>
PGPSecretKeyRing. getSecretKeys()
Return an iterator containing all the secret keys.Iterator<PGPSecretKey>
PGPSecretKeyRing. iterator()
Support method for Iterable where available.Methods in org.bouncycastle.openpgp with parameters of type PGPSecretKey Modifier and Type Method Description static PGPSecretKey
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.static PGPSecretKeyRing
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.static PGPSecretKeyRing
PGPSecretKeyRing. removeSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey)
Returns a new key ring with the secret key passed in removed from the key ring.static PGPSecretKey
PGPSecretKey. replacePublicKey(PGPSecretKey secretKey, PGPPublicKey publicKey)
Replace the passed the public key on the passed in secret key.void
PGPSignatureSubpacketGenerator. setIssuerFingerprint(boolean isCritical, PGPSecretKey secretKey)
Sets the signature issuer fingerprint for the signing key.Constructor parameters in org.bouncycastle.openpgp with type arguments of type PGPSecretKey Constructor Description PGPSecretKeyRing(List<PGPSecretKey> secKeys)
Base constructor from a list of keys representing a secret key ring (a master key and its associated sub-keys).
-