mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-05 10:12:36 +00:00
Remove warnings from defaultSpringSecurityContextSource
This commit is contained in:
parent
b4cbcee7f0
commit
d9c9cd7f84
@ -68,7 +68,7 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource {
|
|||||||
setPooled(true);
|
setPooled(true);
|
||||||
setAuthenticationStrategy(new SimpleDirContextAuthenticationStrategy() {
|
setAuthenticationStrategy(new SimpleDirContextAuthenticationStrategy() {
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
public void setupEnvironment(Hashtable env, String dn, String password) {
|
public void setupEnvironment(Hashtable env, String dn, String password) {
|
||||||
super.setupEnvironment(env, dn, password);
|
super.setupEnvironment(env, dn, password);
|
||||||
// Remove the pooling flag unless we are authenticating as the 'manager' user.
|
// Remove the pooling flag unless we are authenticating as the 'manager' user.
|
||||||
@ -83,7 +83,7 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource {
|
|||||||
/**
|
/**
|
||||||
* Create and initialize an instance which will connect of the LDAP Spring Security
|
* Create and initialize an instance which will connect of the LDAP Spring Security
|
||||||
* Context Source. It will connect to any of the provided LDAP server URLs.
|
* Context Source. It will connect to any of the provided LDAP server URLs.
|
||||||
*
|
*
|
||||||
* @param urls
|
* @param urls
|
||||||
* A list of string values which are LDAP server URLs. An example would be
|
* A list of string values which are LDAP server URLs. An example would be
|
||||||
* <code>ldap://ldap.company.com:389</code>. LDAPS URLs (SSL-secured) may be used as well,
|
* <code>ldap://ldap.company.com:389</code>. LDAPS URLs (SSL-secured) may be used as well,
|
||||||
@ -101,7 +101,7 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource {
|
|||||||
* Builds a Spring LDAP-compliant Provider URL string, i.e. a space-separated list of LDAP servers
|
* Builds a Spring LDAP-compliant Provider URL string, i.e. a space-separated list of LDAP servers
|
||||||
* with their base DNs. As the base DN must be identical for all servers, it needs to be supplied
|
* with their base DNs. As the base DN must be identical for all servers, it needs to be supplied
|
||||||
* only once.
|
* only once.
|
||||||
*
|
*
|
||||||
* @param urls
|
* @param urls
|
||||||
* A list of string values which are LDAP server URLs. An example would be
|
* A list of string values which are LDAP server URLs. An example would be
|
||||||
* <pre>ldap://ldap.company.com:389</pre>. LDAPS URLs may be used as well,
|
* <pre>ldap://ldap.company.com:389</pre>. LDAPS URLs may be used as well,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user