Package org.pac4j.core.logout
Class CasLogoutActionBuilder
- java.lang.Object
-
- org.pac4j.core.logout.CasLogoutActionBuilder
-
- All Implemented Interfaces:
LogoutActionBuilder
public class CasLogoutActionBuilder extends Object implements LogoutActionBuilder
CAS logout action builder.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description CasLogoutActionBuilder(String serverLogoutUrl, String postLogoutUrlParameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<RedirectionAction>
getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Return theRedirectionAction
for logout.String
toString()
-
-
-
Method Detail
-
getLogoutAction
public Optional<RedirectionAction> getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Description copied from interface:LogoutActionBuilder
Return theRedirectionAction
for logout.- Specified by:
getLogoutAction
in interfaceLogoutActionBuilder
- Parameters:
context
- the web contextcurrentProfile
- the current profiletargetUrl
- the target URL after logout- Returns:
- the redirection (optional)
-
-