xjava.security
Interface Parameterized
- Blowfish, BlowfishKeyGenerator, CAST5, CAST5KeyGenerator, CBC, CFB, CFB_PGP, Cipher, DES, DES2X, DES2XKeyGenerator, DESKeyGenerator, DESX, DESXKeyGenerator, DES_EDE3, DES_EDE3KeyGenerator, FeedbackMode, HAVAL, HMAC, HMAC_HAVAL, HMAC_MD2, HMAC_MD4, HMAC_MD5, HMAC_RIPEMD128, HMAC_RIPEMD160, HMAC_SHA0, HMAC_SHA1, IDEA, IDEAKeyGenerator, KeyGenerator, LOKI91, LOKI91KeyGenerator, Mode, OFB, OneAndZeroes, PaddingScheme, PCBC, PKCS5, PKCS7, RawElGamalCipher, RawKeyGenerator, RawRSACipher, RC2, RC2KeyGenerator, RC4, RC4KeyGenerator, Rijndael, RijndaelKeyGenerator, SAFER, SAFERKeyGenerator, SPEED, SPEEDKeyGenerator, Square, SquareKeyGenerator
public interface Parameterized
- David Hopwood
- IJCE 1.0.1
Object | getParameter(String param) - Gets the value of the specified algorithm parameter.
|
void | setParameter(String param, Object value) - Sets the specified algorithm parameter to the specified value.
|
getParameter
public 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.
param
- the string name of the parameter.
- the object that represents the parameter value.
NoSuchParameterException
- if there is no parameter with name
param for this implementation.
setParameter
public 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.
param
- the string identifier of the parameter.value
- the parameter value.
NoSuchParameterException
- if there is no parameter with name
param for this cipher implementation.InvalidParameterTypeException
- if value is the wrong type
for this parameter.