Enum CosmosEncryptionType

java.lang.Object
java.lang.Enum<CosmosEncryptionType>
com.azure.cosmos.encryption.models.CosmosEncryptionType
All Implemented Interfaces:
Serializable, Comparable<CosmosEncryptionType>, java.lang.constant.Constable

public enum CosmosEncryptionType extends Enum<CosmosEncryptionType>
Algorithms for use with client-side encryption support in Azure Cosmos DB.
  • Enum Constant Details

    • RANDOMIZED

      public static final CosmosEncryptionType RANDOMIZED
      Randomized encryption uses a method that encrypts data in a less predictable manner. Randomized encryption is more secure.
    • DETERMINISTIC

      public static final CosmosEncryptionType DETERMINISTIC
      Deterministic encryption always generates the same encrypted value for any given plain text value.
  • Method Details

    • values

      public static CosmosEncryptionType[] 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

      public static CosmosEncryptionType 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
    • toString

      public String toString()
      Returns the encryptionType name
      Overrides:
      toString in class Enum<CosmosEncryptionType>
      Returns:
      encryptionType
    • getName

      public String getName()
      Returns the encryptionType name
      Returns:
      encryptionType
    • get

      public static CosmosEncryptionType get(String name)
      Gets the CosmosEncryptionType enum back from the string value
      Parameters:
      name - the string value
      Returns:
      CosmosEncryptionType enum