public class MockClientDetailsService extends Object implements org.springframework.security.oauth2.provider.ClientDetailsService, org.springframework.security.oauth.provider.ConsumerDetailsService
| Constructor and Description |
|---|
MockClientDetailsService() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public org.springframework.security.oauth2.provider.ClientDetails loadClientByClientId(String clientId) throws org.springframework.security.oauth2.common.exceptions.OAuth2Exception
loadClientByClientId in interface org.springframework.security.oauth2.provider.ClientDetailsServiceorg.springframework.security.oauth2.common.exceptions.OAuth2Exceptionpublic org.springframework.security.oauth.provider.ConsumerDetails loadConsumerByConsumerKey(String consumerKey) throws org.springframework.security.oauth.common.OAuthException
loadConsumerByConsumerKey in interface org.springframework.security.oauth.provider.ConsumerDetailsServiceorg.springframework.security.oauth.common.OAuthExceptionpublic static ClientMetaData mockMetadata(String entityId)
public void setDefaultSecret(String defaultSecret)
Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.