|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OAuth2Service
Services to support the OAuth 2.0 specification flows and enforcement. TODO (Eric): include grant methods?
| Method Summary | |
|---|---|
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,
java.lang.Object resourceRequest)
Validates a client's request to use access a resource. |
| Method Detail |
|---|
OAuth2DataService getDataService()
void authenticateClient(OAuth2NormalizedRequest req)
throws OAuth2Exception
OAuth2Exception
void validateRequestForAuthCode(OAuth2NormalizedRequest req)
throws OAuth2Exception
OAuth2Exception
void validateRequestForAccessToken(OAuth2NormalizedRequest req)
throws OAuth2Exception
OAuth2Exception
void validateRequestForResource(OAuth2NormalizedRequest req,
java.lang.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||