Enum CosmosEncryptionType
- All Implemented Interfaces:
Serializable
,Comparable<CosmosEncryptionType>
,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 ConstantDescriptionDeterministic encryption always generates the same encrypted value for any given plain text value.Randomized encryption uses a method that encrypts data in a less predictable manner. -
Method Summary
Modifier and TypeMethodDescriptionstatic CosmosEncryptionType
Gets the CosmosEncryptionType enum back from the string valuegetName()
Returns the encryptionType nametoString()
Returns the encryptionType namestatic CosmosEncryptionType
Returns the enum constant of this type with the specified name.static CosmosEncryptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RANDOMIZED
Randomized encryption uses a method that encrypts data in a less predictable manner. Randomized encryption is more secure. -
DETERMINISTIC
Deterministic encryption always generates the same encrypted value for any given plain text value.
-
-
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 encryptionType name- Overrides:
toString
in classEnum<CosmosEncryptionType>
- Returns:
- encryptionType
-
getName
Returns the encryptionType name- Returns:
- encryptionType
-
get
Gets the CosmosEncryptionType enum back from the string value- Parameters:
name
- the string value- Returns:
- CosmosEncryptionType enum
-