Class Key

  • All Implemented Interfaces:
    JSONSerializer

    public class Key
    extends java.lang.Object
    implements JSONSerializer
    Represents a Key stored in the DRM. Return type for all the key retrieval requests of the KeyClient.
    Author:
    akoneru
    • Constructor Detail

      • Key

        public Key()
      • Key

        public Key​(KeyData data)
    • Method Detail

      • getEncryptedData

        public byte[] getEncryptedData()
      • setEncryptedData

        public void setEncryptedData​(byte[] encryptedData)
      • getNonceData

        public byte[] getNonceData()
      • setNonceData

        public void setNonceData​(byte[] nonceData)
      • getP12Data

        public java.lang.String getP12Data()
      • setP12Data

        public void setP12Data​(java.lang.String p12Data)
      • getAlgorithm

        public java.lang.String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(java.lang.String algorithm)
      • getSize

        public java.lang.Integer getSize()
      • setSize

        public void setSize​(java.lang.Integer size)
      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data)
      • getRequestId

        public RequestId getRequestId()
      • setRequestId

        public void setRequestId​(RequestId requestId)
      • getWrapAlgorithm

        public java.lang.String getWrapAlgorithm()
      • setWrapAlgorithm

        public void setWrapAlgorithm​(java.lang.String wrapAlgorithm)
      • getEncryptAlgorithmOID

        public java.lang.String getEncryptAlgorithmOID()
      • setEncryptAlgorithmOID

        public void setEncryptAlgorithmOID​(java.lang.String encryptAlgorithmOID)
      • getType

        public java.lang.String getType()
      • setType

        public void setType​(java.lang.String type)
      • getPublicKey

        public java.lang.String getPublicKey()
      • setPublicKey

        public void setPublicKey​(java.lang.String publicKey)
      • clearSensitiveData

        public void clearSensitiveData()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object