Class EncryptionAlgorithm

java.lang.Object
com.azure.core.util.ExpandableStringEnum<EncryptionAlgorithm>
com.azure.security.keyvault.keys.cryptography.models.EncryptionAlgorithm
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class EncryptionAlgorithm extends com.azure.core.util.ExpandableStringEnum<EncryptionAlgorithm>
Defines values for EncryptionAlgorithm.
  • Field Details

    • RSA_OAEP

      public static final EncryptionAlgorithm RSA_OAEP
      [Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https://tools.ietf.org/html/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1. Those default parameters are using a hash function of SHA-1 and a mask generation function of MGF1 with SHA-1. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_OAEP, which is included solely for backwards compatibility. RSA_OAEP utilizes SHA1, which has known collision problems.
    • RSA_OAEP_256

      public static final EncryptionAlgorithm RSA_OAEP_256
      RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256.
    • RSA1_5

      public static final EncryptionAlgorithm RSA1_5
      [Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https://tools.ietf.org/html/rfc3447. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_1_5, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption.
    • A128CBC

      public static final EncryptionAlgorithm A128CBC
      128-bit AES-CBC.
    • A192CBC

      public static final EncryptionAlgorithm A192CBC
      192-bit AES-CBC.
    • A256CBC

      public static final EncryptionAlgorithm A256CBC
      256-bit AES-CBC.
    • A128CBCPAD

      public static final EncryptionAlgorithm A128CBCPAD
      128-bit AES-CBC with PKCS padding.
    • A192CBCPAD

      public static final EncryptionAlgorithm A192CBCPAD
      192-bit AES-CBC with PKCS padding.
    • A256CBCPAD

      public static final EncryptionAlgorithm A256CBCPAD
      256-bit AES-CBC with PKCS padding.
    • A128CBC_HS256

      public static final EncryptionAlgorithm A128CBC_HS256
      128-bit AES-CBC with 256-bit HMAC.
    • A192CBC_HS384

      public static final EncryptionAlgorithm A192CBC_HS384
      256-bit AES-CBC with 384-bit HMAC.
    • A256CBC_HS512

      public static final EncryptionAlgorithm A256CBC_HS512
      256-bit AES-CBC with 512-bit HMAC.
    • A128GCM

      public static final EncryptionAlgorithm A128GCM
      128-bit AES-GCM.
    • A192GCM

      public static final EncryptionAlgorithm A192GCM
      192-bit AES-GCM.
    • A256GCM

      public static final EncryptionAlgorithm A256GCM
      256-bit AES-GCM.
    • A128KW

      @Deprecated public static final EncryptionAlgorithm A128KW
      Deprecated.
      This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, use KeyWrapAlgorithm.A128KW in KeyWrapAlgorithm instead.
      128-bit AES key wrap.
    • A192KW

      @Deprecated public static final EncryptionAlgorithm A192KW
      Deprecated.
      This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, use KeyWrapAlgorithm.A192KW in KeyWrapAlgorithm instead.
      192-bit AES key wrap.
    • A256KW

      @Deprecated public static final EncryptionAlgorithm A256KW
      Deprecated.
      This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, use KeyWrapAlgorithm.A256KW in KeyWrapAlgorithm instead.
      256-bit AES key wrap.
  • Constructor Details

  • Method Details

    • fromString

      public static EncryptionAlgorithm fromString(String name)
      Creates or finds a EncryptionAlgorithm from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding EncryptionAlgorithm.
    • values

      public static Collection<EncryptionAlgorithm> values()
      Gets known EncryptionAlgorithm values.
      Returns:
      known EncryptionAlgorithm values.