Package com.netscape.certsrv.key
Class KeyArchivalRequest
- java.lang.Object
-
- com.netscape.certsrv.base.RESTMessage
-
- com.netscape.certsrv.key.KeyArchivalRequest
-
- All Implemented Interfaces:
JSONSerializer
public class KeyArchivalRequest extends RESTMessage
- Author:
- alee
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.netscape.certsrv.base.RESTMessage
RESTMessage.Attribute, RESTMessage.AttributeList, RESTMessage.AttributeListDeserializer, RESTMessage.AttributeListSerializer
-
-
Field Summary
-
Fields inherited from class com.netscape.certsrv.base.RESTMessage
attributes, className
-
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
-
Constructor Summary
Constructors Constructor Description KeyArchivalRequest()
KeyArchivalRequest(RESTMessage data)
KeyArchivalRequest(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyArchivalRequest
fromDOM(org.w3c.dom.Element element)
static KeyArchivalRequest
fromXML(java.lang.String xml)
java.lang.String
getAlgorithmOID()
java.lang.String
getClientKeyId()
java.lang.String
getDataType()
java.lang.String
getKeyAlgorithm()
java.lang.Integer
getKeySize()
java.lang.String
getPKIArchiveOptions()
java.lang.String
getRealm()
java.lang.String
getSymmetricAlgorithmParams()
java.lang.String
getTransWrappedSessionKey()
java.lang.String
getWrappedPrivateData()
void
setAlgorithmOID(java.lang.String algorithmOID)
void
setClientKeyId(java.lang.String clientKeyId)
void
setDataType(java.lang.String dataType)
void
setKeyAlgorithm(java.lang.String algorithm)
void
setKeySize(java.lang.Integer keySize)
void
setPKIArchiveOptions(java.lang.String pkiArchiveOptions)
void
setRealm(java.lang.String realm)
void
setSymmetricAlgorithmParams(java.lang.String params)
void
setTransWrappedSessionKey(java.lang.String transWrappedSessionKey)
void
setWrappedPrivateData(java.lang.String wrappedPrivateData)
org.w3c.dom.Element
toDOM(org.w3c.dom.Document document)
-
Methods inherited from class com.netscape.certsrv.base.RESTMessage
equals, fromDOM, getAttribute, getAttributeList, getAttributeNames, getAttributes, getClassName, hashCode, removeAttribute, setAttribute, setAttributeList, setAttributes, setClassName, toDOM, toXML
-
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 Detail
-
KeyArchivalRequest
public KeyArchivalRequest()
-
KeyArchivalRequest
public KeyArchivalRequest(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form)
-
KeyArchivalRequest
public KeyArchivalRequest(RESTMessage data)
-
-
Method Detail
-
getClientKeyId
public java.lang.String getClientKeyId()
- Returns:
- the clientKeyID
-
setClientKeyId
public void setClientKeyId(java.lang.String clientKeyId)
- Parameters:
clientKeyId
- the clientKeyId to set
-
getDataType
public java.lang.String getDataType()
- Returns:
- the dataType
-
setDataType
public void setDataType(java.lang.String dataType)
- Parameters:
dataType
- the dataType to set
-
getTransWrappedSessionKey
public java.lang.String getTransWrappedSessionKey()
- Returns:
- the transWrappedSessionKey
-
setTransWrappedSessionKey
public void setTransWrappedSessionKey(java.lang.String transWrappedSessionKey)
- Parameters:
transWrappedSessionKey
- the trans wrapped session key to set
-
getPKIArchiveOptions
public java.lang.String getPKIArchiveOptions()
- Returns:
- the PKIArchiveOptions structure
-
setPKIArchiveOptions
public void setPKIArchiveOptions(java.lang.String pkiArchiveOptions)
- Parameters:
pkiArchiveOptions
- the archive options structure to set
-
getAlgorithmOID
public java.lang.String getAlgorithmOID()
- Returns:
- the algorithm OID structure
-
setAlgorithmOID
public void setAlgorithmOID(java.lang.String algorithmOID)
- Parameters:
algorithmOID
- the symmetric algorithm OID to set
-
getSymmetricAlgorithmParams
public java.lang.String getSymmetricAlgorithmParams()
- Returns:
- the algorithm params structure
-
setSymmetricAlgorithmParams
public void setSymmetricAlgorithmParams(java.lang.String params)
- Parameters:
params
- the algorithm params to set
-
getWrappedPrivateData
public java.lang.String getWrappedPrivateData()
- Returns:
- the pkiArchiveOptions structure
-
setWrappedPrivateData
public void setWrappedPrivateData(java.lang.String wrappedPrivateData)
- Parameters:
wrappedPrivateData
- the wrappedPrivateData to set
-
getKeyAlgorithm
public java.lang.String getKeyAlgorithm()
- Returns:
- the keyAlgorithm (valid for symmetric keys)
-
setKeyAlgorithm
public void setKeyAlgorithm(java.lang.String algorithm)
- Parameters:
algorithm
- the key algorithm to set (valid for symmetric keys)
-
getKeySize
public java.lang.Integer getKeySize()
- Returns:
- the key strength (valid for symmetric keys)
-
setKeySize
public void setKeySize(java.lang.Integer keySize)
- Parameters:
keySize
- the key strength to set (valid for symmetric keys)
-
getRealm
public java.lang.String getRealm()
- Returns:
- the authentication realm
-
setRealm
public void setRealm(java.lang.String realm)
- Parameters:
realm
- - the authentication realm
-
toDOM
public org.w3c.dom.Element toDOM(org.w3c.dom.Document document)
- Overrides:
toDOM
in classRESTMessage
-
fromDOM
public static KeyArchivalRequest fromDOM(org.w3c.dom.Element element)
-
fromXML
public static KeyArchivalRequest fromXML(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-