SecretProperties Class
- java.
lang. Object - com.
azure. security. keyvault. secrets. models. SecretProperties
- com.
Implements
public class SecretProperties
implements JsonSerializable<SecretProperties>
SecretProperties is the resource containing all the properties of the secret except its value. It is managed by the Secret Service.
Constructor Summary
Constructor | Description |
---|---|
SecretProperties() |
Creates empty instance of Secret |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Secret |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a SecretProperties. |
String |
getContentType()
Get the content type. |
Offset |
getCreatedOn()
Get the the UTC time at which secret was created. |
Offset |
getExpiresOn()
Get the Secret Expiry time in UTC. |
String |
getId()
Get the secret identifier. |
String |
getKeyId()
Get the key |
String |
getName()
Get the secret name. |
Offset |
getNotBefore()
Get the not |
Integer |
getRecoverableDays()
Gets the number of days a secret is retained before being deleted for a soft delete-enabled Key Vault. |
String |
getRecoveryLevel()
Get the recovery level of the secret. |
Map<String,String> |
getTags()
Get the tags associated with the secret. |
Offset |
getUpdatedOn()
Get the UTC time at which secret was last updated. |
String |
getVersion()
Get the version of the secret. |
Boolean |
isEnabled()
Get the enabled value. |
Boolean |
isManaged()
Get the managed value. |
Secret |
setContentType(String contentType)
Set the content |
Secret |
setEnabled(Boolean enabled)
Set the enabled value. |
Secret |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time. |
Secret |
setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time. |
Secret |
setTags(Map<String,String> tags)
Set the tags to be associated with the secret. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SecretProperties
public SecretProperties()
Creates empty instance of SecretProperties.
Method Details
fromJson
public static SecretProperties fromJson(JsonReader jsonReader)
Reads a JSON stream into a SecretProperties.
Parameters:
Returns:
Throws:
getContentType
public String getContentType()
Get the content type.
Returns:
getCreatedOn
public OffsetDateTime getCreatedOn()
Get the the UTC time at which secret was created.
Returns:
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the Secret Expiry time in UTC.
Returns:
getId
public String getId()
Get the secret identifier.
Returns:
getKeyId
public String getKeyId()
Get the keyId identifier.
Returns:
getName
public String getName()
Get the secret name.
Returns:
getNotBefore
public OffsetDateTime getNotBefore()
Get the notBefore UTC time.
Returns:
getRecoverableDays
public Integer getRecoverableDays()
Gets the number of days a secret is retained before being deleted for a soft delete-enabled Key Vault.
Returns:
getRecoveryLevel
public String getRecoveryLevel()
Get the recovery level of the secret.
Returns:
getTags
public Map
Get the tags associated with the secret.
Returns:
getUpdatedOn
public OffsetDateTime getUpdatedOn()
Get the UTC time at which secret was last updated.
Returns:
getVersion
public String getVersion()
Get the version of the secret.
Returns:
isEnabled
public Boolean isEnabled()
Get the enabled value.
Returns:
isManaged
public Boolean isManaged()
Get the managed value.
Returns:
setContentType
public SecretProperties setContentType(String contentType)
Set the contentType.
Parameters:
Returns:
setEnabled
public SecretProperties setEnabled(Boolean enabled)
Set the enabled value.
Parameters:
Returns:
setExpiresOn
public SecretProperties setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time.
Parameters:
Returns:
setNotBefore
public SecretProperties setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time.
Parameters:
Returns:
setTags
public SecretProperties setTags(Map
Set the tags to be associated with the secret.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java