mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 05:42:31 +00:00
Removed default constructors added in rev# 1573
This commit is contained in:
parent
85a67c6b7c
commit
9a337d2fea
@ -106,12 +106,6 @@ public class DefaultInitialDirContextFactory implements InitialDirContextFactory
|
|||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an uninitialized object. You must call {@link #setProviderUrl(String)} after instantiation.
|
|
||||||
*/
|
|
||||||
public DefaultInitialDirContextFactory() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create and initialize an instance to the LDAP url provided
|
* Create and initialize an instance to the LDAP url provided
|
||||||
*
|
*
|
||||||
@ -128,7 +122,7 @@ public class DefaultInitialDirContextFactory implements InitialDirContextFactory
|
|||||||
*
|
*
|
||||||
* @param providerUrl a String of the form <code>ldap://localhost:389/base_dn<code>
|
* @param providerUrl a String of the form <code>ldap://localhost:389/base_dn<code>
|
||||||
*/
|
*/
|
||||||
public void setProviderUrl(String providerUrl) {
|
private void setProviderUrl(String providerUrl) {
|
||||||
Assert.hasLength(providerUrl, "An LDAP connection URL must be supplied.");
|
Assert.hasLength(providerUrl, "An LDAP connection URL must be supplied.");
|
||||||
|
|
||||||
this.providerUrl = providerUrl;
|
this.providerUrl = providerUrl;
|
||||||
@ -158,7 +152,7 @@ public class DefaultInitialDirContextFactory implements InitialDirContextFactory
|
|||||||
*
|
*
|
||||||
* @return the url
|
* @return the url
|
||||||
*/
|
*/
|
||||||
public String getProviderUrl() {
|
private String getProviderUrl() {
|
||||||
return providerUrl;
|
return providerUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,13 +123,6 @@ public class LdapAuthenticationProvider extends AbstractUserDetailsAuthenticatio
|
|||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an uninitialized instance. You must call {@link #setAuthenticator(LdapAuthenticator)} and
|
|
||||||
* {@link #setAuthoritiesPopulator(LdapAuthoritiesPopulator)} before using.
|
|
||||||
*/
|
|
||||||
public LdapAuthenticationProvider() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an initialized instance to the values passed as arguments
|
* Create an initialized instance to the values passed as arguments
|
||||||
*
|
*
|
||||||
@ -143,23 +136,21 @@ public class LdapAuthenticationProvider extends AbstractUserDetailsAuthenticatio
|
|||||||
|
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
public void setAuthenticator(LdapAuthenticator authenticator) {
|
private void setAuthenticator(LdapAuthenticator authenticator) {
|
||||||
Assert.notNull(authenticator, "An LdapAuthenticator must be supplied");
|
Assert.notNull(authenticator, "An LdapAuthenticator must be supplied");
|
||||||
this.authenticator = authenticator;
|
this.authenticator = authenticator;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected LdapAuthenticator getAuthenticator() {
|
private LdapAuthenticator getAuthenticator() {
|
||||||
Assert.notNull(authenticator, "You must set the authenticator before using this instance.");
|
|
||||||
return authenticator;
|
return authenticator;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAuthoritiesPopulator(LdapAuthoritiesPopulator authoritiesPopulator) {
|
private void setAuthoritiesPopulator(LdapAuthoritiesPopulator authoritiesPopulator) {
|
||||||
Assert.notNull(authoritiesPopulator, "An LdapAuthoritiesPopulator must be supplied");
|
Assert.notNull(authoritiesPopulator, "An LdapAuthoritiesPopulator must be supplied");
|
||||||
this.authoritiesPopulator = authoritiesPopulator;
|
this.authoritiesPopulator = authoritiesPopulator;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected LdapAuthoritiesPopulator getAuthoritiesPopulator() {
|
protected LdapAuthoritiesPopulator getAuthoritiesPopulator() {
|
||||||
Assert.notNull(authoritiesPopulator, "You must set the authoritiesPopulator before using this instance.");
|
|
||||||
return authoritiesPopulator;
|
return authoritiesPopulator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,13 +70,6 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator, In
|
|||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an uninitialized instance. You must call {@link #setInitialDirContextFactory(InitialDirContextFactory)}
|
|
||||||
* before using it.
|
|
||||||
*/
|
|
||||||
public AbstractLdapAuthenticator() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an initialized instance to the {@link InitialDirContextFactory} provided.
|
* Create an initialized instance to the {@link InitialDirContextFactory} provided.
|
||||||
*
|
*
|
||||||
@ -99,7 +92,7 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator, In
|
|||||||
*
|
*
|
||||||
* @param initialDirContextFactory
|
* @param initialDirContextFactory
|
||||||
*/
|
*/
|
||||||
public void setInitialDirContextFactory(InitialDirContextFactory initialDirContextFactory) {
|
private void setInitialDirContextFactory(InitialDirContextFactory initialDirContextFactory) {
|
||||||
Assert.notNull(initialDirContextFactory, "initialDirContextFactory must not be null.");
|
Assert.notNull(initialDirContextFactory, "initialDirContextFactory must not be null.");
|
||||||
this.initialDirContextFactory = initialDirContextFactory;
|
this.initialDirContextFactory = initialDirContextFactory;
|
||||||
|
|
||||||
@ -110,8 +103,7 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator, In
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public InitialDirContextFactory getInitialDirContextFactory() {
|
protected InitialDirContextFactory getInitialDirContextFactory() {
|
||||||
Assert.notNull(initialDirContextFactory, "You must set the initialDirContextFactory before using this instance.");
|
|
||||||
return initialDirContextFactory;
|
return initialDirContextFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,14 +44,6 @@ public class BindAuthenticator extends AbstractLdapAuthenticator {
|
|||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an uninitialized instance. You must call {@link #setInitialDirContextFactory(InitialDirContextFactory)}
|
|
||||||
* before using it.
|
|
||||||
*/
|
|
||||||
public BindAuthenticator() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an initialized instance to the {@link InitialDirContextFactory} provided.
|
* Create an initialized instance to the {@link InitialDirContextFactory} provided.
|
||||||
*
|
*
|
||||||
|
@ -112,13 +112,6 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an uninitialized instance. You must call {@link #setInitialDirContextFactory(InitialDirContextFactory)}
|
|
||||||
* and {@link #setGroupSearchBase(String)} before using it.
|
|
||||||
*/
|
|
||||||
public DefaultLdapAuthoritiesPopulator() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for group search scenarios. <tt>userRoleAttributes</tt> may still be
|
* Constructor for group search scenarios. <tt>userRoleAttributes</tt> may still be
|
||||||
* set as a property.
|
* set as a property.
|
||||||
@ -248,7 +241,6 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected InitialDirContextFactory getInitialDirContextFactory() {
|
protected InitialDirContextFactory getInitialDirContextFactory() {
|
||||||
Assert.notNull(initialDirContextFactory, "You must set the initialDirContextFactory before using this instance.");
|
|
||||||
return initialDirContextFactory;
|
return initialDirContextFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +249,7 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|||||||
*
|
*
|
||||||
* @param initialDirContextFactory supplies the contexts used to search for user roles.
|
* @param initialDirContextFactory supplies the contexts used to search for user roles.
|
||||||
*/
|
*/
|
||||||
public void setInitialDirContextFactory(InitialDirContextFactory initialDirContextFactory) {
|
private void setInitialDirContextFactory(InitialDirContextFactory initialDirContextFactory) {
|
||||||
Assert.notNull(initialDirContextFactory, "InitialDirContextFactory must not be null");
|
Assert.notNull(initialDirContextFactory, "InitialDirContextFactory must not be null");
|
||||||
this.initialDirContextFactory = initialDirContextFactory;
|
this.initialDirContextFactory = initialDirContextFactory;
|
||||||
|
|
||||||
@ -271,7 +263,7 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|||||||
* @param groupSearchBase if this is an empty string the search will be performed from the root DN of the context
|
* @param groupSearchBase if this is an empty string the search will be performed from the root DN of the context
|
||||||
* factory.
|
* factory.
|
||||||
*/
|
*/
|
||||||
public void setGroupSearchBase(String groupSearchBase) {
|
private void setGroupSearchBase(String groupSearchBase) {
|
||||||
Assert.notNull(groupSearchBase, "The groupSearchBase (name to search under), must not be null.");
|
Assert.notNull(groupSearchBase, "The groupSearchBase (name to search under), must not be null.");
|
||||||
this.groupSearchBase = groupSearchBase;
|
this.groupSearchBase = groupSearchBase;
|
||||||
if (groupSearchBase.length() == 0) {
|
if (groupSearchBase.length() == 0) {
|
||||||
@ -280,8 +272,7 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getGroupSearchBase() {
|
private String getGroupSearchBase() {
|
||||||
Assert.notNull(groupSearchBase, "You must set the groupSearchBase before using this instance.");
|
|
||||||
return groupSearchBase;
|
return groupSearchBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user