Package org.pac4j.core.engine
Class DefaultLogoutLogic
java.lang.Object
org.pac4j.core.engine.AbstractExceptionAwareLogic
org.pac4j.core.engine.DefaultLogoutLogic
- All Implemented Interfaces:
LogoutLogic
Default logout logic.
- Since:
- 1.9.0
- Author:
- Jerome Leleu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
enhanceRedirectUrl
(CallContext ctx, Config config, Client client, String redirectUrl) enhanceRedirectUrl.perform
(Config config, String defaultUrl, String inputLogoutUrlPattern, Boolean inputLocalLogout, Boolean inputDestroySession, Boolean inputCentralLogout, FrameworkParameters parameters) Perform the application logout logic.Methods inherited from class org.pac4j.core.engine.AbstractExceptionAwareLogic
buildContext, handleException, runtimeException
-
Field Details
-
INSTANCE
ConstantINSTANCE
-
-
Constructor Details
-
DefaultLogoutLogic
public DefaultLogoutLogic()
-
-
Method Details
-
perform
public Object perform(Config config, String defaultUrl, String inputLogoutUrlPattern, Boolean inputLocalLogout, Boolean inputDestroySession, Boolean inputCentralLogout, FrameworkParameters parameters) Perform the application logout logic.- Specified by:
perform
in interfaceLogoutLogic
- Parameters:
config
- the security configurationdefaultUrl
- the default urlinputLogoutUrlPattern
- the logout url patterninputLocalLogout
- whether a local logout is requiredinputDestroySession
- whether the web session must be destroyedinputCentralLogout
- whether a central logout is requiredparameters
- framework parameters- Returns:
- the resulting action for logout
-
enhanceRedirectUrl
protected String enhanceRedirectUrl(CallContext ctx, Config config, Client client, String redirectUrl) enhanceRedirectUrl.
- Parameters:
ctx
- aCallContext
objectconfig
- aConfig
objectclient
- aClient
objectredirectUrl
- aString
object- Returns:
- a
String
object
-