Package org.forgerock.oauth2.core
Class ResourceOwnerAuthenticator
- java.lang.Object
-
- org.forgerock.oauth2.core.ResourceOwnerAuthenticator
-
@Singleton public class ResourceOwnerAuthenticator extends Object
Authenticates a resource owner from the credentials provided on the request.- Since:
- 12.0.0
-
-
Constructor Summary
Constructors Constructor Description ResourceOwnerAuthenticator(RealmNormaliser realmNormaliser)Constructs a new OpenAMResourceOwnerAuthenticator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceOwnerauthenticate(OAuth2Request request)Authenticates a resource owner by extracting the resource owner's credentials from the request and authenticating against the OAuth2 provider's internal user store.
-
-
-
Constructor Detail
-
ResourceOwnerAuthenticator
@Inject public ResourceOwnerAuthenticator(RealmNormaliser realmNormaliser)
Constructs a new OpenAMResourceOwnerAuthenticator.- Parameters:
realmNormaliser- An instance of the RealmNormaliser.
-
-
Method Detail
-
authenticate
public ResourceOwner authenticate(OAuth2Request request) throws NotFoundException
Authenticates a resource owner by extracting the resource owner's credentials from the request and authenticating against the OAuth2 provider's internal user store.- Parameters:
request- The OAuth2 request.- Returns:
- The authenticated ResourceOwner, or
nullif authentication failed. - Throws:
NotFoundException- if the requested realm doesn't exist
-
-