|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuth2Operations
A service interface for the OAuth2 flow. This interface allows you to conduct the "OAuth dance" with a service provider on behalf of a user.
Method Summary | |
---|---|
java.lang.String |
buildAuthenticateUrl(GrantType grantType,
OAuth2Parameters parameters)
Construct the URL to redirect the user to for authentication. |
java.lang.String |
buildAuthorizeUrl(GrantType grantType,
OAuth2Parameters parameters)
Construct the URL to redirect the user to for authorization. |
AccessGrant |
exchangeForAccess(java.lang.String authorizationCode,
java.lang.String redirectUri,
MultiValueMap<java.lang.String,java.lang.String> additionalParameters)
Exchange the authorization code for an access grant. |
AccessGrant |
refreshAccess(java.lang.String refreshToken,
java.lang.String scope,
MultiValueMap<java.lang.String,java.lang.String> additionalParameters)
Refreshes a previous access grant. |
Method Detail |
---|
java.lang.String buildAuthorizeUrl(GrantType grantType, OAuth2Parameters parameters)
grantType
- specifies whether to use client-side or server-side OAuth flowparameters
- authorization parameters needed to build the URL
java.lang.String buildAuthenticateUrl(GrantType grantType, OAuth2Parameters parameters)
grantType
- specifies whether to use client-side or server-side OAuth flowparameters
- authorization parameters needed to build the URL
AccessGrant exchangeForAccess(java.lang.String authorizationCode, java.lang.String redirectUri, MultiValueMap<java.lang.String,java.lang.String> additionalParameters)
authorizationCode
- the authorization code returned by the provider upon user authorizationredirectUri
- the authorization callback url; this value must match the redirectUri registered with the providerAccessGrant refreshAccess(java.lang.String refreshToken, java.lang.String scope, MultiValueMap<java.lang.String,java.lang.String> additionalParameters)
refreshToken
- the refresh token from the previous access grant.scope
- optional scope to narrow to when refreshing access; if null, the existing scope is preserved.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |