public class PreferredAEADCiphersuites extends PreferredAlgorithms
Modifier and Type | Class and Description |
---|---|
static class |
PreferredAEADCiphersuites.Builder |
static class |
PreferredAEADCiphersuites.Combination
Algorithm combination of a
SymmetricKeyAlgorithmTags and a AEADAlgorithmTags . |
data
Constructor and Description |
---|
PreferredAEADCiphersuites(boolean critical,
boolean isLongLength,
byte[] data)
Create a new PreferredAEADAlgorithms signature subpacket from raw data.
|
PreferredAEADCiphersuites(boolean critical,
PreferredAEADCiphersuites.Combination[] combinations)
Create a new PreferredAEADAlgorithm signature subpacket.
|
Modifier and Type | Method and Description |
---|---|
static PreferredAEADCiphersuites.Builder |
builder(boolean isCritical)
Return a
PreferredAEADCiphersuites.Builder for constructing a PreferredAEADCiphersuites packet. |
static PreferredAEADCiphersuites |
DEFAULT() |
PreferredAEADCiphersuites.Combination[] |
getAlgorithms()
Returns AEAD algorithm preferences, including implicitly supported algorithm combinations.
|
PreferredAEADCiphersuites.Combination[] |
getRawAlgorithms()
Return AEAD algorithm preferences.
|
boolean |
isSupported(PreferredAEADCiphersuites.Combination combination)
Return true, if the given algorithm combination is supported (explicitly or implicitly).
|
getPreferences, intToByteArray
encode, equals, getData, getType, hashCode, isCritical, isLongLength
public PreferredAEADCiphersuites(boolean critical, boolean isLongLength, byte[] data)
critical
- whether the subpacket is criticalisLongLength
- whether the subpacket uses long length encodingdata
- raw datapublic PreferredAEADCiphersuites(boolean critical, PreferredAEADCiphersuites.Combination[] combinations)
critical
- whether the subpacket is criticalcombinations
- list of combinations, with the most preferred option firstpublic static PreferredAEADCiphersuites DEFAULT()
public boolean isSupported(PreferredAEADCiphersuites.Combination combination)
combination
- combinationpublic PreferredAEADCiphersuites.Combination[] getRawAlgorithms()
public PreferredAEADCiphersuites.Combination[] getAlgorithms()
public static PreferredAEADCiphersuites.Builder builder(boolean isCritical)
PreferredAEADCiphersuites.Builder
for constructing a PreferredAEADCiphersuites
packet.isCritical
- true if the packet is considered critical.