Java org.apache.shiro.realm.ldap JndiLdapContextFactory fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.realm.ldap JndiLdapContextFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.realm.ldap JndiLdapContextFactory.

The text is from its open source code.

Subclass

org.apache.shiro.realm.ldap.JndiLdapContextFactory has subclasses.
Click this link to see all its subclasses.

Constructor

JndiLdapContextFactory()
Default no-argument constructor that initializes the backing #getEnvironment() environment template with the #setContextFactoryClassName(String) contextFactoryClassName equal to com.sun.jndi.ldap.LdapCtxFactory (the Sun/Oracle default) and the default #setReferral(String) referral behavior to follow .

Method

MapgetEnvironment()
Returns the base JNDI environment template to use when acquiring an LDAP connection (an LdapContext ).
LdapContextgetSystemLdapContext()
This implementation delegates to #getLdapContext(Object,Object) using the #getSystemUsername() systemUsername and #getSystemPassword() systemPassword properties as arguments.
voidsetAuthenticationMechanism(String authenticationMechanism)
Sets the type of LDAP authentication mechanism to use when connecting to the LDAP server.
voidsetContextFactoryClassName(String contextFactoryClassName)
The name of the ContextFactory class to use.
voidsetPoolingEnabled(boolean poolingEnabled)
Sets whether or not connection pooling should be used when possible and appropriate.
voidsetReferral(String referral)
Sets the LDAP referral behavior when creating a connection.
voidsetSystemPassword(String systemPassword)
Sets the password of the #setSystemUsername(String) systemUsername that will be used when creating an LDAP connection used for authorization queries.
voidsetSystemUsername(String systemUsername)
Sets the system username that will be used when creating an LDAP connection used for authorization queries.
voidsetUrl(String url)
The LDAP url to connect to.