public interface Parameterized
setParameter
and
getParameter
methods). It can be used as a workaround
for the absence of these methods in Javasoft's version of JCA/JCE.
This interface is not supported in JavaSoft's version of JCE.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getParameter(java.lang.String param)
Gets the value of the specified algorithm parameter.
|
void |
setParameter(java.lang.String param,
java.lang.Object value)
Sets the specified algorithm parameter to the specified value.
|
void setParameter(java.lang.String param, java.lang.Object value) throws NoSuchParameterException, java.security.InvalidParameterException, InvalidParameterTypeException
This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
param
- the string identifier of the parameter.value
- the parameter value.java.lang.NullPointerException
- if param == nullNoSuchParameterException
- if there is no parameter with name
param for this cipher implementation.java.security.InvalidParameterException
- if the parameter exists but cannot
be set (for example because the object is in the
wrong state).InvalidParameterTypeException
- if value is the wrong type
for this parameter.java.lang.Object getParameter(java.lang.String param) throws NoSuchParameterException, java.security.InvalidParameterException
This method supplies a general-purpose mechanism through which it is possible to get the various parameters of this object. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
param
- the string name of the parameter.java.lang.NullPointerException
- if param == nullNoSuchParameterException
- if there is no parameter with name
param for this implementation.java.security.InvalidParameterException
- if the parameter exists but cannot
be read.