KeyVaultProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. KeyVaultProperties
- com.
Implements
public final class KeyVaultProperties
implements JsonSerializable<KeyVaultProperties>
Properties of key vault.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultProperties() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
currentVersionedKeyExpirationTimestamp()
Get the current |
String |
currentVersionedKeyIdentifier()
Get the current |
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
String |
keyName()
Get the key |
String |
keyVaultUri()
Get the key |
String |
keyVersion()
Get the key |
Offset |
lastKeyRotationTimestamp()
Get the last |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withKeyName(String keyName)
Set the key |
Key |
withKeyVaultUri(String keyVaultUri)
Set the key |
Key |
withKeyVersion(String keyVersion)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultProperties
public KeyVaultProperties()
Creates an instance of KeyVaultProperties class.
Method Details
currentVersionedKeyExpirationTimestamp
public OffsetDateTime currentVersionedKeyExpirationTimestamp()
Get the currentVersionedKeyExpirationTimestamp property: This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption.
Returns:
currentVersionedKeyIdentifier
public String currentVersionedKeyIdentifier()
Get the currentVersionedKeyIdentifier property: The object identifier of the current versioned Key Vault Key in use.
Returns:
fromJson
public static KeyVaultProperties fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultProperties from the JsonReader.
Parameters:
Returns:
Throws:
keyName
public String keyName()
Get the keyName property: The name of KeyVault key.
Returns:
keyVaultUri
public String keyVaultUri()
Get the keyVaultUri property: The Uri of KeyVault.
Returns:
keyVersion
public String keyVersion()
Get the keyVersion property: The version of KeyVault key.
Returns:
lastKeyRotationTimestamp
public OffsetDateTime lastKeyRotationTimestamp()
Get the lastKeyRotationTimestamp property: Timestamp of last rotation of the Key Vault Key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeyName
public KeyVaultProperties withKeyName(String keyName)
Set the keyName property: The name of KeyVault key.
Parameters:
Returns:
withKeyVaultUri
public KeyVaultProperties withKeyVaultUri(String keyVaultUri)
Set the keyVaultUri property: The Uri of KeyVault.
Parameters:
Returns:
withKeyVersion
public KeyVaultProperties withKeyVersion(String keyVersion)
Set the keyVersion property: The version of KeyVault key.
Parameters:
Returns:
Applies to
Azure SDK for Java