| Package | Description |
|---|---|
| com.inmanlabs.commons.user |
| Modifier and Type | Method and Description |
|---|---|
Secret |
LocalUser.getEmailToken() |
Secret |
LocalUser.getPassword() |
Secret |
LocalUser.getPhoneToken() |
static Secret |
Secret.newSecret(String plainText)
Builds a new hashed secret from the plainText string.
|
static Secret |
Secret.newSecret(String plainText,
int expirationInMinutes)
Builds a new hashed secret from the plainText string.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Secret.isValid(String plainText,
Secret secret)
Returns true if the plaintext "attempt" matches the given hash/salt AND the secret is not expired
|
void |
LocalUser.setEmailToken(Secret emailToken) |
void |
LocalUser.setPassword(Secret password) |
void |
LocalUser.setPhoneToken(Secret phoneToken) |
Copyright © 2019. All rights reserved.