Class UserAttributeSubpacket

java.lang.Object
org.bouncycastle.bcpg.UserAttributeSubpacket
Direct Known Subclasses:
ImageAttribute

public class UserAttributeSubpacket extends Object
Basic type for a user attribute sub-packet.
  • Field Details

    • data

      protected byte[] data
  • Constructor Details

    • UserAttributeSubpacket

      protected UserAttributeSubpacket(int type, byte[] data)
    • UserAttributeSubpacket

      protected UserAttributeSubpacket(int type, boolean forceLongLength, byte[] data)
  • Method Details

    • getType

      public int getType()
    • getData

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object