Class PGPSignatureSubpacketVector


  • public class PGPSignatureSubpacketVector
    extends java.lang.Object
    Container for a list of signature subpackets.
    • Method Detail

      • 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.
      • getNotationDataOccurrences

        public NotationData[] getNotationDataOccurrences()
      • getNotationDataOccurences

        public NotationData[] getNotationDataOccurences()
        Deprecated.
        use getNotationDataOccurrences()
      • 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()
      • getKeyFlags

        public int getKeyFlags()
      • getSignerUserID

        public java.lang.String getSignerUserID()
      • isPrimaryUserID

        public boolean isPrimaryUserID()
      • getCriticalTags

        public int[] getCriticalTags()
      • getFeatures

        public Features getFeatures()
      • 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.