Class KeyData
java.lang.Object
com.netscape.certsrv.key.KeyData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSymmetric and Asymmetric keys will be returned either encrypted or wrapped by the client provided symmetric key.ID for the recovery requestgetSize()getType()inthashCode()voidsetAdditionalWrappedPrivateData(String additionalWrappedPrivateData) voidsetAlgorithm(String algorithm) voidsetEncryptAlgorithmOID(String encryptAlgorithmOID) voidsetNonceData(String nonceData) voidsetP12Data(String p12Data) voidsetPublicKey(String publicKey) voidsetRequestID(RequestId requestID) Set request IDvoidvoidvoidsetWrapAlgorithm(String wrapAlgorithm) voidsetWrappedPrivateData(String wrappedPrivateData) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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
-
setRequestID
-
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
-
equals
-