public class LDAPCheck extends LDAPCheckBase
BUNDLE, INITCTX, SPACE
Constructor and Description |
---|
LDAPCheck()
The default constructor.
|
LDAPCheck(java.lang.String options)
The constructor, that gets the parameter passed to Avalon via the keyword.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkAttributes(java.util.HashMap<java.lang.String,java.lang.String> map,
java.lang.String service,
javax.naming.directory.Attributes attrs)
Check the attributes and return the authentication string.
|
NameValue[] |
checkAuthNameValue(NameValue[] nvauth,
java.lang.String factory)
Check the authentication namevalue array at the LDAP Server.
|
static void |
main(java.lang.String[] args)
If the service is configurated using the property file,
this method can be used to test the implementation.
|
checkAuth, close, init, printAttributes
public LDAPCheck()
public LDAPCheck(java.lang.String options)
options
- public java.lang.String checkAttributes(java.util.HashMap<java.lang.String,java.lang.String> map, java.lang.String service, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
checkAttributes
in class LDAPCheckBase
map
- the map containing the incoming authentication entries.service
- the name of the service.attrs
- the attributes of the found LDAP entry.javax.naming.NamingException
public NameValue[] checkAuthNameValue(NameValue[] nvauth, java.lang.String factory) throws AoException
checkAuthNameValue
in interface LDAPCheckInterface
checkAuthNameValue
in class LDAPCheckBase
nvauth
- the authentication namevalue arrayfactory
- the name of the factory or serviceAoException
public static void main(java.lang.String[] args) throws java.lang.Throwable
args
- the commandline arguments.java.lang.Throwable