Class AuthChallenge
java.lang.Object
ch.tocco.nice2.security.impl.auth.AuthChallenge
- All Implemented Interfaces:
- ImmutableChallenge,- Challenge
- 
Nested Class SummaryNested classes/interfaces inherited from interface ch.tocco.nice2.security.api.auth.ImmutableChallengeImmutableChallenge.State
- 
Field SummaryFields inherited from interface ch.tocco.nice2.security.api.auth.ImmutableChallengeCREDENTIALS_ATTRIBUTE, REQUEST_URI
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
AuthChallengepublic AuthChallenge()
 
- 
- 
Method Details- 
setWho
- 
getAuthenticationResultDescription 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 interface- ImmutableChallenge
 
- 
setAuthenticationResultDescription copied from interface:ChallengeSets the authentication result to this challenge.- Specified by:
- setAuthenticationResultin interface- Challenge
 
- 
getStateReturn 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 interface- ImmutableChallenge
 
- 
voteDescription copied from interface:ChallengeVote for this challenge with an appropriate state.
- 
getAttributes- Specified by:
- getAttributesin interface- ImmutableChallenge
 
- 
getAttribute- Specified by:
- getAttributein interface- ImmutableChallenge
 
- 
setAttribute- Specified by:
- setAttributein interface- Challenge
 
- 
removeAttribute- Specified by:
- removeAttributein interface- Challenge
 
- 
addMessage- Specified by:
- addMessagein interface- Challenge
 
- 
getMessages- Specified by:
- getMessagesin interface- ImmutableChallenge
 
- 
getVotes- Specified by:
- getVotesin interface- ImmutableChallenge
 
- 
toString
 
-