Class KeyData

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

public class KeyData extends Object implements JSONSerializer
Author:
alee
  • Constructor Details

    • KeyData

      public KeyData()
  • Method Details

    • getWrappedPrivateData

      public String getWrappedPrivateData()
      Returns:
      the wrappedPrivateData
    • setWrappedPrivateData

      public void setWrappedPrivateData(String wrappedPrivateData)
      Parameters:
      wrappedPrivateData - the wrappedPrivateData to set
    • getAdditionalWrappedPrivateData

      public String getAdditionalWrappedPrivateData()
    • setAdditionalWrappedPrivateData

      public void setAdditionalWrappedPrivateData(String additionalWrappedPrivateData)
    • getNonceData

      public String getNonceData()
      Returns:
      the nonceData
    • setNonceData

      public void setNonceData(String nonceData)
      Parameters:
      nonceData - the nonceData to set
    • getP12Data

      public String getP12Data()
      Returns:
      the p12Data
    • setP12Data

      public void setP12Data(String p12Data)
      Parameters:
      p12Data - the p12Data to set
    • getAlgorithm

      public String getAlgorithm()
      Returns:
      the algorithm
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      Parameters:
      algorithm - the algorithm to set
    • getSize

      public Integer getSize()
      Returns:
      the size
    • setSize

      public void setSize(Integer size)
      Parameters:
      size - the size to set
    • getRequestID

      public RequestId getRequestID()
      ID for the recovery request
      Returns:
      recovery request id
    • setRequestID

      public void setRequestID(RequestId requestID)
      Set request ID
      Parameters:
      requestID -
    • getEncryptAlgorithmOID

      public String getEncryptAlgorithmOID()
      Symmetric and Asymmetric keys will be returned either encrypted or wrapped by the client provided symmetric key. Which mechanism is used depends on the capabilities of the server (and the HSM behind it). One (and only one) of encryptionAlgorithm or wrapAlgorithm will be set.
      Returns:
      OID of encryption algorithm used to wrap the secret.
    • setEncryptAlgorithmOID

      public void setEncryptAlgorithmOID(String encryptAlgorithmOID)
    • getWrapAlgorithm

      public String getWrapAlgorithm()
      Returns:
      name (as known by JSS) of algorithm used to wrap secret if key wrapping is used
    • setWrapAlgorithm

      public void setWrapAlgorithm(String wrapAlgorithm)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getPublicKey

      public String getPublicKey()
    • setPublicKey

      public void setPublicKey(String publicKey)
    • hashCode

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

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