public class UsernamePasswordAuthenticator extends UsernameBasedAuthenticator implements CredentialsAuthenticator
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
INCORRECT_PASSWORD_MESSAGE_KEY |
protected SecurityConfig |
sc |
USER_NOT_ENABLED_MESSAGE_KEY, USER_NOT_FOUND_MESSAGE_KEY| 构造器和说明 |
|---|
UsernamePasswordAuthenticator() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
authenticate(CredentialsAuthenticationContext context,
leap.core.security.Credentials credentials,
leap.lang.Out<leap.core.security.UserPrincipal> principal)
Returns
true if this authenticator handles the given Credentials. |
resolveUserDetailspublic static final String INCORRECT_PASSWORD_MESSAGE_KEY
protected SecurityConfig sc
public boolean authenticate(CredentialsAuthenticationContext context, leap.core.security.Credentials credentials, leap.lang.Out<leap.core.security.UserPrincipal> principal) throws AuthenticationException
CredentialsAuthenticatortrue if this authenticator handles the given Credentials.authenticate 在接口中 CredentialsAuthenticatorAuthenticationExceptionCopyright © 2019. All rights reserved.