public class LDAPRealm extends org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm implements AutoCloseable
Constructor and Description |
---|
LDAPRealm(LDAPConfiguration configuration,
CredentialsUsernamePassword credentials) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Set<String> |
getGroupNamesForUser(String username)
Returns a Collection of all group names the user belongs to.
|
LdapContext |
getLdapContext() |
setGroupRolesMap
setLdapContextFactory, setPrincipalSuffix, setSearchBase, setSystemPassword, setSystemUsername, setUrl
checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, getAuthorizationCache, getAuthorizationCacheName, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
getAuthenticationCache, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled
public LDAPRealm(LDAPConfiguration configuration, CredentialsUsernamePassword credentials) throws NamingException
NamingException
public Set<String> getGroupNamesForUser(String username) throws NamingException
username
- NamingException
public LdapContext getLdapContext()
public void close()
close
in interface AutoCloseable