|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.crypto.AbstractMACCalculatorFactory
public abstract class AbstractMACCalculatorFactory
Abstract base class for implementing a MACCalculatorFactory
.
Implementors should subclass this class instead of directly implementing the interface
MACCalculatorFactory
.
Constructor Summary | |
---|---|
AbstractMACCalculatorFactory()
|
Method Summary | |
---|---|
protected abstract MACCalculator |
_createMACCalculator()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMACCalculatorFactory()
Method Detail |
---|
public String getAlgorithmName()
MACCalculatorFactory
MACCalculator
created by this factory.
See Supported algorithms
for a list of supported algorithms.
getAlgorithmName
in interface MACCalculatorFactory
public void setAlgorithmName(String algorithmName)
MACCalculatorFactory
IllegalStateException
if it is called again.
setAlgorithmName
in interface MACCalculatorFactory
algorithmName
- the name of the MAC algorithm; never null
.MACCalculatorFactory.getAlgorithmName()
public MACCalculator createMACCalculator(boolean initWithDefaults)
MACCalculatorFactory
Create a new instance of MACCalculator
and optionally
initialise
it.
createMACCalculator
in interface MACCalculatorFactory
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).protected abstract MACCalculator _createMACCalculator()
|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |