| java.lang.Object org.bouncycastle.openpgp.PGPSecretKey
PGPSecretKey | public class PGPSecretKey (Code) | | general class to handle a PGP secret key object.
|
Constructor Summary | |
| PGPSecretKey(SecretKeyPacket secret, TrustPacket trust, List keySigs, List ids, List idTrusts, List idSigs) | | PGPSecretKey(SecretKeyPacket secret, TrustPacket trust, List subSigs) | | PGPSecretKey(PGPKeyPair keyPair, TrustPacket trust, List subSigs, int encAlgorithm, char[] passPhrase, boolean useSHA1, SecureRandom rand, String provider) | | PGPSecretKey(PGPKeyPair keyPair, int encAlgorithm, char[] passPhrase, boolean useSHA1, SecureRandom rand, String provider) | public | PGPSecretKey(int certificationLevel, PGPKeyPair keyPair, String id, int encAlgorithm, char[] passPhrase, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) | public | PGPSecretKey(int certificationLevel, PGPKeyPair keyPair, String id, int encAlgorithm, char[] passPhrase, boolean useSHA1, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) | public | PGPSecretKey(int certificationLevel, int algorithm, PublicKey pubKey, PrivateKey privKey, Date time, String id, int encAlgorithm, char[] passPhrase, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) | public | PGPSecretKey(int certificationLevel, int algorithm, PublicKey pubKey, PrivateKey privKey, Date time, String id, int encAlgorithm, char[] passPhrase, boolean useSHA1, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) |
PGPSecretKey | public PGPSecretKey(int certificationLevel, PGPKeyPair keyPair, String id, int encAlgorithm, char[] passPhrase, boolean useSHA1, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) throws PGPException, NoSuchProviderException(Code) | | |
PGPSecretKey | public PGPSecretKey(int certificationLevel, int algorithm, PublicKey pubKey, PrivateKey privKey, Date time, String id, int encAlgorithm, char[] passPhrase, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) throws PGPException, NoSuchProviderException(Code) | | |
PGPSecretKey | public PGPSecretKey(int certificationLevel, int algorithm, PublicKey pubKey, PrivateKey privKey, Date time, String id, int encAlgorithm, char[] passPhrase, boolean useSHA1, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, SecureRandom rand, String provider) throws PGPException, NoSuchProviderException(Code) | | |
copyWithNewPassword | public static PGPSecretKey copyWithNewPassword(PGPSecretKey key, char[] oldPassPhrase, char[] newPassPhrase, int newEncAlgorithm, SecureRandom rand, String provider) throws PGPException, NoSuchProviderException(Code) | | Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
Parameters: key - the PGPSecretKey to be copied. Parameters: oldPassPhrase - the current password for key. Parameters: newPassPhrase - the new password for the key. Parameters: newEncAlgorithm - the algorithm to be used for the encryption. Parameters: rand - source of randomness. Parameters: provider - the provider to use |
getKeyEncryptionAlgorithm | public int getKeyEncryptionAlgorithm()(Code) | | return the algorithm the key is encrypted with.
the algorithm used to encrypt the secret key. |
getKeyID | public long getKeyID()(Code) | | Return the keyID of the public key associated with this key.
the keyID associated with this key. |
getPublicKey | public PGPPublicKey getPublicKey()(Code) | | Return the public key associated with this key.
the public key for this key. |
getUserAttributes | public Iterator getUserAttributes()(Code) | | Return any user attribute vectors associated with the key.
an iterator of Strings. |
getUserIDs | public Iterator getUserIDs()(Code) | | Return any userIDs associated with the key.
an iterator of Strings. |
isMasterKey | public boolean isMasterKey()(Code) | | Return true if this is a master key.
true if a master key. |
isSigningKey | public boolean isSigningKey()(Code) | | return true if this key is marked as suitable for signature generation.
|
|
|