Bouncy Castle Cryptography Library 1.81

org.bouncycastle.bcpg.sig
Class NotationData

java.lang.Object
  extended byorg.bouncycastle.bcpg.SignatureSubpacket
      extended byorg.bouncycastle.bcpg.sig.NotationData

public class NotationData
extends SignatureSubpacket

Signature Subpacket encoding custom notations. Notations are key-value pairs.

See Also:
RFC4880 - Notation Data, RFC9580 - Notation Data

Field Summary
static int HEADER_FLAG_LENGTH
           
static int HEADER_NAME_LENGTH
           
static int HEADER_VALUE_LENGTH
           
 
Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
 
Constructor Summary
NotationData(boolean critical, boolean isLongLength, byte[] data)
           
NotationData(boolean critical, boolean humanReadable, java.lang.String notationName, java.lang.String notationValue)
           
 
Method Summary
 java.lang.String getNotationName()
           
 java.lang.String getNotationValue()
           
 byte[] getNotationValueBytes()
           
 boolean isHumanReadable()
           
 
Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket
encode, equals, getData, getType, hashCode, isCritical, isLongLength
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_FLAG_LENGTH

public static final int HEADER_FLAG_LENGTH
See Also:
Constant Field Values

HEADER_NAME_LENGTH

public static final int HEADER_NAME_LENGTH
See Also:
Constant Field Values

HEADER_VALUE_LENGTH

public static final int HEADER_VALUE_LENGTH
See Also:
Constant Field Values
Constructor Detail

NotationData

public NotationData(boolean critical,
                    boolean isLongLength,
                    byte[] data)

NotationData

public NotationData(boolean critical,
                    boolean humanReadable,
                    java.lang.String notationName,
                    java.lang.String notationValue)
Method Detail

isHumanReadable

public boolean isHumanReadable()

getNotationName

public java.lang.String getNotationName()

getNotationValue

public java.lang.String getNotationValue()

getNotationValueBytes

public byte[] getNotationValueBytes()

Bouncy Castle Cryptography Library 1.81