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 anAggregateDnResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowMultipleDnsValue forAggregateDnResolver.getAllowMultipleDns().private List<Authenticator>authenticatorsAuthenticators to aggregate.private booleanresolveEntryOnFailureValue ofAuthenticator.getResolveEntryOnFailure().private String[]returnAttributesValue forAuthenticator.getReturnAttributes().
-
Constructor Summary
Constructors Modifier Constructor Description protectedAggregateAuthenticatorFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticatorgetObject()Class<Authenticator>getObjectType()booleanisSingleton()voidsetAllowMultipleDns(boolean b)Sets whether the aggregate authenticator will allow multiple DNs.voidsetAuthenticators(List<Authenticator> auths)Sets the authenticators to aggregate.voidsetResolveEntryOnFailure(boolean b)Sets whether to execute the entry resolver on authentication failure.voidsetReturnAttributes(String... attrs)Sets the return attributes.
-
-
-
Field Detail
-
authenticators
private List<Authenticator> authenticators
Authenticators to aggregate.
-
allowMultipleDns
private boolean allowMultipleDns
Value forAggregateDnResolver.getAllowMultipleDns().
-
returnAttributes
private String[] returnAttributes
Value forAuthenticator.getReturnAttributes().
-
resolveEntryOnFailure
private boolean resolveEntryOnFailure
Value ofAuthenticator.getResolveEntryOnFailure().
-
-
Method Detail
-
setAuthenticators
public void setAuthenticators(List<Authenticator> auths)
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
public void setReturnAttributes(String... attrs)
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
public Authenticator getObject() throws Exception
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>- Throws:
Exception
-
getObjectType
public Class<Authenticator> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<Authenticator>
-
-