- All Implemented Interfaces:
- Serializable,- Comparable<CryptoPrimitive>,- Constable
public enum CryptoPrimitive extends Enum<CryptoPrimitive>
An enumeration of cryptographic primitives.
- Since:
- 1.7
- 
Nested Class Summary
- 
Enum Constant SummaryEnum Constants Enum Constant Description BLOCK_CIPHERSymmetric primitive: block cipherKEY_AGREEMENTAsymmetric primitive: key agreement and key distributionKEY_ENCAPSULATIONAsymmetric primitive: key encapsulation mechanismKEY_WRAPSymmetric primitive: key wrapMACSymmetric primitive: message authentication codeMESSAGE_DIGESTHash functionPUBLIC_KEY_ENCRYPTIONAsymmetric primitive: public key encryptionSECURE_RANDOMCryptographic random number generatorSIGNATUREAsymmetric primitive: signature schemeSTREAM_CIPHERSymmetric primitive: stream cipher
- 
Method SummaryModifier and Type Method Description static CryptoPrimitivevalueOf(String name)Returns the enum constant of this type with the specified name.static CryptoPrimitive[]values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-