| 
 | Cumulus4j API (1.2.0-SNAPSHOT) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 MACCalculatorand optionallyinitialiseit. | 
|  String | getAlgorithmName()Get the name of the MAC algorithm implemented by the MACCalculatorcreated 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()
MACCalculatorFactoryMACCalculator created by this factory.
 See Supported algorithms
 for a list of supported algorithms.
getAlgorithmName in interface MACCalculatorFactorypublic void setAlgorithmName(String algorithmName)
MACCalculatorFactoryIllegalStateException
 if it is called again.
setAlgorithmName in interface MACCalculatorFactoryalgorithmName - 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 MACCalculatorFactoryinitWithDefaults - 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.2.0-SNAPSHOT) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||