org.bouncycastle.openpgp

Class PGPSignatureSubpacketVector


public class PGPSignatureSubpacketVector
extends java.lang.Object

Container for a list of signature subpackets.

Method Summary

int[]
getCriticalTags()
long
getIssuerKeyID()
long
getKeyExpirationTime()
Return the number of seconds a key is valid for after its creation date.
int
getKeyFlags()
NotationData[]
getNotationDataOccurences()
int[]
getPreferredCompressionAlgorithms()
int[]
getPreferredHashAlgorithms()
int[]
getPreferredSymmetricAlgorithms()
Date
getSignatureCreationTime()
long
getSignatureExpirationTime()
Return the number of seconds a signature is valid for after its creation date.
String
getSignerUserID()
SignatureSubpacket
getSubpacket(int type)
SignatureSubpacket[]
getSubpackets(int type)
Return all signature subpackets of the passed in type.
int
size()
Return the number of packets this vector contains.

Method Details

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.