Class KeyVaultKey
java.lang.Object
com.azure.security.keyvault.keys.models.KeyVaultKey
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultKey>
- Direct Known Subclasses:
DeletedKey
Key is the resource consisting of name,
JsonWebKey and its attributes specified in KeyProperties.
It is managed by Key Service.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultKeyfromJson(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aKeyVaultKey.getId()Get the key identifier.getKey()Get the JSON Web Key.Get the key operations.Get the key type.getName()Get the key name.Get the key properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getKey
Get the JSON Web Key.- Returns:
- The JSON Web Key.
-
getProperties
Get the key properties.- Returns:
- The key properties.
-
getId
Get the key identifier.- Returns:
- The key identifier.
-
getName
Get the key name.- Returns:
- The key name.
-
getKeyType
Get the key type.- Returns:
- The key type.
-
getKeyOperations
Get the key operations.- Returns:
- The key operations.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultKey>- Throws:
IOException
-
fromJson
Reads a JSON stream into aKeyVaultKey.- Parameters:
jsonReader- TheJsonReaderbeing read.- Returns:
- An instance of
KeyVaultKeythat the JSON stream represented, may return null. - Throws:
IOException- If aKeyVaultKeyfails to be read from thejsonReader.
-