org.springframework.security.oauth.provider.token.OAuthTokenLifecycleListener.java Source code

Java tutorial

Introduction

Here is the source code for org.springframework.security.oauth.provider.token.OAuthTokenLifecycleListener.java

Source

package org.springframework.security.oauth.provider.token;

/**
 * Interface for listening to the lifecycle of a token.
 *
 * @author Ryan Heaton
 */
public interface OAuthTokenLifecycleListener {

    /**
     * Lifecycle event for a created token.
     *
     * @param token The created token.
     */
    void tokenCreated(OAuthProviderToken token);

    /**
     * Lifecycle event for an expired token.
     *
     * @param token The expired token.
     */
    void tokenExpired(OAuthProviderToken token);

}