public abstract class ClientAuthenticationFailureFactory extends Object
Constructor and Description |
---|
ClientAuthenticationFailureFactory() |
Modifier and Type | Method and Description |
---|---|
InvalidClientException |
getException()
Produces an InvalidClientException.
|
InvalidClientException |
getException(OAuth2Request request,
String message)
Produces an InvalidClientException or InvalidClientAuthZHeaderException based on the request provided.
|
InvalidClientException |
getException(String message)
Produces an InvalidClientException.
|
protected abstract String |
getRealm(OAuth2Request request)
Extracts the realm from the request, and normalises it
|
protected abstract boolean |
hasAuthorizationHeader(OAuth2Request request)
Determines whether the request makes use of the authorization header
|
public InvalidClientException getException()
public InvalidClientException getException(String message)
message
- The message which will be reportedpublic InvalidClientException getException(OAuth2Request request, String message)
request
- The request that has failed to authenticate the usermessage
- The message which will be reportedprotected abstract boolean hasAuthorizationHeader(OAuth2Request request)
request
- The request to examineprotected abstract String getRealm(OAuth2Request request)
request
- The request to examineCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.