Class Engine
java.lang.Object
com.coderslagoon.crypto.estreamj.framework.Engine
The engine accumulates all the stream ciphers available. All implementations
register with the engine by themselves.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ICiphercreateCipher(String name) Creates a new cipher instance.static String[]static voidregisterCipher(ICipherMaker cphMk) Called by cipher implementations to register their factories, usually during startup time.
-
Method Details
-
getCipherNames
- Returns:
- the names of all ciphers registered; can be empty if no ciphers have been registered so far
-
createCipher
Creates a new cipher instance.- Parameters:
name- name of the cipher to make- Returns:
- new cipher instance
- Throws:
ESJException- if any error occurred
-
registerCipher
Called by cipher implementations to register their factories, usually during startup time.- Parameters:
cphMk- the factory to register
-