net.sourceforge.heracles.service
Interface Authentication

All Known Implementing Classes:
AuthenticationImpl

public interface Authentication

Title: Authentication.java
Description: Interface of the service layer
Java Version: JDK 1.5

Author:
Philipp Gantert version 1.0

Method Summary
 LdapUser authAdvanced(java.lang.String username, java.lang.String password)
          This method receives from the API implementation the username and password.
 void authSimple(java.lang.String username, java.lang.String password)
          This methodes receivse from the API implementation the username and password.
 

Method Detail

authSimple

void authSimple(java.lang.String username,
                java.lang.String password)
                throws javax.security.auth.login.LoginException,
                       HeraclesException
This methodes receivse from the API implementation the username and password. These values will be submited to the Kerberos query.

Parameters:
username - String: users username
password - String: password of the user
Throws:
javax.security.auth.login.LoginException
HeraclesException

authAdvanced

LdapUser authAdvanced(java.lang.String username,
                      java.lang.String password)
                      throws javax.security.auth.login.LoginException,
                             javax.naming.NamingException,
                             HeraclesException
This method receives from the API implementation the username and password. At first these values will be submited to the Kerberos query. As result it receives a kerberosSubject Objekt. To find the right LDAP User we must extract all Principals from the kerberosSubjact. After that we can query the ldap and we receive the right ldapUser object.

Parameters:
username - String: users username
password - String: password of the user
Returns:
LdapUser
Throws:
javax.security.auth.login.LoginException
javax.naming.NamingException
HeraclesException


Copyright © 2007 null. All Rights Reserved.