KeyWrapMetadata Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. KeyWrapMetadata
- com.
Implements
public final class KeyWrapMetadata
implements JsonSerializable<KeyWrapMetadata>
Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key.
Constructor Summary
Constructor | Description |
---|---|
KeyWrapMetadata() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
algorithm()
Get the algorithm property: Algorithm used in wrapping and unwrapping of the data encryption key. |
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
String |
name()
Get the name property: The name of associated Key |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Provider |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Reference / link to the Key |
Key |
withAlgorithm(String algorithm)
Set the algorithm property: Algorithm used in wrapping and unwrapping of the data encryption key. |
Key |
withName(String name)
Set the name property: The name of associated Key |
Key |
withType(String type)
Set the type property: Provider |
Key |
withValue(String value)
Set the value property: Reference / link to the Key |
Methods inherited from java.lang.Object
Constructor Details
KeyWrapMetadata
public KeyWrapMetadata()
Creates an instance of KeyWrapMetadata class.
Method Details
algorithm
public String algorithm()
Get the algorithm property: Algorithm used in wrapping and unwrapping of the data encryption key.
Returns:
fromJson
public static KeyWrapMetadata fromJson(JsonReader jsonReader)
Reads an instance of KeyWrapMetadata from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of associated KeyEncryptionKey (aka CustomerManagedKey).
Returns:
toJson
type
public String type()
Get the type property: ProviderName of KeyStoreProvider.
Returns:
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Reference / link to the KeyEncryptionKey.
Returns:
withAlgorithm
public KeyWrapMetadata withAlgorithm(String algorithm)
Set the algorithm property: Algorithm used in wrapping and unwrapping of the data encryption key.
Parameters:
Returns:
withName
public KeyWrapMetadata withName(String name)
Set the name property: The name of associated KeyEncryptionKey (aka CustomerManagedKey).
Parameters:
Returns:
withType
public KeyWrapMetadata withType(String type)
Set the type property: ProviderName of KeyStoreProvider.
Parameters:
Returns:
withValue
public KeyWrapMetadata withValue(String value)
Set the value property: Reference / link to the KeyEncryptionKey.
Parameters:
Returns:
Applies to
Azure SDK for Java