public class NoAuthenticationChallengeHandler extends AuthenticateChallengeHandler
Response
when the request does not contains any OAuth 2.0 Bearer token.
Example:
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="example"
WWW_AUTHENTICATE
Constructor and Description |
---|
NoAuthenticationChallengeHandler(String realm)
Builds a new NoAuthenticationChallengeHandler.
|
Modifier and Type | Method and Description |
---|---|
Response |
createResponse()
Creates a
Response with the appropriate status code and reason. |
appendExtraAttributes, handle
public NoAuthenticationChallengeHandler(String realm)
realm
- mandatory realm value.public 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.