- All Implemented Interfaces:
Serializable, Comparable<CryptoServicePurpose>, java.lang.constant.Constable
Enumeration of cryptographic service purposes. Defines the intended use case for cryptographic operations.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKey agreement protocolAny purposeAuthentication operation (for MACs and digests)Decryption operationEncryption operationKey generationPseudo-random functionSigning operation (for signatures and digests)Verification operationVerification operationConstructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic CryptoServicePurposeReturns the enum constant of this class with the specified name.static CryptoServicePurpose[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
AGREEMENT
Key agreement protocolENCRYPTION
Encryption operationDECRYPTION
Decryption operationKEYGEN
Key generationSIGNING
Signing operation (for signatures and digests)VERIFYING
Verification operationAUTHENTICATION
Authentication operation (for MACs and digests)VERIFICATION
Verification operationPRF
Pseudo-random functionANY
Any purpose
Constructor Details
CryptoServicePurpose
private CryptoServicePurpose()
Method Details
values
Returns 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
valueOf
Returns 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 nameNullPointerException- if the argument is null