Bouncy Castle Cryptography Library 1.71

org.bouncycastle.openpgp
Class PGPSignatureSubpacketVector

java.lang.Object
  extended byorg.bouncycastle.openpgp.PGPSignatureSubpacketVector

public class PGPSignatureSubpacketVector
extends java.lang.Object

Container for a list of signature subpackets.


Method Summary
static PGPSignatureSubpacketVector fromSubpackets(SignatureSubpacket[] packets)
           
 int[] getCriticalTags()
           
 PGPSignatureList getEmbeddedSignatures()
           
 Exportable getExportable()
           
 Features getFeatures()
           
 IntendedRecipientFingerprint getIntendedRecipientFingerprint()
           
 IntendedRecipientFingerprint[] getIntendedRecipientFingerprints()
           
 IssuerFingerprint getIssuerFingerprint()
           
 long getIssuerKeyID()
           
 long getKeyExpirationTime()
          Return the number of seconds a key is valid for after its creation date.
 int getKeyFlags()
           
 NotationData[] getNotationDataOccurences()
          Deprecated. use getNotationDataOccurrences()
 NotationData[] getNotationDataOccurrences()
           
 NotationData[] getNotationDataOccurrences(java.lang.String notationName)
          Return all NotationData occurrences which match the given notation name.
 PolicyURI getPolicyURI()
           
 PolicyURI[] getPolicyURIs()
           
 int[] getPreferredAEADAlgorithms()
           
 int[] getPreferredCompressionAlgorithms()
           
 int[] getPreferredHashAlgorithms()
           
 int[] getPreferredSymmetricAlgorithms()
           
 RegularExpression getRegularExpression()
           
 RegularExpression[] getRegularExpressions()
           
 Revocable getRevocable()
           
 RevocationKey[] getRevocationKeys()
           
 RevocationReason getRevocationReason()
           
 java.util.Date getSignatureCreationTime()
           
 long getSignatureExpirationTime()
          Return the number of seconds a signature is valid for after its creation date.
 SignatureTarget getSignatureTarget()
           
 java.lang.String getSignerUserID()
           
 SignatureSubpacket getSubpacket(int type)
           
 SignatureSubpacket[] getSubpackets(int type)
          Return all signature subpackets of the passed in type.
 TrustSignature getTrust()
           
 boolean hasSubpacket(int type)
          Return true if a particular subpacket type exists.
 boolean isExportable()
           
 boolean isPrimaryUserID()
           
 boolean isRevocable()
           
 int size()
          Return the number of packets this vector contains.
 SignatureSubpacket[] toArray()
          Return a copy of the subpackets in this vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromSubpackets

public static PGPSignatureSubpacketVector fromSubpackets(SignatureSubpacket[] packets)

getSubpacket

public SignatureSubpacket getSubpacket(int type)

hasSubpacket

public boolean hasSubpacket(int type)
Return true if a particular subpacket type exists.

Parameters:
type - type to look for.
Returns:
true if present, false otherwise.

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.

getEmbeddedSignatures

public PGPSignatureList getEmbeddedSignatures()
                                       throws PGPException
Throws:
PGPException

getNotationDataOccurrences

public NotationData[] getNotationDataOccurrences()

getNotationDataOccurences

public NotationData[] getNotationDataOccurences()
Deprecated. use getNotationDataOccurrences()


getNotationDataOccurrences

public NotationData[] getNotationDataOccurrences(java.lang.String notationName)
Return all NotationData occurrences which match the given notation name.

Parameters:
notationName - notation name
Returns:
notations with matching name

getIssuerKeyID

public long getIssuerKeyID()

getSignatureCreationTime

public java.util.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.

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.

getPreferredHashAlgorithms

public int[] getPreferredHashAlgorithms()

getPreferredSymmetricAlgorithms

public int[] getPreferredSymmetricAlgorithms()

getPreferredCompressionAlgorithms

public int[] getPreferredCompressionAlgorithms()

getPreferredAEADAlgorithms

public int[] getPreferredAEADAlgorithms()

getKeyFlags

public int getKeyFlags()

getSignerUserID

public java.lang.String getSignerUserID()

isPrimaryUserID

public boolean isPrimaryUserID()

getCriticalTags

public int[] getCriticalTags()

getSignatureTarget

public SignatureTarget getSignatureTarget()

getFeatures

public Features getFeatures()

getIssuerFingerprint

public IssuerFingerprint getIssuerFingerprint()

getIntendedRecipientFingerprint

public IntendedRecipientFingerprint getIntendedRecipientFingerprint()

getIntendedRecipientFingerprints

public IntendedRecipientFingerprint[] getIntendedRecipientFingerprints()

getExportable

public Exportable getExportable()

isExportable

public boolean isExportable()

getPolicyURI

public PolicyURI getPolicyURI()

getPolicyURIs

public PolicyURI[] getPolicyURIs()

getRegularExpression

public RegularExpression getRegularExpression()

getRegularExpressions

public RegularExpression[] getRegularExpressions()

getRevocable

public Revocable getRevocable()

isRevocable

public boolean isRevocable()

getRevocationKeys

public RevocationKey[] getRevocationKeys()

getRevocationReason

public RevocationReason getRevocationReason()

getTrust

public TrustSignature getTrust()

size

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

Returns:
size of the packet vector.

toArray

public SignatureSubpacket[] toArray()
Return a copy of the subpackets in this vector.

Returns:
an array containing the vector subpackets in order.

Bouncy Castle Cryptography Library 1.71