|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MACCalculatorFactory
Factory creating instances of MACCalculator
.
Implementations of this interface are used by CryptoRegistry.createMACCalculator(String, boolean)
to provide instances of MACCalculator
.
Note: Implementors should subclass AbstractMACCalculatorFactory
instead of directly implementing this
interface.
Method Summary | |
---|---|
MACCalculator |
createMACCalculator(boolean initWithDefaults)
Create a new instance of MACCalculator and optionally
initialise it. |
String |
getAlgorithmName()
Get the name of the MAC algorithm implemented by the MACCalculator created by this factory. |
void |
setAlgorithmName(String algorithmName)
Set the name of the MAC algorithm. |
Method Detail |
---|
MACCalculator createMACCalculator(boolean initWithDefaults)
Create a new instance of MACCalculator
and optionally
initialise
it.
initWithDefaults
- whether to
initialise
the MACCalculator
with default values
so that it can be used immediately as-is.
MACCalculator
(iff initWithDefaults==true
ready-to-use;
otherwise requiring initialisation
before it can be used).String getAlgorithmName()
MACCalculator
created by this factory.
See Supported algorithms
for a list of supported algorithms.
void setAlgorithmName(String algorithmName)
IllegalStateException
if it is called again.
algorithmName
- the name of the MAC algorithm; never null
.getAlgorithmName()
|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |