KeyVaultKey Class

  • java.lang.Object
    • com.azure.security.keyvault.keys.models.KeyVaultKey

Implements

public class KeyVaultKey
implements JsonSerializable<KeyVaultKey>

Key is the resource consisting of name, JsonWebKey and its attributes specified in KeyProperties. It is managed by Key Service.

Method Summary

Modifier and Type Method and Description
static KeyVaultKey fromJson(JsonReader jsonReader)

Reads a JSON stream into a KeyVaultKey.

String getId()

Get the key identifier.

JsonWebKey getKey()

Get the JSON Web Key.

List<KeyOperation> getKeyOperations()

Get the key operations.

KeyType getKeyType()

Get the key type.

String getName()

Get the key name.

KeyProperties getProperties()

Get the key properties.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static KeyVaultKey fromJson(JsonReader jsonReader)

Reads a JSON stream into a KeyVaultKey.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultKey that the JSON stream represented, may return null.

Throws:

IOException

- If a KeyVaultKey fails to be read from the jsonReader.

getId

public String getId()

Get the key identifier.

Returns:

The key identifier.

getKey

public JsonWebKey getKey()

Get the JSON Web Key.

Returns:

The JSON Web Key.

getKeyOperations

public List getKeyOperations()

Get the key operations.

Returns:

The key operations.

getKeyType

public KeyType getKeyType()

Get the key type.

Returns:

The key type.

getName

public String getName()

Get the key name.

Returns:

The key name.

getProperties

public KeyProperties getProperties()

Get the key properties.

Returns:

The key properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to