Class KeyOperation

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

public final class KeyOperation extends com.azure.core.util.ExpandableStringEnum<KeyOperation>
JSON web key operations. For more information, see JsonWebKeyOperation.
  • Field Details

    • ENCRYPT

      public static final KeyOperation ENCRYPT
      Indicates that the key can be used to encrypt.
    • DECRYPT

      public static final KeyOperation DECRYPT
      Indicates that the key can be used to decrypt.
    • SIGN

      public static final KeyOperation SIGN
      Indicates that the key can be used to sign.
    • VERIFY

      public static final KeyOperation VERIFY
      Indicates that the key can be used to verify.
    • WRAP_KEY

      public static final KeyOperation WRAP_KEY
      Indicates that the key can be used to wrap another key.
    • UNWRAP_KEY

      public static final KeyOperation UNWRAP_KEY
      Indicates that the key can be used to unwrap another key.
    • IMPORT

      public static final KeyOperation IMPORT
      Indicates that the key can be imported during creation.
  • Constructor Details

    • KeyOperation

      @Deprecated public KeyOperation()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of KeyOperation value.
  • Method Details

    • fromString

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

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