org.mule.security.oauth
Interface RefreshTokenManager

All Known Implementing Classes:
DefaultRefreshTokenManager

public interface RefreshTokenManager


Field Summary
static int DEFAULT_MIN_REFRESH_INTERVAL
           
 
Method Summary
 void refreshToken(OAuth2Adapter adapter, String accessTokenId)
          Refreshes the token of the given id for the given adapter.
 void setMinRefreshIntervalInMillis(int minRefreshIntervalInMillis)
          Sets the minimum interval of time in which we allow a given access token id to be refresh.
 

Field Detail

DEFAULT_MIN_REFRESH_INTERVAL

static final int DEFAULT_MIN_REFRESH_INTERVAL
See Also:
Constant Field Values
Method Detail

refreshToken

void refreshToken(OAuth2Adapter adapter,
                  String accessTokenId)
                  throws Exception
Refreshes the token of the given id for the given adapter.

Parameters:
adapter -
accessTokenId -
Throws:
Exception

setMinRefreshIntervalInMillis

void setMinRefreshIntervalInMillis(int minRefreshIntervalInMillis)
Sets the minimum interval of time in which we allow a given access token id to be refresh. If an access token is attempted to be refresh in an interval lower than the provided, then the token is not refresh

Parameters:
minRefreshIntervalInMillis - a number of milliseconds


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.