KeyVaultSecret Class
- java.
lang. Object - com.
azure. security. keyvault. secrets. models. KeyVaultSecret
- com.
Implements
public class KeyVaultSecret
implements JsonSerializable<KeyVaultSecret>
Secret is the resource consisting of name, value and its attributes specified in SecretProperties. It is managed by Secret Service.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultSecret(String name, String value) |
Creates a Secret with |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultSecret from the Json |
String |
getId()
Get the secret identifier. |
String |
getName()
Get the secret name. |
Secret |
getProperties()
Get the secret properties |
String |
getValue()
Get the value of the secret. |
Key |
setProperties(SecretProperties properties)
Set the secret properties |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultSecret
public KeyVaultSecret(String name, String value)
Creates a Secret with name
and value
.
Parameters:
Method Details
fromJson
public static KeyVaultSecret fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultSecret from the JsonReader.
Parameters:
Returns:
Throws:
getId
public String getId()
Get the secret identifier.
Returns:
getName
public String getName()
Get the secret name.
Returns:
getProperties
public SecretProperties getProperties()
Get the secret properties
Returns:
getValue
public String getValue()
Get the value of the secret.
Returns:
setProperties
public KeyVaultSecret setProperties(SecretProperties properties)
Set the secret properties
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java