public class OpenConextOAuthClientMock extends Object implements nl.surfnet.coin.api.client.OpenConextOAuthClient
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenConextOAuthClientMock.Users |
| Constructor and Description |
|---|
OpenConextOAuthClientMock() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizationUrl() |
nl.surfnet.coin.api.client.domain.Group20 |
getGroup20(String userId,
String groupId,
String onBehalfOf) |
List<nl.surfnet.coin.api.client.domain.Person> |
getGroupMembers(String groupId,
String onBehalfOf) |
List<nl.surfnet.coin.api.client.domain.Group> |
getGroups(String userId,
String onBehalfOf) |
List<nl.surfnet.coin.api.client.domain.Group20> |
getGroups20(String userId,
String onBehalfOf) |
nl.surfnet.coin.api.client.domain.Person |
getPerson(String userId,
String onBehalfOf) |
boolean |
isAccessTokenGranted(String userId) |
void |
oauthCallback(javax.servlet.http.HttpServletRequest request,
String onBehalfOf) |
void |
setCallbackUrl(String url) |
void |
setConsumerKey(String key) |
void |
setConsumerSecret(String secret) |
void |
setEndpointBaseUrl(String url) |
void |
setVersion(nl.surfnet.coin.api.client.OAuthVersion v) |
public boolean isAccessTokenGranted(String userId)
isAccessTokenGranted in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic String getAuthorizationUrl()
getAuthorizationUrl in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic void oauthCallback(javax.servlet.http.HttpServletRequest request,
String onBehalfOf)
oauthCallback in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic nl.surfnet.coin.api.client.domain.Person getPerson(String userId, String onBehalfOf)
getPerson in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic List<nl.surfnet.coin.api.client.domain.Person> getGroupMembers(String groupId, String onBehalfOf)
getGroupMembers in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic List<nl.surfnet.coin.api.client.domain.Group> getGroups(String userId, String onBehalfOf)
getGroups in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic List<nl.surfnet.coin.api.client.domain.Group20> getGroups20(String userId, String onBehalfOf)
getGroups20 in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic nl.surfnet.coin.api.client.domain.Group20 getGroup20(String userId, String groupId, String onBehalfOf)
getGroup20 in interface nl.surfnet.coin.api.client.OpenConextOAuthClientpublic void setCallbackUrl(String url)
public void setConsumerSecret(String secret)
public void setConsumerKey(String key)
public void setEndpointBaseUrl(String url)
public void setVersion(nl.surfnet.coin.api.client.OAuthVersion v)
Copyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.