Uses of Interface
org.apache.shiro.realm.ldap.LdapContextFactory
-
Packages that use LdapContextFactory Package Description org.apache.shiro.realm.activedirectory Realms that acquire security data from a Microsoft Active Directory.org.apache.shiro.realm.ldap Realms that acquire security data from an LDAP (Lightweight Directory Access Protocol) server utilizing LDAP/Naming APIs. -
-
Uses of LdapContextFactory in org.apache.shiro.realm.activedirectory
Methods in org.apache.shiro.realm.activedirectory with parameters of type LdapContextFactory Modifier and Type Method Description protected AuthenticationInfo
ActiveDirectoryRealm. queryForAuthenticationInfo(AuthenticationToken token, LdapContextFactory ldapContextFactory)
Builds anAuthenticationInfo
object by querying the active directory LDAP context for the specified username.protected AuthorizationInfo
ActiveDirectoryRealm. queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
Builds anAuthorizationInfo
object by querying the active directory LDAP context for the groups that a user is a member of. -
Uses of LdapContextFactory in org.apache.shiro.realm.ldap
Classes in org.apache.shiro.realm.ldap that implement LdapContextFactory Modifier and Type Class Description class
DefaultLdapContextFactory
Deprecated.replaced by theJndiLdapContextFactory
implementation.class
JndiLdapContextFactory
LdapContextFactory
implementation using the default Sun/Oracle JNDI Ldap API, utilizing JNDI environment properties and anInitialContext
.Methods in org.apache.shiro.realm.ldap that return LdapContextFactory Modifier and Type Method Description LdapContextFactory
DefaultLdapRealm. getContextFactory()
Returns the LdapContextFactory instance used to acquire connections to the LDAP directory during authentication attempts and authorization queries.Methods in org.apache.shiro.realm.ldap with parameters of type LdapContextFactory Modifier and Type Method Description protected abstract AuthenticationInfo
AbstractLdapRealm. queryForAuthenticationInfo(AuthenticationToken token, LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds anAuthenticationInfo
object by querying the LDAP context for the specified username.protected AuthenticationInfo
DefaultLdapRealm. queryForAuthenticationInfo(AuthenticationToken token, LdapContextFactory ldapContextFactory)
This implementation opens an LDAP connection using the token'sdiscovered principal
and providedcredentials
.protected abstract AuthorizationInfo
AbstractLdapRealm. queryForAuthorizationInfo(PrincipalCollection principal, LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds anAuthorizationInfo
object by querying the LDAP context for the specified principal.protected AuthorizationInfo
DefaultLdapRealm. queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
Method that should be implemented by subclasses to build anAuthorizationInfo
object by querying the LDAP context for the specified principal.void
DefaultLdapRealm. setContextFactory(LdapContextFactory contextFactory)
Sets the LdapContextFactory instance used to acquire connections to the LDAP directory during authentication attempts and authorization queries.void
AbstractLdapRealm. setLdapContextFactory(LdapContextFactory ldapContextFactory)
Configures theLdapContextFactory
implementation that is used to create LDAP connections for authentication and authorization.
-