Bouncy Castle Cryptography Library 1.79

org.bouncycastle.bcpg.attr
Class ImageAttribute

java.lang.Object
  |
  +--org.bouncycastle.bcpg.UserAttributeSubpacket
        |
        +--org.bouncycastle.bcpg.attr.ImageAttribute

public class ImageAttribute
extends UserAttributeSubpacket

User-Attribute Subpacket used to encode an image, e.g. the user's avatar.

See Also:
RFC4880 - Image Attribute Subpacket, RFC9580 - Image Attribute Subpacket

Field Summary
static int JPEG
           
 
Fields inherited from class org.bouncycastle.bcpg.UserAttributeSubpacket
data
 
Constructor Summary
ImageAttribute(boolean forceLongLength, byte[] data)
           
ImageAttribute(byte[] data)
           
ImageAttribute(int imageType, byte[] imageData)
           
 
Method Summary
 int getEncoding()
           
 byte[] getImageData()
           
 int version()
           
 
Methods inherited from class org.bouncycastle.bcpg.UserAttributeSubpacket
encode, equals, getData, getType, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JPEG

public static final int JPEG
Constructor Detail

ImageAttribute

public ImageAttribute(byte[] data)

ImageAttribute

public ImageAttribute(boolean forceLongLength,
                      byte[] data)

ImageAttribute

public ImageAttribute(int imageType,
                      byte[] imageData)
Method Detail

version

public int version()

getEncoding

public int getEncoding()

getImageData

public byte[] getImageData()

Bouncy Castle Cryptography Library 1.79