All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.security.server.kickout.KickOutPostProcessor Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.healthy.security.server.kickout;

import com.healthy.security.server.kickout.support.KickOutMessage;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;

/**
 * KickOutPostProcessor
 *
 * @author xiaomingzhang
 */
public interface KickOutPostProcessor {

	/**
	 * onPostProcess
	 * @param authentication The credentials associated with the access token.
	 * @param accessToken the token value
	 */
	void onPostProcess(OAuth2Authentication authentication, OAuth2AccessToken accessToken);

	/**
	 * Return the saved login kick-out information and cache it.
	 * @param accessToken the token value
	 * @return The saved login kick-out information cached before, or null if there is
	 * none.
	 */
	KickOutMessage getKickOutMessage(String accessToken);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy