KeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.KeyVaultProperties

Implements

public final class KeyVaultProperties
implements JsonSerializable<KeyVaultProperties>

The KeyVaultProperties model.

Constructor Summary

Constructor Description
KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Summary

Modifier and Type Method and Description
static KeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultProperties from the JsonReader.

String identity()

Get the identity property: The client id of the identity which will be used to access key vault.

String keyIdentifier()

Get the keyIdentifier property: Key vault uri to access the encryption key.

Boolean keyRotationEnabled()

Get the keyRotationEnabled property: Auto key rotation status for a CMK enabled registry.

OffsetDateTime lastKeyRotationTimestamp()

Get the lastKeyRotationTimestamp property: Timestamp of the last successful key rotation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String versionedKeyIdentifier()

Get the versionedKeyIdentifier property: The fully qualified key identifier that includes the version of the key that is actually used for encryption.

KeyVaultProperties withIdentity(String identity)

Set the identity property: The client id of the identity which will be used to access key vault.

KeyVaultProperties withKeyIdentifier(String keyIdentifier)

Set the keyIdentifier property: Key vault uri to access the encryption key.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultProperties

public KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Details

fromJson

public static KeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the KeyVaultProperties.

identity

public String identity()

Get the identity property: The client id of the identity which will be used to access key vault.

Returns:

the identity value.

keyIdentifier

public String keyIdentifier()

Get the keyIdentifier property: Key vault uri to access the encryption key.

Returns:

the keyIdentifier value.

keyRotationEnabled

public Boolean keyRotationEnabled()

Get the keyRotationEnabled property: Auto key rotation status for a CMK enabled registry.

Returns:

the keyRotationEnabled value.

lastKeyRotationTimestamp

public OffsetDateTime lastKeyRotationTimestamp()

Get the lastKeyRotationTimestamp property: Timestamp of the last successful key rotation.

Returns:

the lastKeyRotationTimestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

versionedKeyIdentifier

public String versionedKeyIdentifier()

Get the versionedKeyIdentifier property: The fully qualified key identifier that includes the version of the key that is actually used for encryption.

Returns:

the versionedKeyIdentifier value.

withIdentity

public KeyVaultProperties withIdentity(String identity)

Set the identity property: The client id of the identity which will be used to access key vault.

Parameters:

identity - the identity value to set.

Returns:

the KeyVaultProperties object itself.

withKeyIdentifier

public KeyVaultProperties withKeyIdentifier(String keyIdentifier)

Set the keyIdentifier property: Key vault uri to access the encryption key.

Parameters:

keyIdentifier - the keyIdentifier value to set.

Returns:

the KeyVaultProperties object itself.

Applies to