Package org.forgerock.oauth2.restlet
Class OpenAMClientAuthenticationFailureFactory
- java.lang.Object
-
- org.forgerock.oauth2.core.exceptions.ClientAuthenticationFailureFactory
-
- org.forgerock.oauth2.restlet.OpenAMClientAuthenticationFailureFactory
-
public class OpenAMClientAuthenticationFailureFactory extends ClientAuthenticationFailureFactory
A ClientAuthenticationFailureFactory which includes implementations of methods suitable for handling the OpenAM implementation of OAuth2.- Since:
- 13.0.0
-
-
Constructor Summary
Constructors Constructor Description OpenAMClientAuthenticationFailureFactory(RealmNormaliser realmNormaliser)Creates the factory, and sets the realm normaliser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetRealm(OAuth2Request request)Extracts the realm from the request, and normalises itprotected booleanhasAuthorizationHeader(OAuth2Request request)Determines whether the request makes use of the authorization header-
Methods inherited from class org.forgerock.oauth2.core.exceptions.ClientAuthenticationFailureFactory
getException, getException, getException
-
-
-
-
Constructor Detail
-
OpenAMClientAuthenticationFailureFactory
@Inject public OpenAMClientAuthenticationFailureFactory(RealmNormaliser realmNormaliser)
Creates the factory, and sets the realm normaliser- Parameters:
realmNormaliser- An object used for normalising realms extracted from requests
-
-
Method Detail
-
hasAuthorizationHeader
protected boolean hasAuthorizationHeader(OAuth2Request request)
Description copied from class:ClientAuthenticationFailureFactoryDetermines whether the request makes use of the authorization header- Specified by:
hasAuthorizationHeaderin classClientAuthenticationFailureFactory- Parameters:
request- The request to examine- Returns:
- True if the authorization header is set
-
getRealm
protected String getRealm(OAuth2Request request)
Description copied from class:ClientAuthenticationFailureFactoryExtracts the realm from the request, and normalises it- Specified by:
getRealmin classClientAuthenticationFailureFactory- Parameters:
request- The request to examine- Returns:
- A normalised realm
-
-