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

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

Introduction

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

Prototype

void tokenCreated(OAuthProviderToken token);

Source Link

Document

Lifecycle event for a created token.

Usage

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

/**
 * Logic for handling event firing of a created token.
 *
 * @param token The token that was created.
 */// w w w  . j ava2 s  . com
protected void onTokenCreated(OAuthProviderTokenImpl token) {
    for (OAuthTokenLifecycleListener listener : getLifecycleListeners()) {
        listener.tokenCreated(token);
    }
}