Enum Class CryptoPrimitive
- All Implemented Interfaces:
- Serializable, Comparable<CryptoPrimitive>, Constable
An enumeration of cryptographic primitives.
- Since:
- 1.7
- 
Nested Class SummaryNested classes/interfaces declared in class EnumEnum.EnumDesc<E>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionSymmetric primitive: block cipherAsymmetric primitive: key agreement and key distributionAsymmetric primitive: key encapsulation mechanismSymmetric primitive: key wrapSymmetric primitive: message authentication codeHash functionAsymmetric primitive: public key encryptionCryptographic random number generatorAsymmetric primitive: signature schemeSymmetric primitive: stream cipher
- 
Method SummaryModifier and TypeMethodDescriptionstatic CryptoPrimitiveReturns the enum constant of this class with the specified name.static CryptoPrimitive[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
MESSAGE_DIGESTHash function
- 
SECURE_RANDOMCryptographic random number generator
- 
BLOCK_CIPHERSymmetric primitive: block cipher
- 
STREAM_CIPHERSymmetric primitive: stream cipher
- 
MACSymmetric primitive: message authentication code
- 
KEY_WRAPSymmetric primitive: key wrap
- 
PUBLIC_KEY_ENCRYPTIONAsymmetric primitive: public key encryption
- 
SIGNATUREAsymmetric primitive: signature scheme
- 
KEY_ENCAPSULATIONAsymmetric primitive: key encapsulation mechanism
- 
KEY_AGREEMENTAsymmetric primitive: key agreement and key distribution
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-