public abstract class AbstractTokenGranter extends Object implements TokenGranter
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTokenGranter(AuthorizationServerTokenServices tokenServices,
ClientDetailsService clientDetailsService,
OAuth2RequestFactory requestFactory,
String grantType) |
Modifier and Type | Method and Description |
---|---|
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) |
protected AbstractTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService, OAuth2RequestFactory requestFactory, String grantType)
public OAuth2AccessToken grant(String grantType, TokenRequest tokenRequest)
grant
in interface TokenGranter
protected OAuth2AccessToken getAccessToken(ClientDetails client, TokenRequest tokenRequest)
protected OAuth2Authentication getOAuth2Authentication(ClientDetails client, TokenRequest tokenRequest)
protected void validateGrantType(String grantType, ClientDetails clientDetails)
protected AuthorizationServerTokenServices getTokenServices()
protected OAuth2RequestFactory getRequestFactory()
Copyright © 2019. All rights reserved.