nl.surfnet.coin.api.service
Class JanusClientDetailsService
java.lang.Object
nl.surfnet.coin.api.service.JanusClientDetailsService
- All Implemented Interfaces:
- OpenConextClientDetailsService, org.springframework.security.oauth.provider.ConsumerDetailsService, org.springframework.security.oauth2.provider.ClientDetailsService
public class JanusClientDetailsService
- extends Object
- implements OpenConextClientDetailsService
Client details service that uses Janus as backend. Implements both the oauth1
and oauth2 interface.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JanusClientDetailsService
public JanusClientDetailsService()
loadClientByClientId
@Cacheable(value="janus-meta-data")
public org.springframework.security.oauth2.provider.ClientDetails loadClientByClientId(String consumerKey)
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
getArp
@Cacheable(value="janus-meta-data")
public ARP getArp(String clientId)
- Specified by:
getArp in interface OpenConextClientDetailsService
loadConsumerByConsumerKey
@Cacheable(value="janus-meta-data")
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
setJanus
public void setJanus(Janus janus)
- Parameters:
janus - the janus to set
Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.