Package ch.tocco.nice2.security.spi.auth
Interface Challenge
- All Superinterfaces:
ImmutableChallenge
- All Known Implementing Classes:
AuthChallenge
A challenge is the information gathered by AuthenticationHandlers while in process
of authenticating a subject. It is meant to be a challenge for authentication... which may
succeed or fail.
Each registered handler gets a chance to vote for a subject that is about to gain access
to part of the application. An AuthenticationHandler populates this object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.security.api.auth.ImmutableChallenge
ImmutableChallenge.State -
Field Summary
Fields inherited from interface ch.tocco.nice2.security.api.auth.ImmutableChallenge
CREDENTIALS_ATTRIBUTE, REQUEST_URI -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(String message) voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetAuthenticationResult(AuthenticationResult authenticationResult) Sets the authentication result to this challenge.voidvote(ImmutableChallenge.State state) Vote for this challenge with an appropriate state.Methods inherited from interface ch.tocco.nice2.security.api.auth.ImmutableChallenge
getAttribute, getAttributes, getAuthenticationResult, getMessages, getState, getVotes
-
Method Details
-
setAuthenticationResult
Sets the authentication result to this challenge. -
vote
Vote for this challenge with an appropriate state. -
setAttribute
-
removeAttribute
-
addMessage
-