Package sk.antons.sprops.alg
Class SpropsAlgFactory
- java.lang.Object
-
- sk.antons.sprops.alg.SpropsAlgFactory
-
public class SpropsAlgFactory extends Object
Factory implementation for providing algorithm implementations.- Author:
- antons
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULTDefault algorithm used by implementation (Currently SIMPLE_AES)static intSIMPLE_AESSimpleAesSpropsAlg
-
Constructor Summary
Constructors Constructor Description SpropsAlgFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpropsAlgalgorithm()Provides default algorithmstatic SpropsAlgalgorithm(int type)Maps integer value to real implementation
-
-
-
Field Detail
-
SIMPLE_AES
public static final int SIMPLE_AES
SimpleAesSpropsAlg- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Default algorithm used by implementation (Currently SIMPLE_AES)- See Also:
- Constant Field Values
-
-
Method Detail
-
algorithm
public static SpropsAlg algorithm(int type)
Maps integer value to real implementation- Parameters:
type- integer constant defined in this class- Returns:
- Implementation for given constant
-
algorithm
public static SpropsAlg algorithm()
Provides default algorithm- Returns:
- default algorithm
-
-