public class UsernameIdentityValidator extends AbstractUsernameIdentityValidator<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
UsernameIdentityValidator.AuthenticationChallenge |
| Constructor and Description |
|---|
UsernameIdentityValidator(boolean anonymousAccessAllowed,
Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate) |
| Modifier and Type | Method and Description |
|---|---|
protected @Nullable String |
authenticateAnonymous(Session session)
Create and return an identity object for an anonymous user.
|
protected @Nullable String |
authenticateUsernamePassword(Session session,
String username,
String password)
Authenticate
username with password, returning an identity object of type T if the
authentication succeeded, or null if the authentication failed. |
validateAnonymousToken, validateUsernameTokendecryptTokenData, validateIdentityToken, validateIssuedIdentityToken, validateX509Tokenpublic UsernameIdentityValidator(boolean anonymousAccessAllowed,
Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate)
@Nullable protected @Nullable String authenticateAnonymous(Session session)
AbstractUsernameIdentityValidatorauthenticateAnonymous in class AbstractUsernameIdentityValidator<String>session - the Session being activated.T representig an anonymous user, or null if anonymous
authentication is not allowed.@Nullable protected @Nullable String authenticateUsernamePassword(Session session, String username, String password)
AbstractUsernameIdentityValidatorusername with password, returning an identity object of type T if the
authentication succeeded, or null if the authentication failed.authenticateUsernamePassword in class AbstractUsernameIdentityValidator<String>session - the Session being activated.username - the username to authenticate.password - the password to authenticate the user with.T if the authentication succeeded, or null if it failed.Copyright © 2021. All rights reserved.