Package org.pac4j.core.logout
Class CasLogoutActionBuilder
java.lang.Object
org.pac4j.core.logout.CasLogoutActionBuilder
- All Implemented Interfaces:
LogoutActionBuilder
CAS logout action builder.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
ConstructorsConstructorDescriptionCasLogoutActionBuilder
(String serverLogoutUrl, String postLogoutUrlParameter) -
Method Summary
Modifier and TypeMethodDescriptiongetLogoutAction
(CallContext ctx, UserProfile currentProfile, String targetUrl) Return theRedirectionAction
for logout.
-
Constructor Details
-
CasLogoutActionBuilder
-
-
Method Details
-
getLogoutAction
public Optional<RedirectionAction> getLogoutAction(CallContext ctx, UserProfile currentProfile, String targetUrl) Description copied from interface:LogoutActionBuilder
Return theRedirectionAction
for logout.- Specified by:
getLogoutAction
in interfaceLogoutActionBuilder
- Parameters:
ctx
- the contextcurrentProfile
- the current profiletargetUrl
- the target URL after logout- Returns:
- the redirection (optional)
-