public class ClientCredentialsTokenGranter extends AbstractTokenGranter
logger
Modifier | Constructor and Description |
---|---|
|
ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices,
ClientDetailsService clientDetailsService,
OAuth2RequestFactory requestFactory) |
protected |
ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices,
ClientDetailsService clientDetailsService,
OAuth2RequestFactory requestFactory,
String grantType) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
grant(String grantType,
TokenRequest tokenRequest) |
void |
setAllowRefresh(boolean allowRefresh) |
getAccessToken, getOAuth2Authentication, getRequestFactory, getTokenServices, validateGrantType
public ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService, OAuth2RequestFactory requestFactory)
protected ClientCredentialsTokenGranter(AuthorizationServerTokenServices tokenServices, ClientDetailsService clientDetailsService, OAuth2RequestFactory requestFactory, String grantType)
public void setAllowRefresh(boolean allowRefresh)
public OAuth2AccessToken grant(String grantType, TokenRequest tokenRequest)
grant
in interface TokenGranter
grant
in class AbstractTokenGranter
Copyright © 2019. All rights reserved.