java.lang.Object
com.azure.core.util.ExpandableStringEnum<KeyType>
com.azure.security.keyvault.keys.models.KeyType

public final class KeyType extends com.azure.core.util.ExpandableStringEnum<KeyType>
JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final KeyType
    Elliptic Curve.
    static final KeyType
    Elliptic Curve with a private key which is stored in the HSM.
    static final KeyType
    Octet sequence (used to represent symmetric keys).
    static final KeyType
    Octet sequence (used to represent symmetric keys) which is stored the HSM.
    static final KeyType
    RSA (https://tools.ietf.org/html/rfc3447).
    static final KeyType
    RSA with a private key which is stored in the HSM.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static KeyType
    Creates or finds a KeyType from its string representation.
    Gets known KeyType values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • EC

      public static final KeyType EC
      Elliptic Curve.
    • EC_HSM

      public static final KeyType EC_HSM
      Elliptic Curve with a private key which is stored in the HSM.
    • RSA

      public static final KeyType RSA
      RSA (https://tools.ietf.org/html/rfc3447).
    • RSA_HSM

      public static final KeyType RSA_HSM
      RSA with a private key which is stored in the HSM.
    • OCT

      public static final KeyType OCT
      Octet sequence (used to represent symmetric keys).
    • OCT_HSM

      public static final KeyType OCT_HSM
      Octet sequence (used to represent symmetric keys) which is stored the HSM.
  • Constructor Details

  • Method Details

    • fromString

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

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