Package com.netscape.certsrv.key
Class KeyGenerationRequest
- java.lang.Object
-
- com.netscape.certsrv.base.ResourceMessage
-
- com.netscape.certsrv.key.KeyGenerationRequest
-
- Direct Known Subclasses:
AsymKeyGenerationRequest,SymKeyGenerationRequest
public class KeyGenerationRequest extends ResourceMessage
Class to define the common attributes and methods used by SymKeyGenerationRequest and AsymKeyGenerationRequest- Author:
- akoneru
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.netscape.certsrv.base.ResourceMessage
ResourceMessage.Attribute, ResourceMessage.AttributeList, ResourceMessage.MapAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCLIENT_KEY_IDprotected static java.lang.StringKEY_ALGORITHMprotected static java.lang.StringKEY_SIZEprotected static java.lang.StringKEY_USAGEprotected static java.lang.StringREALMprotected static java.lang.StringTRANS_WRAPPED_SESSION_KEY-
Fields inherited from class com.netscape.certsrv.base.ResourceMessage
attributes
-
-
Constructor Summary
Constructors Constructor Description KeyGenerationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUsage(java.lang.String usage)java.lang.StringgetClientKeyId()java.lang.StringgetKeyAlgorithm()java.lang.IntegergetKeySize()java.lang.StringgetRealm()java.lang.StringgetTransWrappedSessionKey()java.util.List<java.lang.String>getUsages()voidsetClientKeyId(java.lang.String clientKeyId)voidsetKeyAlgorithm(java.lang.String keyAlgorithm)voidsetKeySize(java.lang.Integer keySize)voidsetRealm(java.lang.String realm)voidsetTransWrappedSessionKey(java.lang.String transWrappedSessionKey)voidsetUsages(java.util.List<java.lang.String> usages)-
Methods inherited from class com.netscape.certsrv.base.ResourceMessage
equals, getAttribute, getAttributeNames, getAttributes, getClassName, hashCode, marshal, marshall, removeAttribute, setAttribute, setAttributes, setClassName, unmarshal, unmarshall
-
-
-
-
Field Detail
-
CLIENT_KEY_ID
protected static final java.lang.String CLIENT_KEY_ID
- See Also:
- Constant Field Values
-
KEY_SIZE
protected static final java.lang.String KEY_SIZE
- See Also:
- Constant Field Values
-
KEY_ALGORITHM
protected static final java.lang.String KEY_ALGORITHM
- See Also:
- Constant Field Values
-
KEY_USAGE
protected static final java.lang.String KEY_USAGE
- See Also:
- Constant Field Values
-
TRANS_WRAPPED_SESSION_KEY
protected static final java.lang.String TRANS_WRAPPED_SESSION_KEY
- See Also:
- Constant Field Values
-
REALM
protected static final java.lang.String REALM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUsages
public java.util.List<java.lang.String> getUsages()
-
setUsages
public void setUsages(java.util.List<java.lang.String> usages)
-
addUsage
public void addUsage(java.lang.String usage)
-
getClientKeyId
public java.lang.String getClientKeyId()
- Returns:
- the clientKeyId
-
setClientKeyId
public void setClientKeyId(java.lang.String clientKeyId)
- Parameters:
clientKeyId- the clientKeyId to set
-
getKeySize
public java.lang.Integer getKeySize()
- Returns:
- the keySize
-
setKeySize
public void setKeySize(java.lang.Integer keySize)
- Parameters:
keySize- the key size to set
-
getKeyAlgorithm
public java.lang.String getKeyAlgorithm()
- Returns:
- the keyAlgorithm
-
setKeyAlgorithm
public void setKeyAlgorithm(java.lang.String keyAlgorithm)
- Parameters:
keyAlgorithm- the key algorithm to set
-
getTransWrappedSessionKey
public java.lang.String getTransWrappedSessionKey()
- Returns:
- the transWrappedSessionKey
-
setTransWrappedSessionKey
public void setTransWrappedSessionKey(java.lang.String transWrappedSessionKey)
- Parameters:
transWrappedSessionKey- the wrapped seesion key to set
-
getRealm
public java.lang.String getRealm()
- Returns:
- the realm
-
setRealm
public void setRealm(java.lang.String realm)
- Parameters:
realm- - authorization realm to set
-
-