| java.lang.Object | |
| ↳ | com.google.firebase.auth.hash.Argon2.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Argon2 | build() | ||||||||||
| Argon2.Builder |
setAssociatedData(byte[] associatedData)
Sets additional associated data, if provided, to append to the hash value for additional
security.
| ||||||||||
| Argon2.Builder |
setHashLengthBytes(int hashLengthBytes)
Sets the hash length in bytes.
| ||||||||||
| Argon2.Builder |
setHashType(Argon2.Argon2HashType hashType)
Sets the Argon2 hash type.
| ||||||||||
| Argon2.Builder |
setIterations(int iterations)
Sets the number of iterations to perform.
| ||||||||||
| Argon2.Builder |
setMemoryCostKib(int memoryCostKib)
Sets the memory cost in kibibytes.
| ||||||||||
| Argon2.Builder |
setParallelism(int parallelism)
Sets the degree of parallelism, also called threads or lanes.
| ||||||||||
| Argon2.Builder |
setVersion(Argon2.Argon2Version version)
Sets the version of the Argon2 algorithm.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Sets additional associated data, if provided, to append to the hash value for additional security. This data is base64 encoded before it is sent to the API.
| associatedData | Associated data as a byte array. |
|---|
Sets the hash length in bytes. Required field.
| hashLengthBytes | an integer between 4 and 1024 (inclusive). |
|---|
Sets the Argon2 hash type. Required field.
| hashType | a value from the Argon2.Argon2HashType enum. |
|---|
Sets the number of iterations to perform. Required field.
| iterations | an integer between 1 and 16 (inclusive). |
|---|
Sets the memory cost in kibibytes. Required field.
| memoryCostKib | an integer between 1 and 32768 (inclusive). |
|---|
Sets the degree of parallelism, also called threads or lanes. Required field.
| parallelism | an integer between 1 and 16 (inclusive). |
|---|
Sets the version of the Argon2 algorithm.
| version | a value from the Argon2.Argon2Version enum. |
|---|