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.
|
Modifier and Type | Method and Description |
---|---|
protected AuthenticationInfo |
ActiveDirectoryRealm.queryForAuthenticationInfo(AuthenticationToken token,
LdapContextFactory ldapContextFactory)
Builds an
AuthenticationInfo object by querying the active directory LDAP context for the
specified username. |
protected AuthorizationInfo |
ActiveDirectoryRealm.queryForAuthorizationInfo(PrincipalCollection principals,
LdapContextFactory ldapContextFactory)
Builds an
AuthorizationInfo object by querying the active directory LDAP context for the
groups that a user is a member of. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLdapContextFactory
Deprecated.
replaced by the
JndiLdapContextFactory implementation. This implementation will be removed
prior to Shiro 2.0 |
class |
JndiLdapContextFactory
LdapContextFactory implementation using the default Sun/Oracle JNDI Ldap API, utilizing JNDI
environment properties and an InitialContext . |
Modifier and Type | Method and Description |
---|---|
LdapContextFactory |
DefaultLdapRealm.getContextFactory()
Returns the LdapContextFactory instance used to acquire connections to the LDAP directory during authentication
attempts and authorization queries.
|
Modifier and Type | Method and Description |
---|---|
protected abstract AuthenticationInfo |
AbstractLdapRealm.queryForAuthenticationInfo(AuthenticationToken token,
LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds an
AuthenticationInfo 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's
discovered principal and provided
credentials . |
protected abstract AuthorizationInfo |
AbstractLdapRealm.queryForAuthorizationInfo(PrincipalCollection principal,
LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds an
AuthorizationInfo 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 an
AuthorizationInfo 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 the
LdapContextFactory implementation that is used to create LDAP connections for
authentication and authorization. |
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.