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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(String message) getAttribute(String key) Returns the authentication result to this challenge.getState()Return the overall vote.getVotes()voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetAuthenticationResult(@Nullable AuthenticationResult authenticationResult) Sets the authentication result to this challenge.voidtoString()voidvote(ImmutableChallenge.State state) Vote for this challenge with an appropriate state.
-
Constructor Details
-
AuthChallenge
public AuthChallenge()
-
-
Method Details
-
setWho
-
getAuthenticationResult
Description copied from interface:ImmutableChallengeReturns the authentication result to this challenge. This may benullwhile authentication process takes place, but must not benullon successful authentication.- Specified by:
getAuthenticationResultin interfaceImmutableChallenge
-
setAuthenticationResult
Description copied from interface:ChallengeSets the authentication result to this challenge.- Specified by:
setAuthenticationResultin interfaceChallenge
-
getState
Return the overall vote.ImmutableChallenge.State.SUCCESSis only returned if there are only success votes. If there is at least one failed or cancelled vote,ImmutableChallenge.State.CANCELLEDis returned if there exists a cancelled vote, otherwiseImmutableChallenge.State.FAILED.- Specified by:
getStatein interfaceImmutableChallenge
-
vote
Description copied from interface:ChallengeVote for this challenge with an appropriate state. -
getAttributes
- Specified by:
getAttributesin interfaceImmutableChallenge
-
getAttribute
- Specified by:
getAttributein interfaceImmutableChallenge
-
setAttribute
- Specified by:
setAttributein interfaceChallenge
-
removeAttribute
- Specified by:
removeAttributein interfaceChallenge
-
addMessage
- Specified by:
addMessagein interfaceChallenge
-
getMessages
- Specified by:
getMessagesin interfaceImmutableChallenge
-
getVotes
- Specified by:
getVotesin interfaceImmutableChallenge
-
toString
-