Package org.bouncycastle.bcpg.sig
Class PreferredAlgorithms
java.lang.Object
org.bouncycastle.bcpg.SignatureSubpacket
org.bouncycastle.bcpg.sig.PreferredAlgorithms
- Direct Known Subclasses:
LibrePGPPreferredEncryptionModes
,PreferredAEADCiphersuites
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:
-
Field Summary
Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
-
Constructor Summary
ConstructorDescriptionPreferredAlgorithms
(int type, boolean critical, boolean isLongLength, byte[] data) PreferredAlgorithms
(int type, boolean critical, int[] preferences) -
Method Summary
Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket
encode, equals, getData, getType, hashCode, isCritical, isLongLength
-
Constructor Details
-
PreferredAlgorithms
public PreferredAlgorithms(int type, boolean critical, boolean isLongLength, byte[] data) -
PreferredAlgorithms
public PreferredAlgorithms(int type, boolean critical, int[] preferences)
-
-
Method Details
-
intToByteArray
protected static byte[] intToByteArray(int[] v) -
getPreferences
public int[] getPreferences()
-