Class KeyReleasePolicy


  • public final class KeyReleasePolicy
    extends Object
    A model that represents the policy rules under which the key can be exported.
    • Constructor Detail

      • KeyReleasePolicy

        public KeyReleasePolicy​(byte[] data)
        Creates an instance of KeyReleasePolicy.
        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.