nl.surfnet.coin.selfservice.util
Class OpenConextOAuthClientMock
java.lang.Object
nl.surfnet.coin.selfservice.util.OpenConextOAuthClientMock
- All Implemented Interfaces:
- nl.surfnet.coin.api.client.OpenConextOAuthClient
public class OpenConextOAuthClientMock
- extends Object
- implements nl.surfnet.coin.api.client.OpenConextOAuthClient
OpenConextOAuthClientMock.java
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenConextOAuthClientMock
public OpenConextOAuthClientMock()
isAccessTokenGranted
public boolean isAccessTokenGranted(String userId)
- Specified by:
isAccessTokenGranted in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getAuthorizationUrl
public String getAuthorizationUrl()
- Specified by:
getAuthorizationUrl in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
oauthCallback
public void oauthCallback(javax.servlet.http.HttpServletRequest request,
String onBehalfOf)
- Specified by:
oauthCallback in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getPerson
public nl.surfnet.coin.api.client.domain.Person getPerson(String userId,
String onBehalfOf)
- Specified by:
getPerson in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getGroupMembers
public List<nl.surfnet.coin.api.client.domain.Person> getGroupMembers(String groupId,
String onBehalfOf)
- Specified by:
getGroupMembers in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getGroups
public List<nl.surfnet.coin.api.client.domain.Group> getGroups(String userId,
String onBehalfOf)
- Specified by:
getGroups in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getGroups20
public List<nl.surfnet.coin.api.client.domain.Group20> getGroups20(String userId,
String onBehalfOf)
- Specified by:
getGroups20 in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
getGroup20
public nl.surfnet.coin.api.client.domain.Group20 getGroup20(String userId,
String groupId,
String onBehalfOf)
- Specified by:
getGroup20 in interface nl.surfnet.coin.api.client.OpenConextOAuthClient
setCallbackUrl
public void setCallbackUrl(String url)
setConsumerSecret
public void setConsumerSecret(String secret)
setConsumerKey
public void setConsumerKey(String key)
setEndpointBaseUrl
public void setEndpointBaseUrl(String url)
setVersion
public void setVersion(nl.surfnet.coin.api.client.OAuthVersion v)
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.