Package org.ldaptive.beans.spring.parser
Class AggregateAuthenticatorBeanDefinitionParser.AggregateAuthenticatorFactoryBean
java.lang.Object
org.ldaptive.beans.spring.parser.AggregateAuthenticatorBeanDefinitionParser.AggregateAuthenticatorFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Authenticator>
- Enclosing class:
AggregateAuthenticatorBeanDefinitionParser
protected static class AggregateAuthenticatorBeanDefinitionParser.AggregateAuthenticatorFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<Authenticator>
Factory bean that creates an authenticator with an
AggregateDnResolver
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Value forAggregateDnResolver.getAllowMultipleDns()
.private List
<Authenticator> Authenticators to aggregate.private boolean
Value ofAuthenticator.getResolveEntryOnFailure()
.private String[]
Value forAuthenticator.getReturnAttributes()
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setAllowMultipleDns
(boolean b) Sets whether the aggregate authenticator will allow multiple DNs.void
setAuthenticators
(List<Authenticator> auths) Sets the authenticators to aggregate.void
setResolveEntryOnFailure
(boolean b) Sets whether to execute the entry resolver on authentication failure.void
setReturnAttributes
(String... attrs) Sets the return attributes.
-
Field Details
-
authenticators
Authenticators to aggregate. -
allowMultipleDns
private boolean allowMultipleDnsValue forAggregateDnResolver.getAllowMultipleDns()
. -
returnAttributes
Value forAuthenticator.getReturnAttributes()
. -
resolveEntryOnFailure
private boolean resolveEntryOnFailureValue ofAuthenticator.getResolveEntryOnFailure()
.
-
-
Constructor Details
-
AggregateAuthenticatorFactoryBean
protected AggregateAuthenticatorFactoryBean()
-
-
Method Details
-
setAuthenticators
Sets the authenticators to aggregate.- Parameters:
auths
- authenticators to aggregate
-
setAllowMultipleDns
public void setAllowMultipleDns(boolean b) Sets whether the aggregate authenticator will allow multiple DNs.- Parameters:
b
- whether multiple DNs are allowed
-
setReturnAttributes
Sets the return attributes.- Parameters:
attrs
- return attributes
-
setResolveEntryOnFailure
public void setResolveEntryOnFailure(boolean b) Sets whether to execute the entry resolver on authentication failure.- Parameters:
b
- whether to execute the entry resolver
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>
-