Class Key

java.lang.Object
com.netscape.certsrv.key.Key
All Implemented Interfaces:
JSONSerializer

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

    • Key

      public Key()
    • Key

      public Key(KeyData data)
  • Method Details

    • getEncryptedData

      public byte[] getEncryptedData()
    • setEncryptedData

      public void setEncryptedData(byte[] encryptedData)
    • getNonceData

      public byte[] getNonceData()
    • setNonceData

      public void setNonceData(byte[] nonceData)
    • getP12Data

      public String getP12Data()
    • setP12Data

      public void setP12Data(String p12Data)
    • getAlgorithm

      public String getAlgorithm()
    • setAlgorithm

      public void setAlgorithm(String algorithm)
    • getSize

      public Integer getSize()
    • setSize

      public void setSize(Integer size)
    • getData

      public byte[] getData()
    • setData

      public void setData(byte[] data)
    • getRequestId

      public RequestId getRequestId()
    • setRequestId

      public void setRequestId(RequestId requestId)
    • getWrapAlgorithm

      public String getWrapAlgorithm()
    • setWrapAlgorithm

      public void setWrapAlgorithm(String wrapAlgorithm)
    • getEncryptAlgorithmOID

      public String getEncryptAlgorithmOID()
    • setEncryptAlgorithmOID

      public void setEncryptAlgorithmOID(String encryptAlgorithmOID)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getPublicKey

      public String getPublicKey()
    • setPublicKey

      public void setPublicKey(String publicKey)
    • clearSensitiveData

      public void clearSensitiveData()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object