public interface OAuth2Service
| Modifier and Type | Method and Description |
|---|---|
void |
authenticateClient(OAuth2NormalizedRequest req)
Validates a client.
|
OAuth2Code |
generateAccessToken(OAuth2NormalizedRequest req)
Generates an access token from a client OAuth 2.0 request.
|
OAuth2Code |
generateAuthorizationCode(OAuth2NormalizedRequest req)
Generates an authorization code from a client OAuth 2.0 request.
|
OAuth2Code |
generateRefreshToken(OAuth2NormalizedRequest req)
Generates a refresh token from a client OAuth 2.0 request.
|
OAuth2DataService |
getDataService()
Retrieves the underlying data service.
|
OAuth2Code |
grantAccessToken(OAuth2NormalizedRequest req)
Grants an access token to the given client by generating and registering
the access token.
|
OAuth2Code |
grantAuthorizationCode(OAuth2NormalizedRequest req)
Grants an authorization code to the given client by generating and
registering the code.
|
OAuth2Code |
grantRefreshToken(OAuth2NormalizedRequest req)
Grants a refresh token to the given client by generating and registering
the refresh token.
|
void |
validateRequestForAccessToken(OAuth2NormalizedRequest req)
Validates a client's request for an access token.
|
void |
validateRequestForAuthCode(OAuth2NormalizedRequest req)
Validates a client's request for an authorization token.
|
void |
validateRequestForResource(OAuth2NormalizedRequest req,
Object resourceRequest)
Validates a client's request to use access a resource.
|
OAuth2DataService getDataService()
void authenticateClient(OAuth2NormalizedRequest req) throws OAuth2Exception
OAuth2Exceptionvoid validateRequestForAuthCode(OAuth2NormalizedRequest req) throws OAuth2Exception
OAuth2Exceptionvoid validateRequestForAccessToken(OAuth2NormalizedRequest req) throws OAuth2Exception
OAuth2Exceptionvoid validateRequestForResource(OAuth2NormalizedRequest req, Object resourceRequest) throws OAuth2Exception
OAuth2ExceptionOAuth2Code grantAuthorizationCode(OAuth2NormalizedRequest req)
OAuth2Code grantAccessToken(OAuth2NormalizedRequest req)
OAuth2Code grantRefreshToken(OAuth2NormalizedRequest req)
OAuth2Code generateAuthorizationCode(OAuth2NormalizedRequest req)
OAuth2Code generateAccessToken(OAuth2NormalizedRequest req)
OAuth2Code generateRefreshToken(OAuth2NormalizedRequest req)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.