org.surfnet.oaaas.conext.mock
Class OpenConextOAuthClientMock

java.lang.Object
  extended by org.surfnet.oaaas.conext.mock.OpenConextOAuthClientMock
All Implemented Interfaces:
nl.surfnet.coin.api.client.OpenConextOAuthClient

public class OpenConextOAuthClientMock
extends Object
implements nl.surfnet.coin.api.client.OpenConextOAuthClient

OpenConextOAuthClientMock.java


Constructor Summary
OpenConextOAuthClientMock()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenConextOAuthClientMock

public OpenConextOAuthClientMock()
Method Detail

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.