Package com.netscape.certsrv.key
Class KeyData
java.lang.Object
com.netscape.certsrv.key.KeyData
- All Implemented Interfaces:
JSONSerializer
- Author:
- alee
-
Field Summary
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Symmetric and Asymmetric keys will be returned either encrypted or wrapped by the client provided symmetric key.ID for the recovery requestgetSize()
getType()
int
hashCode()
void
setAdditionalWrappedPrivateData
(String additionalWrappedPrivateData) void
setAlgorithm
(String algorithm) void
setEncryptAlgorithmOID
(String encryptAlgorithmOID) void
setNonceData
(String nonceData) void
setP12Data
(String p12Data) void
setPublicKey
(String publicKey) void
setRequestID
(RequestId requestID) Set request IDvoid
void
void
setWrapAlgorithm
(String wrapAlgorithm) void
setWrappedPrivateData
(String wrappedPrivateData) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Constructor Details
-
KeyData
public KeyData()
-
-
Method Details
-
getWrappedPrivateData
- Returns:
- the wrappedPrivateData
-
setWrappedPrivateData
- Parameters:
wrappedPrivateData
- the wrappedPrivateData to set
-
getAdditionalWrappedPrivateData
-
setAdditionalWrappedPrivateData
-
getNonceData
- Returns:
- the nonceData
-
setNonceData
- Parameters:
nonceData
- the nonceData to set
-
getP12Data
- Returns:
- the p12Data
-
setP12Data
- Parameters:
p12Data
- the p12Data to set
-
getAlgorithm
- Returns:
- the algorithm
-
setAlgorithm
- Parameters:
algorithm
- the algorithm to set
-
getSize
- Returns:
- the size
-
setSize
- Parameters:
size
- the size to set
-
getRequestID
ID for the recovery request- Returns:
- recovery request id
-
setRequestID
Set request ID- Parameters:
requestID
-
-
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
-
getWrapAlgorithm
- Returns:
- name (as known by JSS) of algorithm used to wrap secret if key wrapping is used
-
setWrapAlgorithm
-
getType
-
setType
-
getPublicKey
-
setPublicKey
-
hashCode
public int hashCode() -
equals
-