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  org.apache.commons.logging.Log logger
           
 
Constructor Summary
protected AbstractTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService, OAuth2RequestFactory requestFactory, String grantType)
           
 
Method Summary
protected  OAuth2AccessToken getAccessToken(ClientDetails client, TokenRequest tokenRequest)
           
protected  OAuth2Authentication getOAuth2Authentication(ClientDetails client, TokenRequest tokenRequest)
           
protected  OAuth2RequestFactory getRequestFactory()
           
protected  AuthorizationServerTokenServices getTokenServices()
           
 OAuth2AccessToken grant(String grantType, TokenRequest tokenRequest)
           
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 org.apache.commons.logging.Log logger
Constructor Detail

AbstractTokenGranter

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

grant

public OAuth2AccessToken grant(String grantType,
                               TokenRequest tokenRequest)
Specified by:
grant in interface TokenGranter

getAccessToken

protected OAuth2AccessToken getAccessToken(ClientDetails client,
                                           TokenRequest tokenRequest)

getOAuth2Authentication

protected OAuth2Authentication getOAuth2Authentication(ClientDetails client,
                                                       TokenRequest tokenRequest)

validateGrantType

protected void validateGrantType(String grantType,
                                 ClientDetails clientDetails)

getTokenServices

protected AuthorizationServerTokenServices getTokenServices()

getRequestFactory

protected OAuth2RequestFactory getRequestFactory()


Copyright © 2013. All rights reserved.