org.springframework.security.oauth2.provider.token
Class AbstractTokenGranter

java.lang.Object
  extended by org.springframework.security.oauth2.provider.token.AbstractTokenGranter
All Implemented Interfaces:
TokenGranter
Direct Known Subclasses:
AuthorizationCodeTokenGranter, ClientCredentialsTokenGranter, ImplicitTokenGranter, RefreshTokenGranter, ResourceOwnerPasswordTokenGranter

public abstract class AbstractTokenGranter
extends Object
implements TokenGranter

Author:
Dave Syer

Field Summary
protected  Log logger
           
 
Constructor Summary
protected AbstractTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService, String grantType)
           
 
Method Summary
protected  OAuth2AccessToken getAccessToken(AuthorizationRequest authorizationRequest)
           
protected  OAuth2Authentication getOAuth2Authentication(AuthorizationRequest authorizationRequest)
           
protected  AuthorizationServerTokenServices getTokenServices()
           
 OAuth2AccessToken grant(String grantType, AuthorizationRequest authorizationRequest)
           
protected  void validateGrantType(String grantType, ClientDetails clientDetails)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

AbstractTokenGranter

protected AbstractTokenGranter(AuthorizationServerTokenServices tokenServices,
                               ClientDetailsService clientDetailsService,
                               String grantType)
Method Detail

grant

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

getAccessToken

protected OAuth2AccessToken getAccessToken(AuthorizationRequest authorizationRequest)

getOAuth2Authentication

protected OAuth2Authentication getOAuth2Authentication(AuthorizationRequest authorizationRequest)

validateGrantType

protected void validateGrantType(String grantType,
                                 ClientDetails clientDetails)

getTokenServices

protected AuthorizationServerTokenServices getTokenServices()


Copyright © 2012. All Rights Reserved.