public class TokenManager extends Object
| Constructor and Description |
|---|
TokenManager(TokenStore tokenStore,
TokenGeneratorStrategy tokenGeneratorStrategy,
RefreshTokenStrategy refreshTokenStrategy,
long tokenExpirationInterval,
TimeUnit tokenExpirationIntervalTimeUnit) |
| Modifier and Type | Method and Description |
|---|---|
Token |
exchangeRefreshToken(String refreshToken,
String clientId) |
AccessTokenStoreHolder |
getNonExpiredAccessTokenHolder(String accessToken) |
Token |
grantAccessToken(Constants.RequestGrantType grantType,
AuthorizationRequest authorizationRequest,
ResourceOwnerAuthentication resourceOwnerAuthentication) |
Token |
grantAccessToken(Constants.RequestGrantType grantType,
String clientId,
Set<String> scopes,
ResourceOwnerAuthentication resourceOwnerAuthentication) |
boolean |
isTokenExpired(String token) |
public TokenManager(TokenStore tokenStore, TokenGeneratorStrategy tokenGeneratorStrategy, RefreshTokenStrategy refreshTokenStrategy, long tokenExpirationInterval, TimeUnit tokenExpirationIntervalTimeUnit)
public Token grantAccessToken(Constants.RequestGrantType grantType, AuthorizationRequest authorizationRequest, ResourceOwnerAuthentication resourceOwnerAuthentication)
public Token grantAccessToken(Constants.RequestGrantType grantType, String clientId, Set<String> scopes, ResourceOwnerAuthentication resourceOwnerAuthentication)
public AccessTokenStoreHolder getNonExpiredAccessTokenHolder(String accessToken)
public Token exchangeRefreshToken(String refreshToken, String clientId) throws InvalidGrantException
InvalidGrantExceptionpublic boolean isTokenExpired(String token)
Copyright © 2019 MuleSoft, Inc.. All rights reserved.