protected void asNonLoginRequired ( LoginHandlingResource resource ) throws LoginRequiredException { if ( ! isSuppressRememberMeOfNonLoginRequired ( resource ) ) { // option just in case logger . debug ( "...Checking login status for non login required" ) ; if ( tryAlreadyLoginOrRememberMe ( resource ) ) { checkPermission ( resource ) ; // throws if denied return ; // Good } } if ( isLoginRedirectBeanKeptAction ( resource ) ) { // keep login-redirect path in session logger . debug ( "...Passing login check as login action (or redirect-kept action)" ) ; } else { clearLoginRedirectBean ( ) ; logger . debug ( "...Passing login check as non login required" ) ; } }
Check as the non login required action .