Enum CosmosEncryptionAlgorithm
java.lang.Object
java.lang.Enum<CosmosEncryptionAlgorithm>
com.azure.cosmos.encryption.models.CosmosEncryptionAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<CosmosEncryptionAlgorithm>
,java.lang.constant.Constable
Algorithms for use with client-side encryption support in Azure Cosmos DB.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAuthenticated Encryption algorithm based on https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05 -
Method Summary
Modifier and TypeMethodDescriptionstatic CosmosEncryptionAlgorithm
Gets the CosmosEncryptionAlgorithm enum back from the string valuegetName()
Returns the name of algorithmtoString()
Returns the name of algorithmstatic CosmosEncryptionAlgorithm
Returns the enum constant of this type with the specified name.static CosmosEncryptionAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AEAD_AES_256_CBC_HMAC_SHA256
Authenticated Encryption algorithm based on https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05
-
-
Method Details
-
values
Returns 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
-
valueOf
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 nameNullPointerException
- if the argument is null
-
toString
Returns the name of algorithm- Overrides:
toString
in classEnum<CosmosEncryptionAlgorithm>
- Returns:
- algorithm name
-
getName
Returns the name of algorithm- Returns:
- algorithm name
-
get
Gets the CosmosEncryptionAlgorithm enum back from the string value- Parameters:
name
- the string value- Returns:
- CosmosEncryptionAlgorithm enum
-