protected void createHandleAuthenticationFailureAction ( final Flow flow ) { val handler = createActionState ( flow , CasWebflowConstants . STATE_ID_HANDLE_AUTHN_FAILURE , CasWebflowConstants . ACTION_ID_AUTHENTICATION_EXCEPTION_HANDLER ) ; createTransitionForState ( handler , AccountDisabledException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_ACCOUNT_DISABLED ) ; createTransitionForState ( handler , AccountLockedException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_ACCOUNT_LOCKED ) ; createTransitionForState ( handler , AccountPasswordMustChangeException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_MUST_CHANGE_PASSWORD ) ; createTransitionForState ( handler , CredentialExpiredException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_EXPIRED_PASSWORD ) ; createTransitionForState ( handler , InvalidLoginLocationException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_INVALID_WORKSTATION ) ; createTransitionForState ( handler , InvalidLoginTimeException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_INVALID_AUTHENTICATION_HOURS ) ; createTransitionForState ( handler , FailedLoginException . class . getSimpleName ( ) , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; createTransitionForState ( handler , AccountNotFoundException . class . getSimpleName ( ) , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; createTransitionForState ( handler , UnauthorizedServiceForPrincipalException . class . getSimpleName ( ) , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; createTransitionForState ( handler , PrincipalException . class . getSimpleName ( ) , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; createTransitionForState ( handler , UnsatisfiedAuthenticationPolicyException . class . getSimpleName ( ) , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; createTransitionForState ( handler , UnauthorizedAuthenticationException . class . getSimpleName ( ) , CasWebflowConstants . VIEW_ID_AUTHENTICATION_BLOCKED ) ; createTransitionForState ( handler , CasWebflowConstants . STATE_ID_SERVICE_UNAUTHZ_CHECK , CasWebflowConstants . STATE_ID_SERVICE_UNAUTHZ_CHECK ) ; createStateDefaultTransition ( handler , CasWebflowConstants . STATE_ID_INIT_LOGIN_FORM ) ; }
Create handle authentication failure action .