Class CustomTokenServices
- java.lang.Object
-
- org.springframework.security.oauth2.provider.token.DefaultTokenServices
-
- org.motechproject.mots.security.token.CustomTokenServices
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices
,org.springframework.security.oauth2.provider.token.ConsumerTokenServices
,org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
public class CustomTokenServices extends org.springframework.security.oauth2.provider.token.DefaultTokenServices
-
-
Constructor Summary
Constructors Constructor Description CustomTokenServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.common.OAuth2AccessToken
createAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
org.springframework.security.oauth2.common.OAuth2AccessToken
refreshAccessToken(java.lang.String refreshTokenValue, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
void
setTokenStore(org.springframework.security.oauth2.provider.token.TokenStore tokenStore)
-
Methods inherited from class org.springframework.security.oauth2.provider.token.DefaultTokenServices
afterPropertiesSet, getAccessToken, getAccessTokenValiditySeconds, getClientId, getRefreshTokenValiditySeconds, isExpired, isSupportRefreshToken, loadAuthentication, readAccessToken, revokeToken, setAccessTokenValiditySeconds, setAuthenticationManager, setClientDetailsService, setRefreshTokenValiditySeconds, setReuseRefreshToken, setSupportRefreshToken, setTokenEnhancer
-
-
-
-
Method Detail
-
createAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken createAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
- Specified by:
createAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices
- Overrides:
createAccessToken
in classorg.springframework.security.oauth2.provider.token.DefaultTokenServices
-
refreshAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken refreshAccessToken(java.lang.String refreshTokenValue, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
- Specified by:
refreshAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices
- Overrides:
refreshAccessToken
in classorg.springframework.security.oauth2.provider.token.DefaultTokenServices
-
setTokenStore
public void setTokenStore(org.springframework.security.oauth2.provider.token.TokenStore tokenStore)
- Overrides:
setTokenStore
in classorg.springframework.security.oauth2.provider.token.DefaultTokenServices
-
-