Package org.bouncycastle.bcpg.sig
Class Features
- java.lang.Object
-
- org.bouncycastle.bcpg.SignatureSubpacket
-
- org.bouncycastle.bcpg.sig.Features
-
public class Features extends SignatureSubpacket
-
-
Field Summary
Fields Modifier and Type Field Description static byteFEATURE_AEAD_ENCRYPTED_DATAIdentifier for the AEAD Encrypted Data Packet (packet 20) and version 5 Symmetric-Key Encrypted Session Key Packets (packet 3)static byteFEATURE_MODIFICATION_DETECTIONIdentifier for the Modification Detection (packets 18 and 19) Symmetrically Encrypted Integrity Protected Data packet version 1.static byteFEATURE_SEIPD_V2Symmetrically Encrypted Integrity Protected Data packet version 2.static byteFEATURE_VERSION_5_PUBLIC_KEYIdentifier for the Version 5 Public-Key Packet format and corresponding new fingerprint format-
Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetFeatures()booleansupportsFeature(byte feature)Returns if a particular feature is supported.booleansupportsModificationDetection()Returns if modification detection is supported.booleansupportsSEIPDv2()-
Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket
encode, equals, getData, getType, hashCode, isCritical, isLongLength
-
-
-
-
Field Detail
-
FEATURE_MODIFICATION_DETECTION
public static final byte FEATURE_MODIFICATION_DETECTION
Identifier for the Modification Detection (packets 18 and 19) Symmetrically Encrypted Integrity Protected Data packet version 1.- See Also:
- Constant Field Values
-
FEATURE_AEAD_ENCRYPTED_DATA
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)- See Also:
- Constant Field Values
-
FEATURE_VERSION_5_PUBLIC_KEY
public static final byte FEATURE_VERSION_5_PUBLIC_KEY
Identifier for the Version 5 Public-Key Packet format and corresponding new fingerprint format- See Also:
- Constant Field Values
-
FEATURE_SEIPD_V2
public static final byte FEATURE_SEIPD_V2
Symmetrically Encrypted Integrity Protected Data packet version 2.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFeatures
public byte getFeatures()
-
supportsModificationDetection
public boolean supportsModificationDetection()
Returns if modification detection is supported.
-
supportsSEIPDv2
public boolean supportsSEIPDv2()
-
supportsFeature
public boolean supportsFeature(byte feature)
Returns if a particular feature is supported.
-
-