|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.api.client.OpenConextOAuthClientImpl
public class OpenConextOAuthClientImpl
Implementation of OpenConextOAuthClient
| Constructor Summary | |
|---|---|
OpenConextOAuthClientImpl(OAuthEnvironment environment,
OAuthRepository repository)
|
|
| Method Summary | |
|---|---|
String |
getAuthorizationUrl(OAuthVersion version)
Get the authorization url |
List<Person> |
getGroupMembers(String groupId,
String onBehalfOf)
Get the group members of the given group. |
List<Group> |
getGroups(String userId,
String onBehalfOf)
Get Persons' Groups |
List<Group20> |
getGroups20(String userId,
String onBehalfOf)
Get Persons' Groups |
Person |
getPerson(String userId,
String onBehalfOf)
Get the OpenSocial Person. |
boolean |
isAccessTokenGranted(String userId)
Is it possible to make OpenSocial requests for this user (as onBehalfOf). |
void |
oauthCallback(OAuthVersion version,
javax.servlet.http.HttpServletRequest request)
Clients who have requested a redirect to the authorization URL will be notified on the registered callback URL. |
void |
redirectToAuthorizationUrl(OAuthVersion version,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Clients who wants to make three-legged calls, but who do not have an access token yet for an user can redirect to the authorization URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenConextOAuthClientImpl(OAuthEnvironment environment,
OAuthRepository repository)
| Method Detail |
|---|
public boolean isAccessTokenGranted(String userId)
OpenConextOAuthClient
isAccessTokenGranted in interface OpenConextOAuthClientuserId - the unique identifier
public void redirectToAuthorizationUrl(OAuthVersion version,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
OpenConextOAuthClient
redirectToAuthorizationUrl in interface OpenConextOAuthClientversion - the OAuth protocol version to userequest - the HTTP request for obtaining the request tokenresponse - the HTTP response for redirecting to the authorization urlpublic String getAuthorizationUrl(OAuthVersion version)
OpenConextOAuthClient
getAuthorizationUrl in interface OpenConextOAuthClientversion - the oauth version
public void oauthCallback(OAuthVersion version,
javax.servlet.http.HttpServletRequest request)
OpenConextOAuthClient
oauthCallback in interface OpenConextOAuthClientversion - the OAuth protocol version to userequest - the HTTP request for obtaining the request token
public Person getPerson(String userId,
String onBehalfOf)
OpenConextOAuthClient
getPerson in interface OpenConextOAuthClientuserId - the unique identifieronBehalfOf - the unique identifier of the user that is going to make the
request
Person
public List<Person> getGroupMembers(String groupId,
String onBehalfOf)
OpenConextOAuthClient
getGroupMembers in interface OpenConextOAuthClientgroupId - String the unique identifier for the grouponBehalfOf - String the unique identifier of the user that is going to
make the request
ArrayList containing Person's
public List<Group> getGroups(String userId,
String onBehalfOf)
OpenConextOAuthClient
getGroups in interface OpenConextOAuthClientuserId - the unique identifieronBehalfOf - the unique identifier of the user that is going to make the
request
List containing the Groups
public List<Group20> getGroups20(String userId,
String onBehalfOf)
OpenConextOAuthClient
getGroups20 in interface OpenConextOAuthClientuserId - the unique identifieronBehalfOf - the unique identifier of the user that is going to make the
request
List containing the Groups
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||