Class GordianGenerator
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.util.GordianGenerator
Factory generator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classTrue Factory generator. -
Method Summary
Modifier and TypeMethodDescriptionstatic GordianFactorycreateFactory(GordianFactoryType pFactoryType) Create a new factory instance.static GordianFactorycreateFactory(GordianFactoryType pFactoryType, char[] pSecurityPhrase) Create a new factory instance.static GordianFactorycreateRandomFactory(GordianFactoryType pFactoryType) Create a new random bouncyCastle factory instance.
-
Method Details
-
createFactory
Create a new factory instance.- Parameters:
pFactoryType- the factoryType- Returns:
- the new factory
- Throws:
GordianException- on error
-
createFactory
public static GordianFactory createFactory(GordianFactoryType pFactoryType, char[] pSecurityPhrase) throws GordianException Create a new factory instance.- Parameters:
pFactoryType- the factoryTypepSecurityPhrase- the securityPhrase- Returns:
- the new factory
- Throws:
GordianException- on error
-
createRandomFactory
public static GordianFactory createRandomFactory(GordianFactoryType pFactoryType) throws GordianException Create a new random bouncyCastle factory instance.- Parameters:
pFactoryType- the factory type- Returns:
- the new factory
- Throws:
GordianException- on error
-