nl.surfnet.coin.api.service
Class MockClientDetailsService
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockClientDetailsService
public MockClientDetailsService()
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.