public class KnoxLdapContextFactory
extends org.apache.shiro.realm.ldap.JndiLdapContextFactory
JndiLdapContextFactory that allows a different authentication mechanism
for system-level authentications (as used by authorization lookups, for example)
compared to regular authentication.
See KnoxLdapRealm for typical configuration within shiro.ini.
| Constructor and Description |
|---|
KnoxLdapContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected LdapContext |
createLdapContext(Hashtable env) |
String |
getClusterName() |
String |
getSystemAuthenticationMechanism() |
void |
setClusterName(String clusterName) |
void |
setSystemAuthenticationMechanism(String systemAuthenticationMechanism) |
void |
setSystemPassword(String systemPass) |
getAuthenticationMechanism, getContextFactoryClassName, getEnvironment, getLdapContext, getLdapContext, getReferral, getSystemLdapContext, getSystemPassword, getSystemUsername, getUrl, isPoolingConnections, isPoolingEnabled, setAuthenticationMechanism, setContextFactoryClassName, setEnvironment, setPoolingEnabled, setReferral, setSystemUsername, setUrl, validateAuthenticationInfoprotected LdapContext createLdapContext(Hashtable env) throws NamingException
createLdapContext in class org.apache.shiro.realm.ldap.JndiLdapContextFactoryNamingExceptionpublic String getSystemAuthenticationMechanism()
public void setSystemAuthenticationMechanism(String systemAuthenticationMechanism)
public void setSystemPassword(String systemPass)
setSystemPassword in class org.apache.shiro.realm.ldap.JndiLdapContextFactorypublic String getClusterName()
public void setClusterName(String clusterName)
Copyright © 2022 The Apache Software Foundation. All rights reserved.