1 package org.springframework.security.oauth.provider.token; 2 3 /** 4 * Interface for listening to the lifecycle of a token. 5 * 6 * @author Ryan Heaton 7 */ 8 public interface OAuthTokenLifecycleListener { 9 10 /** 11 * Lifecycle event for a created token. 12 * 13 * @param token The created token. 14 */ 15 void tokenCreated(OAuthProviderToken token); 16 17 /** 18 * Lifecycle event for an expired token. 19 * 20 * @param token The expired token. 21 */ 22 void tokenExpired(OAuthProviderToken token); 23 24 25 }