@ Override public boolean login ( String username , String password ) { try { getHttpServletRequest ( ) . login ( username , password ) ; } catch ( ServletException e ) { // exception is thrown if request is already authenticated, servlet container authentication is not enabled or // credentials are not accepted // consider all these conditions as login fail but record the event to application logger log . debug ( e ) ; return false ; } return true ; }
SECURITY CONTEXT INTERFACE