public class InvalidRequestChallengeHandler extends AuthenticateChallengeHandler
Response
when the request is invalid (missing param, malformed, ...).
Example:
HTTP/1.1 400 Bad Request
WWW-Authenticate: Bearer realm="example",
error="invalid_request",
error_description="...."
WWW_AUTHENTICATE
Constructor and Description |
---|
InvalidRequestChallengeHandler(String realm)
Builds a new InvalidRequestChallengeHandler with a default error description and no error page URI.
|
InvalidRequestChallengeHandler(String realm,
String invalidRequestUri)
Builds a new InvalidRequestChallengeHandler with a default error description.
|
InvalidRequestChallengeHandler(String realm,
String description,
String invalidRequestUri)
Builds a new InvalidRequestChallengeHandler.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
createResponse()
Creates a
Response with the appropriate status code and reason. |
appendExtraAttributes, handle
public InvalidRequestChallengeHandler(String realm)
realm
- mandatory realm value.public InvalidRequestChallengeHandler(String realm, String invalidRequestUri)
realm
- mandatory realm value.invalidRequestUri
- error uri page (will be omitted if null)public InvalidRequestChallengeHandler(String realm, String description, String invalidRequestUri)
realm
- mandatory realm value.description
- error description (will be omitted if null)invalidRequestUri
- error uri page (will be omitted if null)protected Response createResponse()
AuthenticateChallengeHandler
Response
with the appropriate status code and reason. This method is called each time the
AuthenticateChallengeHandler.handle(Context, Request)
method is invoked.createResponse
in class AuthenticateChallengeHandler
Response
instanceCopyright 2011-2015 ForgeRock AS.