public final class Argon2Factory
extends java.lang.Object
Argon2 instances.| Modifier and Type | Class and Description |
|---|---|
static class |
Argon2Factory.Argon2Types
Argon2 type.
|
| Modifier and Type | Method and Description |
|---|---|
static Argon2 |
create()
Creates a new
Argon2 instance. |
static Argon2 |
create(Argon2Factory.Argon2Types type)
Creates a new
Argon2 instance with the given type. |
static Argon2 |
create(Argon2Factory.Argon2Types type,
int defaultSaltLength,
int defaultHashLength)
Creates a new
Argon2 instance with the given type. |
static Argon2 |
create(int defaultSaltLength,
int defaultHashLength)
Creates a new
Argon2 instance. |
static Argon2Advanced |
createAdvanced()
Creates a new
Argon2Advanced instance. |
static Argon2Advanced |
createAdvanced(Argon2Factory.Argon2Types type)
Creates a new
Argon2Advanced instance with the given type. |
static Argon2Advanced |
createAdvanced(Argon2Factory.Argon2Types type,
int defaultSaltLength,
int defaultHashLength)
Creates a new
Argon2Advanced instance with the given type. |
static Argon2Advanced |
createAdvanced(int defaultSaltLength,
int defaultHashLength)
Creates a new
Argon2Advanced instance. |
public static Argon2 create()
Argon2 instance. This will select the Argon2i algorithm.public static Argon2Advanced createAdvanced()
Argon2Advanced instance. This will select the Argon2i algorithm.public static Argon2 create(int defaultSaltLength, int defaultHashLength)
Argon2 instance. This will select the Argon2i algorithm.defaultSaltLength - Default salt length in bytes. Can be overridden by some methods.defaultHashLength - Default hash length in bytes. Can be overridden by some methods.public static Argon2Advanced createAdvanced(int defaultSaltLength, int defaultHashLength)
Argon2Advanced instance. This will select the Argon2i algorithm.defaultSaltLength - Default salt length in bytes. Can be overridden by some methods.defaultHashLength - Default hash length in bytes. Can be overridden by some methods.public static Argon2 create(Argon2Factory.Argon2Types type)
Argon2 instance with the given type.type - Argon2 type.public static Argon2Advanced createAdvanced(Argon2Factory.Argon2Types type)
Argon2Advanced instance with the given type.type - Argon2 type.public static Argon2Advanced createAdvanced(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)
Argon2Advanced instance with the given type.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.public static Argon2 create(Argon2Factory.Argon2Types type, int defaultSaltLength, int defaultHashLength)
Argon2 instance with the given type.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.