public class KeyProperties extends Object
JsonWebKey
material.
It is managed by the Key Service.KeyClient
,
KeyAsyncClient
Constructor and Description |
---|
KeyProperties() |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getCreatedOn()
Get the the UTC time at which key was created.
|
OffsetDateTime |
getExpiresOn()
Get the Key Expiry time in UTC.
|
String |
getId()
Get the key identifier.
|
String |
getName()
Get the key name.
|
OffsetDateTime |
getNotBefore()
Get the notBefore UTC time.
|
Integer |
getRecoverableDays()
Gets the number of days a key is retained before being deleted for a soft delete-enabled Key Vault.
|
String |
getRecoveryLevel()
Get the recoveryLevel value.
|
Map<String,String> |
getTags()
Get the tags associated with the key.
|
OffsetDateTime |
getUpdatedOn()
Get the UTC time at which key was last updated.
|
String |
getVersion()
Get the version of the key.
|
Boolean |
isEnabled()
Get the enabled value.
|
Boolean |
isManaged()
Get the managed value.
|
KeyProperties |
setEnabled(Boolean enabled)
Set the enabled value.
|
KeyProperties |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
KeyProperties |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
KeyProperties |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
public Integer getRecoverableDays()
public String getRecoveryLevel()
public String getName()
public Boolean isEnabled()
public KeyProperties setEnabled(Boolean enabled)
enabled
- The enabled value to setpublic OffsetDateTime getNotBefore()
public KeyProperties setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.notBefore
- The notBefore UTC time to setpublic OffsetDateTime getExpiresOn()
public KeyProperties setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.expiresOn
- The expiry time to set for the key.public OffsetDateTime getCreatedOn()
public OffsetDateTime getUpdatedOn()
public String getId()
public Map<String,String> getTags()
public KeyProperties setTags(Map<String,String> tags)
tags
- The tags to setpublic Boolean isManaged()
public String getVersion()
Copyright © 2020 Microsoft Corporation. All rights reserved.