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
-
-
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 KeyArchivalRequestfromDOM(org.w3c.dom.Element element)static KeyArchivalRequestfromXML(java.lang.String xml)java.lang.StringgetAlgorithmOID()java.lang.StringgetClientKeyId()java.lang.StringgetDataType()java.lang.StringgetKeyAlgorithm()java.lang.IntegergetKeySize()java.lang.StringgetPKIArchiveOptions()java.lang.StringgetRealm()java.lang.StringgetSymmetricAlgorithmParams()java.lang.StringgetTransWrappedSessionKey()java.lang.StringgetWrappedPrivateData()voidsetAlgorithmOID(java.lang.String algorithmOID)voidsetClientKeyId(java.lang.String clientKeyId)voidsetDataType(java.lang.String dataType)voidsetKeyAlgorithm(java.lang.String algorithm)voidsetKeySize(java.lang.Integer keySize)voidsetPKIArchiveOptions(java.lang.String pkiArchiveOptions)voidsetRealm(java.lang.String realm)voidsetSymmetricAlgorithmParams(java.lang.String params)voidsetTransWrappedSessionKey(java.lang.String transWrappedSessionKey)voidsetWrappedPrivateData(java.lang.String wrappedPrivateData)org.w3c.dom.ElementtoDOM(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:
toDOMin 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
-
-