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

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

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

origin: spring-projects/spring-security

/**
 * The HTTP parameter to look for the username when performing authentication. Default
 * is "username".
 *
 * @param usernameParameter the HTTP parameter to look for the username when
 * performing authentication
 * @return the {@link FormLoginConfigurer} for additional customization
 */
public FormLoginConfigurer<H> usernameParameter(String usernameParameter) {
  getAuthenticationFilter().setUsernameParameter(usernameParameter);
  return this;
}
origin: geoserver/geoserver

filter.setUsernameParameter(upConfig.getUsernameParameterName());
filter.setAuthenticationManager(getSecurityManager().authenticationManager());
origin: org.springframework.security/spring-security-config

/**
 * The HTTP parameter to look for the username when performing authentication. Default
 * is "username".
 *
 * @param usernameParameter the HTTP parameter to look for the username when
 * performing authentication
 * @return the {@link FormLoginConfigurer} for additional customization
 */
public FormLoginConfigurer<H> usernameParameter(String usernameParameter) {
  getAuthenticationFilter().setUsernameParameter(usernameParameter);
  return this;
}
origin: com.jtbdevelopment.core-games/games-web

public MobileAwareFormLoginConfigurer usernameParameter(String usernameParameter) {
 getAuthenticationFilter().setUsernameParameter(usernameParameter);
 return this;
}
origin: apache/servicemix-bundles

/**
 * The HTTP parameter to look for the username when performing authentication. Default
 * is "username".
 *
 * @param usernameParameter the HTTP parameter to look for the username when
 * performing authentication
 * @return the {@link FormLoginConfigurer} for additional customization
 */
public FormLoginConfigurer<H> usernameParameter(String usernameParameter) {
  getAuthenticationFilter().setUsernameParameter(usernameParameter);
  return this;
}
origin: org.springframework.security/spring-security-javaconfig

/**
 * The HTTP parameter to look for the username when performing
 * authentication. Default is "username".
 *
 * @param usernameParameter
 *            the HTTP parameter to look for the username when performing
 *            authentication
 * @return the {@link FormLoginConfigurer} for additional customization
 */
public FormLoginConfigurer<H> usernameParameter(String usernameParameter) {
  getAuthenticationFilter().setUsernameParameter(usernameParameter);
  return this;
}
origin: stackoverflow.com

final UsernamePasswordAuthenticationFilter filter =
  (UsernamePasswordAuthenticationFilter) bean;
filter.setUsernameParameter(getUsernameParameter());
filter.setPasswordParameter(getPasswordParameter());
org.springframework.security.web.authenticationUsernamePasswordAuthenticationFiltersetUsernameParameter

Javadoc

Sets the parameter name which will be used to obtain the username from the login request.

Popular methods of UsernamePasswordAuthenticationFilter

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best IntelliJ plugins
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