KeyType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. security. keyvault. keys. models. KeyType
- com.
- com.
public final class KeyType
extends ExpandableStringEnum<KeyType>
JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Key |
EC
Elliptic Curve. |
static final
Key |
EC_HSM
Elliptic Curve with a private key which is stored in the HSM. |
static final
Key |
OCT
Octet sequence (used to represent symmetric keys). |
static final
Key |
OCT_HSM
Octet sequence (used to represent symmetric keys) which is stored the HSM. |
static final
Key |
RSA
RSA (https://tools. |
static final
Key |
RSA_HSM
RSA with a private key which is stored in the HSM. |
Constructor Summary
Constructor | Description |
---|---|
KeyType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromString(String name)
Creates or finds a Key |
static
Collection<Key |
values()
Gets known Key |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
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.
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.
RSA
public static final KeyType RSA
RSA_HSM
public static final KeyType RSA_HSM
RSA with a private key which is stored in the HSM.
Constructor Details
KeyType
@Deprecated
public KeyType()
Deprecated
Creates a new instance of KeyType value.
Method Details
fromString
public static KeyType fromString(String name)
Creates or finds a KeyType from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known KeyType values.
Returns:
Applies to
Azure SDK for Java