@Deprecated public interface AuthorizationServerTokenServices
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
createAccessToken(OAuth2Authentication authentication)
Deprecated.
Create an access token associated with the specified credentials.
|
OAuth2AccessToken |
getAccessToken(OAuth2Authentication authentication)
Deprecated.
Retrieve an access token stored against the provided authentication key, if it exists.
|
OAuth2AccessToken |
refreshAccessToken(String refreshToken,
TokenRequest tokenRequest)
Deprecated.
Refresh an access token.
|
OAuth2AccessToken createAccessToken(OAuth2Authentication authentication) throws org.springframework.security.core.AuthenticationException
authentication
- The credentials associated with the access token.org.springframework.security.core.AuthenticationException
- If the credentials are inadequate.OAuth2AccessToken refreshAccessToken(String refreshToken, TokenRequest tokenRequest) throws org.springframework.security.core.AuthenticationException
refreshToken
- The details about the refresh token.tokenRequest
- The incoming token request.org.springframework.security.core.AuthenticationException
- If the refresh token is invalid or expired.OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
authentication
- the authentication key for the access tokenCopyright © 2019. All rights reserved.