Package org.apache.shiro.ee.filters
Class Forms
java.lang.Object
org.apache.shiro.ee.filters.Forms
Methods to redirect to saved requests upon logout
functionality includes saving a previous form state and resubmitting
if the form times out
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJSF access pointsstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic voidmanually login, used viaPassThruAuthenticationFilterstatic voidJSF login failure methodstatic voidlogout()static voidlogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Forms.FallbackPredicate useFallback, String fallbackPath) makes sure that there is no double-logoutstatic voidlogout(Forms.FallbackPredicate useFallback, String fallbackPath) Faces variantstatic voidredirectToSaved(Forms.FallbackPredicate useFallbackPath, String fallbackPath) Jakarta Faces variant redirect to saved request, possibly resubmitting an existing form the saved request is via a cookiestatic voidJakarta Faces variant redirects to current view after a form submit, or a logout, for examplestatic voidredirectToView(Forms.FallbackPredicate useFallbackPath, String fallbackPath)
-
Constructor Details
-
Forms
public Forms()
-
-
Method Details
-
redirectToSaved
Jakarta Faces variant redirect to saved request, possibly resubmitting an existing form the saved request is via a cookie- Parameters:
useFallbackPath-fallbackPath-
-
redirectToView
public static void redirectToView()Jakarta Faces variant redirects to current view after a form submit, or a logout, for example -
redirectToView
-
login
manually login, used viaPassThruAuthenticationFilter- Parameters:
username-password-rememberMe-
-
loginFailed
public static void loginFailed()JSF login failure method -
logout
public static void logout() -
logout
Faces variant- Parameters:
useFallback-fallbackPath-
-
logout
public static void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Forms.FallbackPredicate useFallback, String fallbackPath) makes sure that there is no double-logout- Parameters:
request-response-useFallback-fallbackPath-
-
isLoggedIn
public static boolean isLoggedIn() -
isSessionExpired
public static boolean isSessionExpired()
-