Package org.bouncycastle.bcpg
Class UserAttributeSubpacket
- java.lang.Object
-
- org.bouncycastle.bcpg.UserAttributeSubpacket
-
- Direct Known Subclasses:
ImageAttribute
public class UserAttributeSubpacket extends java.lang.ObjectBasic type for a user attribute sub-packet.
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]data
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserAttributeSubpacket(int type, boolean forceLongLength, byte[] data)protectedUserAttributeSubpacket(int type, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream out)booleanequals(java.lang.Object o)byte[]getData()return the generic data making up the packet.intgetType()inthashCode()
-
-
-
Method Detail
-
getType
public int getType()
-
getData
public byte[] getData()
return the generic data making up the packet.
-
encode
public void encode(java.io.OutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-