Class SignatureSubpacket

java.lang.Object
org.bouncycastle.bcpg.SignatureSubpacket
Direct Known Subclasses:
EmbeddedSignature, Exportable, Features, IntendedRecipientFingerprint, IssuerFingerprint, IssuerKeyID, KeyExpirationTime, KeyFlags, NotationData, PolicyURI, PreferredAlgorithms, PreferredKeyServer, PrimaryUserID, RegularExpression, Revocable, RevocationKey, RevocationReason, SignatureCreationTime, SignatureExpirationTime, SignatureTarget, SignerUserID, TrustSignature

public class SignatureSubpacket extends Object
Basic type for a PGP Signature sub-packet.
  • Field Details

    • data

      protected byte[] data
  • Constructor Details

    • SignatureSubpacket

      protected SignatureSubpacket(int type, boolean critical, boolean isLongLength, byte[] data)
  • Method Details

    • getType

      public int getType()
    • isCritical

      public boolean isCritical()
    • isLongLength

      public boolean isLongLength()
    • getData

      public byte[] getData()
      return the generic data making up the packet.
    • encode

      public void encode(OutputStream out) throws IOException
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object