public class LDAPCommon extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LDAPCommon.TYPE |
Constructor and Description |
---|
LDAPCommon() |
Modifier and Type | Method and Description |
---|---|
void |
closeJNDIContext()
Close the JNDI Context
|
void |
constructJNDIContext()
Construct the JNDI Context.
|
String |
getDataTypeOfSubstituteValue()
Get the XML Data Type of the value that we are going to substitute
in the wild card of the filter during searching
The value will be picked up from the xacml request
|
String |
getLdapAttribute()
Get the attribute name that we are interested in
Examples include cn, uid, employeeType
|
String |
getSubsititeValue()
The namespace of the value that we are going to pick up
from the xacml request to be substituted in the wildcard
for the ldap search filter
|
void |
processOptions(List<Option> theoptions) |
void |
processPassedOption(String optionTag,
String optionValue) |
NamingEnumeration<SearchResult> |
search(Object[] filterArgs)
Perform a search
The
LDAPAttributeLocator will always send a filterArg array |
void |
validateConfiguration(LDAPCommon.TYPE locatorType)
Validate that the configuration has all the required parameters
|
public void validateConfiguration(LDAPCommon.TYPE locatorType)
locatorType
- public String getLdapAttribute()
public String getDataTypeOfSubstituteValue()
public String getSubsititeValue()
public NamingEnumeration<SearchResult> search(Object[] filterArgs) throws NamingException
LDAPAttributeLocator
will always send a filterArg arrayfilterArgs
- can be null. Contains the wildcard substitution for the filterNamingException
public void constructJNDIContext() throws NamingException
NamingException
#closeJNDIContext()}
public void closeJNDIContext() throws NamingException
NamingException
Copyright © 2023 JBoss by Red Hat. All rights reserved.