Package de.mkammerer.argon2
Class Argon2Factory
- java.lang.Object
-
- de.mkammerer.argon2.Argon2Factory
-
public final class Argon2Factory extends java.lang.ObjectFactory forArgon2instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArgon2Factory.Argon2TypesArgon2 type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Argon2create()Creates a newArgon2instance.static Argon2create(int defaultSaltLength, int defaultHashLength)Creates a newArgon2instance.static Argon2create(Argon2Factory.Argon2Types type)Creates a newArgon2instance with the given type.static Argon2create(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)Creates a newArgon2instance with the given type.static Argon2AdvancedcreateAdvanced()Creates a newArgon2Advancedinstance.static Argon2AdvancedcreateAdvanced(int defaultSaltLength, int defaultHashLength)Creates a newArgon2Advancedinstance.static Argon2AdvancedcreateAdvanced(Argon2Factory.Argon2Types type)Creates a newArgon2Advancedinstance with the given type.static Argon2AdvancedcreateAdvanced(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)Creates a newArgon2Advancedinstance with the given type.
-
-
-
Method Detail
-
create
public static Argon2 create()
Creates a newArgon2instance. This will select the Argon2i algorithm.- Returns:
- Argon2 instance.
-
createAdvanced
public static Argon2Advanced createAdvanced()
Creates a newArgon2Advancedinstance. This will select the Argon2i algorithm.- Returns:
- Argon2Advanced instance.
-
create
public static Argon2 create(int defaultSaltLength, int defaultHashLength)
Creates a newArgon2instance. This will select the Argon2i algorithm.- Parameters:
defaultSaltLength- Default salt length in bytes. Can be overridden by some methods.defaultHashLength- Default hash length in bytes. Can be overridden by some methods.- Returns:
- Argon2 instance.
-
createAdvanced
public static Argon2Advanced createAdvanced(int defaultSaltLength, int defaultHashLength)
Creates a newArgon2Advancedinstance. This will select the Argon2i algorithm.- Parameters:
defaultSaltLength- Default salt length in bytes. Can be overridden by some methods.defaultHashLength- Default hash length in bytes. Can be overridden by some methods.- Returns:
- Argon2Advanced instance.
-
create
public static Argon2 create(Argon2Factory.Argon2Types type)
Creates a newArgon2instance with the given type.- Parameters:
type- Argon2 type.- Returns:
- Argon2 instance.
-
createAdvanced
public static Argon2Advanced createAdvanced(Argon2Factory.Argon2Types type)
Creates a newArgon2Advancedinstance with the given type.- Parameters:
type- Argon2 type.- Returns:
- Argon2Advanced instance.
-
createAdvanced
public static Argon2Advanced createAdvanced(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)
Creates a newArgon2Advancedinstance with the given type.- Parameters:
type- Argon2 type.defaultSaltLength- Default salt length in bytes. Can be overridden by some methods.defaultHashLength- Default hash length in bytes. Can be overridden by some methods.- Returns:
- Argon2Advanced instance.
-
create
public static Argon2 create(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)
Creates a newArgon2instance with the given type.- Parameters:
type- Argon2 type.defaultSaltLength- Default salt length in bytes. Can be overridden by some methods.defaultHashLength- Default hash length in bytes. Can be overridden by some methods.- Returns:
- Argon2 instance.
-
-