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

public Class PreferredAlgorithms

extends SignatureSubpacket
Class Inheritance
Known Direct Subclasses
org.bouncycastle.bcpg.sig.LibrePGPPreferredEncryptionModes, org.bouncycastle.bcpg.sig.PreferredAEADCiphersuites
Imports
org.bouncycastle.bcpg.SignatureSubpacket

Signature Subpacket containing algorithm preferences of the key holder's implementation. This class is used to implement:
See Also
RFC9580 - Preferred Symmetric Ciphers for v1 SEIPD, RFC9580 - Preferred Hash Algorithms, RFC9580 - Preferred Compression Algorithms, RFC4880 - Preferred Symmetric Algorithms, RFC4880 - Preferred Hash Algorithms, RFC4880 - Preferred Compression Algorithms

Field Summary

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
data

Constructor Summary

AccessConstructor and Description
public
PreferredAlgorithms(int type, boolean critical, boolean isLongLength, byte[] data)

public
PreferredAlgorithms(int type, boolean critical, int[] preferences)

Method Summary

Modifier and TypeMethod and Description
public int[]
protected static byte[]
intToByteArray(int[] v)

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
encodeequalsgetDatagetTypehashCodeisCriticalisLongLength

Constructor Detail

PreferredAlgorithmsback to summary
public PreferredAlgorithms(int type, boolean critical, boolean isLongLength, byte[] data)
PreferredAlgorithmsback to summary
public PreferredAlgorithms(int type, boolean critical, int[] preferences)

Method Detail

getPreferencesback to summary
public int[] getPreferences()
intToByteArrayback to summary
protected static byte[] intToByteArray(int[] v)