public static class AuthenticationMechanism.ChallengeResult extends Object
Constructor and Description |
---|
ChallengeResult(boolean challengeSent) |
ChallengeResult(boolean challengeSent, Integer statusCode) |
Modifier and Type | Method and Description |
---|---|
Integer | getDesiredResponseCode() Obtain the response code desired by this mechanism for the challenge. |
boolean | isChallengeSent() Check if the mechanism did send a challenge. |
public ChallengeResult(boolean challengeSent, Integer statusCode)
public ChallengeResult(boolean challengeSent)
public Integer getDesiredResponseCode()
Where multiple mechanisms are in use concurrently all of the requested response codes will be checked and the most suitable one selected. If no specific response code is required any value less than 0 can be set.
public boolean isChallengeSent()
Some mechanisms do not send a challenge and just rely on the correct information to authenticate a user being available in the request, in that case it would be normal for the mechanism to set this to false.
Copyright © 2015 JBoss by Red Hat. All rights reserved.