Return a signature object containing the current signature state.
Return a V3 signature object containing the current signature state.
Generate a certification, such as a revocation, for the passed in key.
Generate a certification for the passed in key against the passed in
master key.
Generate a certification for the passed in userAttributes
Generate a certification for the passed in id and key.
Return the one pass header associated with the current signature.
Return the one pass header associated with the current signature.
Return the public key ring that corresponds to the secret key ring.
Return the secret key ring.
return the algorithm tag value.
Return the algorithm used for compression
Return the algorithm code associated with the public key.
Return the armor header line (if there is one)
Return the armor headers (the lines after the armor header line),
Return the strength of the key in bits.
Return the creation time of the signature.
Return the creation time of the signature in milli-seconds.
return the crt coefficient
return the generic data making up the packet.
return the generic data making up the packet.
Return an uncompressed input stream which allows reading of the
compressed data.
Return the input stream representing the data stream
Return the decrypted input stream, using the passed in passPhrase.
Return the decrypted data stream for the packet.
Return the decrypted data stream for the packet.
Return either an ArmoredInputStream or a BCPGInputStream based on
whether the initial characters of the stream are binary PGP encodings or not.
Return the provider that will be used by factory classes in situations
where a provider must be determined on the fly.
return a string of bytes giving the encoded format of the key, as described by it's format.
return the standard PGP encoding of the key.
return the standard PGP encoding of the key.
return the standard PGP encoding of the key.
return the standard PGP encoding of the key.
return the standard PGP encoding of the key.
return the standard PGP encoding of the key.
Return the file name that's associated with the data stream.
Return the fingerprint of the key.
Return the base format for this key - in the case of the symmetric keys it will generally
be raw indicating that the key is just a straight byte representation, for an asymmetric
key the format will be PGP, indicating the key is a string of MPIs encoded in PGP format.
return the format tag value.
Return the format of the data stream - BINARY or TEXT.
return the hashAlgorithm tag
Return the hash algorithm associated with this signature.
return the hash algorithm for this S2K
return the hashAlgorithm tag
Note: you can only read from this once...
Return the raw input stream contained in the object.
Return the raw input stream for the data stream.
Return the raw input stream for the data stream.
Return the raw input stream for the data stream.
return the iteration count
getIV() - method in class org.bouncycastle.bcpg.
S2K return the iv for the key generation algorithm
Return the contained private key.
Return the public key contained in the object.
return the encryption algorithm tag
Return the key algorithm associated with this signature.
return the encryption algorithm tag
return the algorithm the key is encrypted with.
Return the number of seconds a key is valid for after its creation date.
Return the keyID associated with this key pair.
Return the keyID associated with the contained private key.
Return the keyID associated with the public key.
Return the keyID for the key used to encrypt the data.
Return the keyID of the public key associated with this key.
Return the id of the key that created the signature.
return the public key rings making up this collection.
return the secret key rings making up this collection.
Return an iterator of the key rings associated with the passed in userID.
Return an iterator of the key rings associated with the passed in userID.
Return an iterator of the key rings associated with the passed in userID.
Return an iterator of the key rings associated with the passed in userID.
Return an iterator of the key rings associated with the passed in userID.
Return an iterator of the key rings associated with the passed in userID.
Return the modification time of the file in milli-seconds.
Return the modification time for the file.
return the modulus for this key.
return the prime exponent of p
return the prime exponent of q
return the private exponent for this key.
the protection mode - only if GNU_DUMMY_S2K
Return the first public key in the ring.
Return the public key associated with this key.
Return the public key for the master key.
Return the public key referred to by the passed in keyID if it
is present.
Return the PGP public key associated with the given key id.
Return the public key ring which contains the key referred to by keyID.
Return an iterator containing all the public keys.
Return the master private key.
Return the PGP secret key associated with the given key id.
Return the secret key ring which contains the key referred to by keyID.
Return an iterator containing all the secret keys.
return the signature as a set of integers - note this is normalised to be the
ASN.1 encoding of what appears in the signature packet.
Return the byte encoding of the signature section.
Return the number of seconds a signature is valid for after its creation date.
Return all signatures/certifications associated with this key.
Return any signatures associated with the passed in id.
Return an iterator of signatures associated with the passed in user attributes.
Return signatures of the passed in type that are on this key.
return the signature trailer that must be included with the data
to reconstruct the signature
Return the signature type.
return the signature type.
Return all signature subpackets of the passed in type.
Return the number of seconds after creation time a key is valid for.
return time in seconds before signature expires after creation time.
Return the trust data associated with the public key, if present.
Return any user attribute vectors associated with the key.
Return any user attribute vectors associated with the key.
Return any userIDs associated with the key.
Return any userIDs associated with the key.
Return the OpenPGP version number for this signature.
Basic PGP packet tag types.
A simple utility class that encrypts/decrypts password based
encryption files.
class for producing compressed data packets.
Thrown if the iv at the start of a data stream indicates the wrong key
is being used.
Generator for encrypted objects.
Creates a cipher stream which will have an integrity packet
associated with it.
A holder for a list of PGP encryption method packets.
generic exception class for PGP encoding/decoding problems
key flag values for the KeyFlags subpacket.
General class to handle JCA key pairs and convert them into OpenPGP ones.
Create a key pair from a PGPPrivateKey and a PGPPublicKey.
Generator for a PGP master and subkey ring.
Create a new key ring generator.
Create a new key ring generator using old style checksumming.
Thrown if the key checksum is invalid.
class for processing literal data objects.
Class for producing literal data packets.
Generates literal data objects in the old format, this is
important if you need compatability with PGP 2.6.x.
a PGP marker packet - in general these should be ignored other than where
the idea is to preserve the original input stream.
General class for reading a PGP object stream.
A one pass signature object.
Holder for a list of PGPOnePassSignatures
A password based encryption object.
general class to contain a private key for use with other openPGP
objects.
Create a PGPPrivateKey from a regular private key and the keyID of its associated
public key.
general class to handle a PGP public key object.
Create a PGPPublicKey from the passed in JCA one.
A public key encrypted data object.
Class to hold a single master public key and its subkeys.
Often a PGP key ring file is made up of a succession of master/sub-key key rings.
Build a PGPPublicKeyRingCollection from the passed in input stream.
general class to handle a PGP secret key object.
PGPSecretKey(int,int,PublicKey,PrivateKey,Date,String,int,char[],boolean,org.bouncycastle.openpgp.PGPSignatureSubpacketVector,org.bouncycastle.openpgp.PGPSignatureSubpacketVector,SecureRandom,String) - constructor for class org.bouncycastle.openpgp.
PGPSecretKey PGPSecretKey(int,int,PublicKey,PrivateKey,Date,String,int,char[],org.bouncycastle.openpgp.PGPSignatureSubpacketVector,org.bouncycastle.openpgp.PGPSignatureSubpacketVector,SecureRandom,String) - constructor for class org.bouncycastle.openpgp.
PGPSecretKey Class to hold a single master secret key and its subkeys.
Often a PGP key ring file is made up of a succession of master/sub-key key rings.
Build a PGPSecretKeyRingCollection from the passed in input stream.
Generator for PGP Signatures.
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
A list of PGP signatures - normally in the signature block after literal data.
Generator for signature subpackets.
Container for a list of signature subpackets.
Container for a list of user attribute subpackets.
Generator for old style PGP V3 Signatures.
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
packet giving signature creation time.
packet giving whether or not the signature is signed using the primary user ID for the key.
Public Key Algorithm tag numbers
basic packet for a PGP public key
basic packet for a PGP public key
Construct version 4 public key packet.
basic packet for a PGP public key
Construct version 4 public key packet.
Basic class which just lists the contents of the public key file passed
as an argument.