Package ch.tocco.nice2.security.spi.auth
Interface UsernamePasswordAuthenticator
- All Known Implementing Classes:
ApiKeyUsernamePasswordAuthenticator
,DefaultUsernamePasswordAuthenticator
public interface UsernamePasswordAuthenticator
Strategy that validates a username/password combination.
-
Method Summary
Modifier and TypeMethodDescriptionint
priority()
Higher priority will be executed first.boolean
validateCredentialsForPrincipal
(UsernamePasswordCredentials credentials, PrincipalDetails principalDetails, Challenge challenge)
-
Method Details
-
priority
int priority()Higher priority will be executed first. -
validateCredentialsForPrincipal
boolean validateCredentialsForPrincipal(UsernamePasswordCredentials credentials, PrincipalDetails principalDetails, Challenge challenge) - Returns:
- true if the username/password combination is valid → the following authenticators won't be executed anymore
-