org.springframework.security.oauth2.provider.client
Class ClientCredentialsTokenGranter

java.lang.Object
  extended by org.springframework.security.oauth2.provider.token.AbstractTokenGranter
      extended by org.springframework.security.oauth2.provider.client.ClientCredentialsTokenGranter
All Implemented Interfaces:
TokenGranter

public class ClientCredentialsTokenGranter
extends AbstractTokenGranter

Author:
Dave Syer

Field Summary
 
Fields inherited from class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
logger
 
Constructor Summary
ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService)
           
 
Method Summary
 OAuth2AccessToken grant(String grantType, AuthorizationRequest authorizationRequest)
           
 
Methods inherited from class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
getAccessToken, getOAuth2Authentication, getTokenServices, validateGrantType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCredentialsTokenGranter

public ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices,
                                     ClientDetailsService clientDetailsService)
Method Detail

grant

public OAuth2AccessToken grant(String grantType,
                               AuthorizationRequest authorizationRequest)
Specified by:
grant in interface TokenGranter
Overrides:
grant in class AbstractTokenGranter


Copyright © 2012. All Rights Reserved.