Tabnine Logo
UsernamePasswordAuthenticationFilter.getFailureHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
getFailureHandler
method
in
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter

Best Java code snippets using org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.getFailureHandler (Showing top 1 results out of 315)

origin: org.eclipse.hudson/hudson-core

@Override
protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException, ServletException {
  SimpleUrlAuthenticationFailureHandler handler = (SimpleUrlAuthenticationFailureHandler) super.getFailureHandler();
  handler.setDefaultFailureUrl("/loginError");
  super.unsuccessfulAuthentication(request, response, failed); 
  LOGGER.log(Level.INFO, "Login attempt Failed - ", failed.getLocalizedMessage());
}
org.springframework.security.web.authenticationUsernamePasswordAuthenticationFiltergetFailureHandler

Popular methods of UsernamePasswordAuthenticationFilter

  • setPasswordParameter
  • setUsernameParameter
  • <init>
  • getPasswordParameter
  • getUsernameParameter
  • attemptAuthentication
  • setAuthenticationDetailsSource
  • setAuthenticationFailureHandler
  • setAuthenticationManager
  • setAuthenticationSuccessHandler
  • setAllowSessionCreation
  • setRememberMeServices
  • setAllowSessionCreation,
  • setRememberMeServices,
  • setRequiresAuthenticationRequestMatcher,
  • afterPropertiesSet,
  • doFilter,
  • getAuthenticationManager,
  • getRememberMeServices,
  • getSuccessHandler,
  • obtainPassword

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now