Class KeyReleasePolicy
- java.lang.Object
-
- com.azure.security.keyvault.keys.models.KeyReleasePolicy
-
public final class KeyReleasePolicy extends Object
A model that represents the policy rules under which the key can be exported.
-
-
Constructor Summary
Constructors Constructor Description KeyReleasePolicy(byte[] data)
Creates an instance ofKeyReleasePolicy
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
Get the content type and version of key release policy.byte[]
getData()
Get a blob encoding the policy rules under which the key can be released.KeyReleasePolicy
setContentType(String contentType)
Set the content type and version of key release policy.
-
-
-
Constructor Detail
-
KeyReleasePolicy
public KeyReleasePolicy(byte[] data)
Creates an instance ofKeyReleasePolicy
.- Parameters:
data
- A blob encoding the policy rules under which the key can be released.
-
-
Method Detail
-
getData
public byte[] getData()
Get a blob encoding the policy rules under which the key can be released.- Returns:
- A blob encoding the policy rules under which the key can be released.
-
getContentType
public String getContentType()
Get the content type and version of key release policy.- Returns:
- The content type and version of key release policy.
-
setContentType
public KeyReleasePolicy setContentType(String contentType)
Set the content type and version of key release policy.The service default is "application/json; charset=utf-8".
- Parameters:
contentType
- The content type and version of key release policy to set.- Returns:
- The updated
KeyReleasePolicy
object.
-
-