nl.surfnet.coin.api.service
Class MockClientDetailsService

java.lang.Object
  extended by nl.surfnet.coin.api.service.MockClientDetailsService
All Implemented Interfaces:
OpenConextClientDetailsService, org.springframework.security.oauth.provider.ConsumerDetailsService, org.springframework.security.oauth2.provider.ClientDetailsService

public class MockClientDetailsService
extends Object
implements OpenConextClientDetailsService

Mock details service. Replacement for JanusClientDetailsService.


Constructor Summary
MockClientDetailsService()
           
 
Method Summary
 ARP getArp(String spEntityId)
           
 org.springframework.security.oauth2.provider.ClientDetails loadClientByClientId(String clientId)
           
 org.springframework.security.oauth.provider.ConsumerDetails loadConsumerByConsumerKey(String consumerKey)
           
static ClientMetaData mockMetadata(String entityId)
           
 void setDefaultSecret(String defaultSecret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockClientDetailsService

public MockClientDetailsService()
Method Detail

loadClientByClientId

public org.springframework.security.oauth2.provider.ClientDetails loadClientByClientId(String clientId)
                                                                                throws org.springframework.security.oauth2.common.exceptions.OAuth2Exception
Specified by:
loadClientByClientId in interface org.springframework.security.oauth2.provider.ClientDetailsService
Throws:
org.springframework.security.oauth2.common.exceptions.OAuth2Exception

loadConsumerByConsumerKey

public org.springframework.security.oauth.provider.ConsumerDetails loadConsumerByConsumerKey(String consumerKey)
                                                                                      throws org.springframework.security.oauth.common.OAuthException
Specified by:
loadConsumerByConsumerKey in interface org.springframework.security.oauth.provider.ConsumerDetailsService
Throws:
org.springframework.security.oauth.common.OAuthException

mockMetadata

public static ClientMetaData mockMetadata(String entityId)

setDefaultSecret

public void setDefaultSecret(String defaultSecret)

getArp

public ARP getArp(String spEntityId)
Specified by:
getArp in interface OpenConextClientDetailsService


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.