public class Features extends SignatureSubpacket
Modifier and Type | Field and Description |
---|---|
static 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)
|
static byte |
FEATURE_MODIFICATION_DETECTION
Identifier for the Modification Detection (packets 18 and 19)
Symmetrically Encrypted Integrity Protected Data packet version 1.
|
static byte |
FEATURE_SEIPD_V2
Symmetrically Encrypted Integrity Protected Data packet version 2.
|
static byte |
FEATURE_VERSION_5_PUBLIC_KEY
Identifier for the Version 5 Public-Key Packet format and corresponding new
fingerprint format
|
data
Constructor and Description |
---|
Features(boolean critical,
boolean isLongLength,
byte[] data) |
Features(boolean critical,
byte features) |
Features(boolean critical,
int features) |
Modifier and Type | Method and Description |
---|---|
byte |
getFeatures() |
boolean |
supportsFeature(byte feature)
Returns if a particular feature is supported.
|
boolean |
supportsModificationDetection()
Returns if modification detection is supported.
|
boolean |
supportsSEIPDv2() |
encode, equals, getData, getType, hashCode, isCritical, isLongLength
public static final byte FEATURE_MODIFICATION_DETECTION
public static final byte FEATURE_AEAD_ENCRYPTED_DATA
public static final byte FEATURE_VERSION_5_PUBLIC_KEY
public static final byte FEATURE_SEIPD_V2
public Features(boolean critical, boolean isLongLength, byte[] data)
public Features(boolean critical, byte features)
public Features(boolean critical, int features)
public byte getFeatures()
public boolean supportsModificationDetection()
public boolean supportsSEIPDv2()
public boolean supportsFeature(byte feature)