KnoxLdapRealm@Deprecated public class KnoxLdapRealm extends KnoxLdapRealm
KnoxLdapRealm
for backwards compatibility with package structure.| Constructor and Description |
|---|
KnoxLdapRealm()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.shiro.authc.AuthenticationInfo |
createAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token,
Object ldapPrincipal,
Object ldapCredentials,
LdapContext ldapContext)
Deprecated.
|
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
Deprecated.
|
protected String |
getUserDn(String principal)
Deprecated.
Returns the LDAP User Distinguished Name (DN) to use when acquiring an
LdapContext from the LdapContextFactory. |
protected org.apache.shiro.authz.AuthorizationInfo |
queryForAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals,
org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
Deprecated.
Get groups from LDAP.
|
getGroupIdAttribute, getGroupObjectClass, getGroupSearchBase, getMemberAttribute, getPrincipalRegex, getSearchBase, getUserObjectClass, getUserSearchAttributeName, getUserSearchAttributeTemplate, getUserSearchBase, getUserSearchFilter, getUserSearchScope, isAuthorizationEnabled, setAuthorizationEnabled, setGroupIdAttribute, setGroupObjectClass, setGroupSearchBase, setMemberAttribute, setMemberAttributeValueTemplate, setPermissionsByRole, setPrincipalRegex, setRolesByGroup, setSearchBase, setUserDnTemplate, setUserObjectClass, setUserSearchAttributeName, setUserSearchAttributeTemplate, setUserSearchBase, setUserSearchFilter, setUserSearchScopedoGetAuthorizationInfo, getContextFactory, getLdapPrincipal, getUserDnPrefix, getUserDnSuffix, getUserDnTemplate, queryForAuthenticationInfo, setContextFactoryafterCacheManagerSet, 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, setCachingEnabledprotected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo in class KnoxLdapRealmorg.apache.shiro.authc.AuthenticationExceptionprotected org.apache.shiro.authz.AuthorizationInfo queryForAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals,
org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
throws NamingException
queryForAuthorizationInfo in class KnoxLdapRealmprincipals - the principals of the Subject whose
AuthenticationInfo should be queried from the
LDAP server.ldapContextFactory - factory used to retrieve LDAP connections.AuthorizationInfo instance containing information
retrieved from the LDAP server.NamingException - if any LDAP errors occur during the search.protected String getUserDn(String principal) throws IllegalArgumentException, IllegalStateException
LdapContext from the LdapContextFactory.
If the the userDnTemplate property has been
set, this implementation will construct the User DN by substituting the
specified principal into the configured template. If the userDnTemplate has not been set, the method argument
will be returned directly (indicating that the submitted authentication
token principal is the User DN).getUserDn in class KnoxLdapRealmprincipal - the principal to substitute into the configured userDnTemplate.LdapContext.IllegalArgumentException - if the method argument is null or emptyIllegalStateException - if the userDnTemplate has not been set.LdapContextFactory.getLdapContext(Object, Object)protected org.apache.shiro.authc.AuthenticationInfo createAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token,
Object ldapPrincipal,
Object ldapCredentials,
LdapContext ldapContext)
throws NamingException
createAuthenticationInfo in class KnoxLdapRealmNamingExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.