public class LdapSecurityRealm
extends org.apache.shiro.realm.ldap.DefaultLdapRealm
| Constructor and Description |
|---|
LdapSecurityRealm(LdapUserProvider ldapUserProvider,
AuthenticationMechanism mechanism)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getUserDn(String principal) |
protected org.apache.shiro.authc.AuthenticationInfo |
queryForAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.realm.ldap.LdapContextFactory factory) |
protected org.apache.shiro.authz.AuthorizationInfo |
queryForAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principalCollection,
org.apache.shiro.realm.ldap.LdapContextFactory factory) |
createAuthenticationInfo, doGetAuthenticationInfo, doGetAuthorizationInfo, getContextFactory, getLdapPrincipal, getUserDnPrefix, getUserDnSuffix, getUserDnTemplate, setContextFactory, setUserDnTemplateafterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getPermissions, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolverassertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledpublic LdapSecurityRealm(LdapUserProvider ldapUserProvider, AuthenticationMechanism mechanism)
ldapUserProvider - the provider used to bind users on the LDAP/ADmechanism - the authentication mechanism used to
verify the accounts before sending them to authenticate throug LDAP/AD.
With this mechanism you can implement the two factor implementation where
you have a bind account in your local database and use them to create
in your application the permissions for the user. If this parameter is
null a EmptyAuthenticationMechanism is used.protected org.apache.shiro.authc.AuthenticationInfo queryForAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.realm.ldap.LdapContextFactory factory)
throws NamingException
queryForAuthenticationInfo in class org.apache.shiro.realm.ldap.DefaultLdapRealmtoken - factory - NamingExceptionprotected org.apache.shiro.authz.AuthorizationInfo queryForAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principalCollection,
org.apache.shiro.realm.ldap.LdapContextFactory factory)
throws NamingException
queryForAuthorizationInfo in class org.apache.shiro.realm.ldap.DefaultLdapRealmprincipalCollection - factory - NamingExceptionCopyright © 2018 Arthur Gregorio. All rights reserved.