nl.surfnet.coin.csa.util
Class OpenConextOAuthClientMock
java.lang.Object
nl.surfnet.coin.csa.util.OpenConextOAuthClientMock
- All Implemented Interfaces:
- nl.surfnet.coin.api.client.OpenConextOAuthClient, org.springframework.beans.factory.InitializingBean
public class OpenConextOAuthClientMock
- extends Object
- implements nl.surfnet.coin.api.client.OpenConextOAuthClient, org.springframework.beans.factory.InitializingBean
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)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.