Package org.refcodes.forwardsecrecy
Class CipherVersionFactoryImpl
- java.lang.Object
-
- org.refcodes.forwardsecrecy.CipherVersionFactoryImpl
-
- All Implemented Interfaces:
org.refcodes.factory.ContextLookupFactory<CV,String,String>
,CipherVersionFactory<CipherVersion>
public class CipherVersionFactoryImpl extends Object implements CipherVersionFactory<CipherVersion>
Default implementation of aCipherVersionFactory
creatingCipherVersion
instances.
-
-
Constructor Summary
Constructors Constructor Description CipherVersionFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CipherVersion
createInstance(String aCipherUid, String aCipher)
Factory method to be implemented by subclasses.
-
-
-
Method Detail
-
createInstance
public CipherVersion createInstance(String aCipherUid, String aCipher)
Factory method to be implemented by subclasses. Required to create implementation dependentCipherVersion
objects.- Specified by:
createInstance
in interfaceCipherVersionFactory<CipherVersion>
- Specified by:
createInstance
in interfaceorg.refcodes.factory.ContextLookupFactory<CV extends CipherVersion,String,String>
- Parameters:
aCipherUid
- The UID for the cipher to be stored in theCipherVersion
aCipher
- The cipher to be stored in theCipherVersion
.- Returns:
- The
CipherVersion
with the cipher UID and the cipher
-
-