All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.security.Parameterized

public interface Parameterized
This interface is implemented by algorithm objects that may be parameterized (i.e. support the 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.2 $

Author:
David Hopwood

Method Index

 o getParameter(String)
Gets the value of the specified algorithm parameter.
 o setParameter(String, Object)
Sets the specified algorithm parameter to the specified value.

Methods

 o setParameter
 public abstract void setParameter(String param,
                                   Object value) throws NoSuchParameterException, InvalidParameterException, InvalidParameterTypeException
Sets the specified algorithm parameter to the specified value.

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.

Parameters:
param - the string identifier of the parameter.
value - the parameter value.
Throws: NullPointerException
if param == null
Throws: NoSuchParameterException
if there is no parameter with name param for this cipher implementation.
Throws: InvalidParameterException
if the parameter exists but cannot be set (for example because the object is in the wrong state).
Throws: InvalidParameterTypeException
if value is the wrong type for this parameter.
 o getParameter
 public abstract Object getParameter(String param) throws NoSuchParameterException, InvalidParameterException
Gets the value of the specified algorithm parameter.

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.

Parameters:
param - the string name of the parameter.
Returns:
the object that represents the parameter value.
Throws: NullPointerException
if param == null
Throws: NoSuchParameterException
if there is no parameter with name param for this implementation.
Throws: InvalidParameterException
if the parameter exists but cannot be read.

All Packages  Class Hierarchy  This Package  Previous  Next  Index