Package ch.tocco.nice2.security.spi.auth
Interface Challenge
- All Superinterfaces:
ImmutableChallenge
- All Known Implementing Classes:
AuthChallenge
A challenge is the information gathered by AuthenticationHandler
s 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 TypeMethodDescriptionvoid
addMessage
(String message) void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setAuthenticationResult
(AuthenticationResult authenticationResult) Sets the authentication result to this challenge.void
vote
(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
-