org.bouncycastle.openpgp

Class PGPSignatureSubpacketVector

public class PGPSignatureSubpacketVector extends Object

Container for a list of signature subpackets.
Method Summary
int[]getCriticalTags()
longgetIssuerKeyID()
longgetKeyExpirationTime()
Return the number of seconds a key is valid for after its creation date.
intgetKeyFlags()
NotationData[]getNotationDataOccurences()
int[]getPreferredCompressionAlgorithms()
int[]getPreferredHashAlgorithms()
int[]getPreferredSymmetricAlgorithms()
DategetSignatureCreationTime()
longgetSignatureExpirationTime()
Return the number of seconds a signature is valid for after its creation date.
StringgetSignerUserID()
SignatureSubpacketgetSubpacket(int type)
SignatureSubpacket[]getSubpackets(int type)
Return all signature subpackets of the passed in type.
intsize()
Return the number of packets this vector contains.

Method Detail

getCriticalTags

public int[] getCriticalTags()

getIssuerKeyID

public long getIssuerKeyID()

getKeyExpirationTime

public long getKeyExpirationTime()
Return the number of seconds a key is valid for after its creation date. A value of zero means the key never expires.

Returns: seconds a key is valid for.

getKeyFlags

public int getKeyFlags()

getNotationDataOccurences

public NotationData[] getNotationDataOccurences()

getPreferredCompressionAlgorithms

public int[] getPreferredCompressionAlgorithms()

getPreferredHashAlgorithms

public int[] getPreferredHashAlgorithms()

getPreferredSymmetricAlgorithms

public int[] getPreferredSymmetricAlgorithms()

getSignatureCreationTime

public Date getSignatureCreationTime()

getSignatureExpirationTime

public long getSignatureExpirationTime()
Return the number of seconds a signature is valid for after its creation date. A value of zero means the signature never expires.

Returns: seconds a signature is valid for.

getSignerUserID

public String getSignerUserID()

getSubpacket

public SignatureSubpacket getSubpacket(int type)

getSubpackets

public SignatureSubpacket[] getSubpackets(int type)
Return all signature subpackets of the passed in type.

Parameters: type subpacket type code

Returns: an array of zero or more matching subpackets.

size

public int size()
Return the number of packets this vector contains.

Returns: size of the packet vector.