Package com.netscape.certsrv.key
Class SymKeyGenerationRequest
- java.lang.Object
-
- com.netscape.certsrv.base.RESTMessage
-
- com.netscape.certsrv.key.KeyGenerationRequest
-
- com.netscape.certsrv.key.SymKeyGenerationRequest
-
- All Implemented Interfaces:
JSONSerializer
public class SymKeyGenerationRequest extends KeyGenerationRequest
- 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 Modifier and Type Field Description static java.lang.StringDECRYPT_USAGEstatic java.lang.StringENCRYPT_USAGEstatic java.lang.StringSIGN_USAGEstatic java.lang.StringUWRAP_USAGEstatic java.lang.StringVERIFY_USAGEstatic java.lang.StringWRAP_USAGE-
Fields inherited from class com.netscape.certsrv.key.KeyGenerationRequest
CLIENT_KEY_ID, KEY_ALGORITHM, KEY_SIZE, KEY_USAGE, REALM, TRANS_WRAPPED_SESSION_KEY
-
Fields inherited from class com.netscape.certsrv.base.RESTMessage
attributes, className
-
-
Constructor Summary
Constructors Constructor Description SymKeyGenerationRequest()SymKeyGenerationRequest(RESTMessage data)SymKeyGenerationRequest(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 SymKeyGenerationRequestfromDOM(org.w3c.dom.Element element)static SymKeyGenerationRequestfromXML(java.lang.String xml)static java.util.List<java.lang.String>getValidUsagesList()voidsetTransWrappedSessionKey(java.lang.String transWrappedSessionKey)org.w3c.dom.ElementtoDOM(org.w3c.dom.Document document)java.lang.StringtoString()-
Methods inherited from class com.netscape.certsrv.key.KeyGenerationRequest
addUsage, getClientKeyId, getKeyAlgorithm, getKeySize, getRealm, getTransWrappedSessionKey, getUsages, setClientKeyId, setKeyAlgorithm, setKeySize, setRealm, setUsages
-
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, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
-
-
-
Field Detail
-
UWRAP_USAGE
public static final java.lang.String UWRAP_USAGE
- See Also:
- Constant Field Values
-
WRAP_USAGE
public static final java.lang.String WRAP_USAGE
- See Also:
- Constant Field Values
-
VERIFY_USAGE
public static final java.lang.String VERIFY_USAGE
- See Also:
- Constant Field Values
-
SIGN_USAGE
public static final java.lang.String SIGN_USAGE
- See Also:
- Constant Field Values
-
DECRYPT_USAGE
public static final java.lang.String DECRYPT_USAGE
- See Also:
- Constant Field Values
-
ENCRYPT_USAGE
public static final java.lang.String ENCRYPT_USAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SymKeyGenerationRequest
public SymKeyGenerationRequest()
-
SymKeyGenerationRequest
public SymKeyGenerationRequest(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form)
-
SymKeyGenerationRequest
public SymKeyGenerationRequest(RESTMessage data)
-
-
Method Detail
-
setTransWrappedSessionKey
public void setTransWrappedSessionKey(java.lang.String transWrappedSessionKey)
- Overrides:
setTransWrappedSessionKeyin classKeyGenerationRequest- Parameters:
transWrappedSessionKey- the wrapped seesion key to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getValidUsagesList
public static java.util.List<java.lang.String> getValidUsagesList()
-
toDOM
public org.w3c.dom.Element toDOM(org.w3c.dom.Document document)
- Overrides:
toDOMin classRESTMessage
-
fromDOM
public static SymKeyGenerationRequest fromDOM(org.w3c.dom.Element element)
-
fromXML
public static SymKeyGenerationRequest fromXML(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-