org.springframework.security.oauth2.provider.token
Class AbstractTokenGranter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
AbstractTokenGranter
protected AbstractTokenGranter(AuthorizationServerTokenServices tokenServices,
ClientDetailsService clientDetailsService,
String grantType)
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.