Example usage for org.springframework.security.oauth.provider.token OAuthTokenLifecycleListener tokenExpired

List of usage examples for org.springframework.security.oauth.provider.token OAuthTokenLifecycleListener tokenExpired

Introduction

In this page you can find the example usage for org.springframework.security.oauth.provider.token OAuthTokenLifecycleListener tokenExpired.

Prototype

void tokenExpired(OAuthProviderToken token);

Source Link

Document

Lifecycle event for an expired token.

Usage

From source file:org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices.java

/**
 * Logic for handling event firing of a removed token.
 *
 * @param token The token that was removed (possibly null).
 *//*  www. j a  va 2 s. co  m*/
protected void onTokenRemoved(OAuthProviderTokenImpl token) {
    for (OAuthTokenLifecycleListener listener : getLifecycleListeners()) {
        listener.tokenExpired(token);
    }
}