|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.heracles.api.Heracles
net.sourceforge.heracles.api.HeraclesImpl
public class HeraclesImpl
Title: HeraclesImpl.java
Description: This Class realises the heracles api
Java Version: JDK 1.5
| Field Summary | |
|---|---|
private Authentication |
auth
|
private org.apache.log4j.Logger |
logger
|
private Search |
search
|
| Constructor Summary | |
|---|---|
HeraclesImpl()
Contructor of the API implementation |
|
| Method Summary | |
|---|---|
LdapUser |
authAdvanced(java.lang.String username,
java.lang.String password)
This method takes the usersername and the password as Strings and does the authentication. |
void |
authSimple(java.lang.String username,
java.lang.String password)
This method takes the usersername and the password as Strings and does the authentication. |
java.util.List<LdapUser> |
searchInLdap(java.lang.String domainName,
java.lang.String where,
java.lang.String like)
This method could be used to search in the ldap for something, the result will be come as a List. |
void |
setAuth(Authentication auth)
This method is for spring to set a Authentication object. |
void |
setSearch(Search search)
This method is for spring to set a Search object |
| Methods inherited from class net.sourceforge.heracles.api.Heracles |
|---|
getHeracles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.apache.log4j.Logger logger
private Authentication auth
private Search search
| Constructor Detail |
|---|
public HeraclesImpl()
| Method Detail |
|---|
public void setAuth(Authentication auth)
auth - public void setSearch(Search search)
search -
public LdapUser authAdvanced(java.lang.String username,
java.lang.String password)
throws javax.security.auth.login.LoginException,
javax.naming.NamingException,
HeraclesException
authAdvanced in class Heraclesusername - password -
javax.security.auth.login.LoginException
javax.naming.NamingException
HeraclesException
public void authSimple(java.lang.String username,
java.lang.String password)
throws javax.security.auth.login.LoginException,
HeraclesException
authSimple in class Heraclesusername - password -
javax.security.auth.login.LoginException
HeraclesException
public java.util.List<LdapUser> searchInLdap(java.lang.String domainName,
java.lang.String where,
java.lang.String like)
throws javax.naming.NamingException,
HeraclesException
searchInLdap in class Heracleswhere - specified the ldap attributlike - specified the search stringdomainName - specified the domain of the search
javax.naming.NamingException
HeraclesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||