Bouncy Castle Cryptography Library 1.79

org.bouncycastle.bcpg.sig
Class PreferredAlgorithms

java.lang.Object
  |
  +--org.bouncycastle.bcpg.SignatureSubpacket
        |
        +--org.bouncycastle.bcpg.sig.PreferredAlgorithms
Direct Known Subclasses:
LibrePGPPreferredEncryptionModes, PreferredAEADCiphersuites

public class PreferredAlgorithms
extends SignatureSubpacket

Signature Subpacket containing algorithm preferences of the key holder's implementation. This class is used to implement: Preferred Hash Algorithms Preferred Symmetric Key Algorithms Preferred Compression Algorithms

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

Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
 
Constructor Summary
PreferredAlgorithms(int type, boolean critical, boolean isLongLength, byte[] data)
           
PreferredAlgorithms(int type, boolean critical, int[] preferences)
           
 
Method Summary
 int[] getPreferences()
           
protected static byte[] intToByteArray(int[] v)
           
 
Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket
encode, equals, getData, getType, hashCode, isCritical, isLongLength
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferredAlgorithms

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

PreferredAlgorithms

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

intToByteArray

protected static byte[] intToByteArray(int[] v)

getPreferences

public int[] getPreferences()

Bouncy Castle Cryptography Library 1.79