Package com.netscape.certsrv.key
Class KeyArchivalRequest
- java.lang.Object
-
- com.netscape.certsrv.base.ResourceMessage
-
- com.netscape.certsrv.key.KeyArchivalRequest
-
public class KeyArchivalRequest extends ResourceMessage
- Author:
- alee
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.netscape.certsrv.base.ResourceMessage
ResourceMessage.Attribute, ResourceMessage.AttributeList, ResourceMessage.MapAdapter
-
-
Field Summary
-
Fields inherited from class com.netscape.certsrv.base.ResourceMessage
attributes
-
-
Constructor Summary
Constructors Constructor Description KeyArchivalRequest()KeyArchivalRequest(ResourceMessage 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 KeyArchivalRequestfromJSON(java.lang.String json)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()static voidmain(java.lang.String[] args)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)java.lang.StringtoJSON()java.lang.StringtoString()java.lang.StringtoXML()-
Methods inherited from class com.netscape.certsrv.base.ResourceMessage
equals, getAttribute, getAttributeNames, getAttributes, getClassName, hashCode, marshal, marshall, removeAttribute, setAttribute, setAttributes, setClassName, unmarshal, unmarshall
-
-
-
-
Constructor Detail
-
KeyArchivalRequest
public KeyArchivalRequest()
-
KeyArchivalRequest
public KeyArchivalRequest(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form)
-
KeyArchivalRequest
public KeyArchivalRequest(ResourceMessage 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
-
toXML
public java.lang.String toXML() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromXML
public static KeyArchivalRequest fromXML(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toJSON
public java.lang.String toJSON() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromJSON
public static KeyArchivalRequest fromJSON(java.lang.String json) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-