|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuthService
The OAuthService provides methods useful for validating OAuth requests.
Method Summary | |
---|---|
User |
getCurrentUser()
Returns the User on whose behalf the request was made. |
User |
getCurrentUser(java.lang.String scope)
Returns the User on whose behalf the request was made. |
java.lang.String |
getOAuthConsumerKey()
Returns the oauth_consumer_key OAuth parameter from the request. |
boolean |
isUserAdmin()
Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise. |
Method Detail |
---|
User getCurrentUser() throws OAuthRequestException
User
on whose behalf the request was made.
OAuthRequestException
- If the request was not a valid OAuth request.
OAuthServiceFailureException
- If an unknown OAuth error occurred.User getCurrentUser(java.lang.String scope) throws OAuthRequestException
User
on whose behalf the request was made.
scope
- The customs OAuth scope that is accepted.
OAuthRequestException
- If the request was not a valid OAuth request.
OAuthServiceFailureException
- If an unknown OAuth error occurred.boolean isUserAdmin() throws OAuthRequestException
OAuthRequestException
- If the request was not a valid OAuth request.
OAuthServiceFailureException
- If an unknown OAuth error occurred.java.lang.String getOAuthConsumerKey() throws OAuthRequestException
OAuthRequestException
- If the request was not a valid OAuth request.
OAuthServiceFailureException
- If an unknown OAuth error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |