Class AuthChallenge
java.lang.Object
ch.tocco.nice2.security.impl.auth.AuthChallenge
- All Implemented Interfaces:
ImmutableChallenge
,Challenge
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(String message) getAttribute
(String key) Returns the authentication result to this challenge.getState()
Return the overall vote.getVotes()
void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setAuthenticationResult
(@Nullable AuthenticationResult authenticationResult) Sets the authentication result to this challenge.void
toString()
void
vote
(ImmutableChallenge.State state) Vote for this challenge with an appropriate state.
-
Constructor Details
-
AuthChallenge
public AuthChallenge()
-
-
Method Details
-
setWho
-
getAuthenticationResult
Description copied from interface:ImmutableChallenge
Returns the authentication result to this challenge. This may benull
while authentication process takes place, but must not benull
on successful authentication.- Specified by:
getAuthenticationResult
in interfaceImmutableChallenge
-
setAuthenticationResult
Description copied from interface:Challenge
Sets the authentication result to this challenge.- Specified by:
setAuthenticationResult
in interfaceChallenge
-
getState
Return the overall vote.ImmutableChallenge.State.SUCCESS
is only returned if there are only success votes. If there is at least one failed or cancelled vote,ImmutableChallenge.State.CANCELLED
is returned if there exists a cancelled vote, otherwiseImmutableChallenge.State.FAILED
.- Specified by:
getState
in interfaceImmutableChallenge
-
vote
Description copied from interface:Challenge
Vote for this challenge with an appropriate state. -
getAttributes
- Specified by:
getAttributes
in interfaceImmutableChallenge
-
getAttribute
- Specified by:
getAttribute
in interfaceImmutableChallenge
-
setAttribute
- Specified by:
setAttribute
in interfaceChallenge
-
removeAttribute
- Specified by:
removeAttribute
in interfaceChallenge
-
addMessage
- Specified by:
addMessage
in interfaceChallenge
-
getMessages
- Specified by:
getMessages
in interfaceImmutableChallenge
-
getVotes
- Specified by:
getVotes
in interfaceImmutableChallenge
-
toString
-