Top Description Fields Constructors Methods
org.bouncycastle.bcpg.sig

public Class Features

extends SignatureSubpacket
Class Inheritance
Imports
org.bouncycastle.bcpg.SignatureSubpacket, .SignatureSubpacketTags

Signature Subpacket encoding, which features are supported by the key-holders implementation.
See Also
RFC4880 - Features, RFC9580 - Features

Field Summary

Modifier and TypeField and Description
public static final byte
FEATURE_AEAD_ENCRYPTED_DATA

Identifier for the AEAD Encrypted Data Packet (packet 20) and version 5 Symmetric-Key Encrypted Session Key Packets (packet 3)

public static final byte
FEATURE_MODIFICATION_DETECTION

Identifier for the Modification Detection (packets 18 and 19) Symmetrically Encrypted Integrity Protected Data packet version 1.

public static final byte
FEATURE_SEIPD_V2

Symmetrically Encrypted Integrity Protected Data packet version 2.

public static final byte
FEATURE_VERSION_5_PUBLIC_KEY

Identifier for the Version 5 Public-Key Packet format and corresponding new fingerprint format

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
data

Constructor Summary

AccessConstructor and Description
public
Features(boolean critical, boolean isLongLength, byte[] data)

public
Features(boolean critical, byte features)

public
Features(boolean critical, int features)

Method Summary

Modifier and TypeMethod and Description
private static final byte[]
featureToByteArray(byte feature)

public byte
public boolean
supportsFeature(byte feature)

Returns if a particular feature is supported.

public boolean
supportsModificationDetection()

Returns if modification detection is supported.

public boolean
Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
encodeequalsgetDatagetTypehashCodeisCriticalisLongLength

Field Detail

FEATURE_AEAD_ENCRYPTED_DATAback to summary
public static final byte FEATURE_AEAD_ENCRYPTED_DATA

Identifier for the AEAD Encrypted Data Packet (packet 20) and version 5 Symmetric-Key Encrypted Session Key Packets (packet 3)

FEATURE_MODIFICATION_DETECTIONback to summary
public static final byte FEATURE_MODIFICATION_DETECTION

Identifier for the Modification Detection (packets 18 and 19) Symmetrically Encrypted Integrity Protected Data packet version 1.

FEATURE_SEIPD_V2back to summary
public static final byte FEATURE_SEIPD_V2

Symmetrically Encrypted Integrity Protected Data packet version 2.

FEATURE_VERSION_5_PUBLIC_KEYback to summary
public static final byte FEATURE_VERSION_5_PUBLIC_KEY

Identifier for the Version 5 Public-Key Packet format and corresponding new fingerprint format

Constructor Detail

Featuresback to summary
public Features(boolean critical, boolean isLongLength, byte[] data)
Featuresback to summary
public Features(boolean critical, byte features)
Featuresback to summary
public Features(boolean critical, int features)

Method Detail

featureToByteArrayback to summary
private static final byte[] featureToByteArray(byte feature)
getFeaturesback to summary
public byte getFeatures()
supportsFeatureback to summary
public boolean supportsFeature(byte feature)

Returns if a particular feature is supported.

supportsModificationDetectionback to summary
public boolean supportsModificationDetection()

Returns if modification detection is supported.

supportsSEIPDv2back to summary
public boolean supportsSEIPDv2()