- java.lang.Object
- 
- java.lang.Enum<CryptoPrimitive>
- 
- java.security.CryptoPrimitive
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<CryptoPrimitive>
 
 public enum CryptoPrimitive extends Enum<CryptoPrimitive> An enumeration of cryptographic primitives.- Since:
- 1.7
 
- 
- 
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 SummaryAll Methods Static Methods Concrete Methods Modifier 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 Detail- 
MESSAGE_DIGESTpublic static final CryptoPrimitive MESSAGE_DIGEST Hash function
 - 
SECURE_RANDOMpublic static final CryptoPrimitive SECURE_RANDOM Cryptographic random number generator
 - 
BLOCK_CIPHERpublic static final CryptoPrimitive BLOCK_CIPHER Symmetric primitive: block cipher
 - 
STREAM_CIPHERpublic static final CryptoPrimitive STREAM_CIPHER Symmetric primitive: stream cipher
 - 
MACpublic static final CryptoPrimitive MAC Symmetric primitive: message authentication code
 - 
KEY_WRAPpublic static final CryptoPrimitive KEY_WRAP Symmetric primitive: key wrap
 - 
PUBLIC_KEY_ENCRYPTIONpublic static final CryptoPrimitive PUBLIC_KEY_ENCRYPTION Asymmetric primitive: public key encryption
 - 
SIGNATUREpublic static final CryptoPrimitive SIGNATURE Asymmetric primitive: signature scheme
 - 
KEY_ENCAPSULATIONpublic static final CryptoPrimitive KEY_ENCAPSULATION Asymmetric primitive: key encapsulation mechanism
 - 
KEY_AGREEMENTpublic static final CryptoPrimitive KEY_AGREEMENT Asymmetric primitive: key agreement and key distribution
 
- 
 - 
Method Detail- 
valuespublic static CryptoPrimitive[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CryptoPrimitive c : CryptoPrimitive.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CryptoPrimitive valueOf(String name) Returns 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
 
 
- 
 
-