com.tensegrity.palowebviewer.server.security
Class TestEnviromentAuthenificator

java.lang.Object
  extended by com.tensegrity.palowebviewer.server.security.BaseMd5Authentificator
      extended by com.tensegrity.palowebviewer.server.security.TestEnviromentAuthenificator
All Implemented Interfaces:
IAuthenificator

public class TestEnviromentAuthenificator
extends BaseMd5Authentificator

Authenificator for using with GWT Development shell


Constructor Summary
TestEnviromentAuthenificator(PaloConfiguration cfg)
           
 
Method Summary
 IUser authentificate(java.lang.String login, java.lang.String password)
          Authenificate user by login and password
 IUser hashAuthentificate(java.lang.String login, java.lang.String hash)
          Authenificate user by login and password hash
 
Methods inherited from class com.tensegrity.palowebviewer.server.security.BaseMd5Authentificator
calculateHash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEnviromentAuthenificator

public TestEnviromentAuthenificator(PaloConfiguration cfg)
                             throws PaloWebViewerException
Throws:
PaloWebViewerException
Method Detail

authentificate

public IUser authentificate(java.lang.String login,
                            java.lang.String password)
                     throws InvalidLoginOrPasswordException,
                            AuthenticationException
Description copied from interface: IAuthenificator
Authenificate user by login and password

Parameters:
login - - User login
password - - User password
Returns:
Throws:
InvalidLoginOrPasswordException - - Invalid login or(and) password
AuthenticationException

hashAuthentificate

public IUser hashAuthentificate(java.lang.String login,
                                java.lang.String hash)
                         throws InvalidLoginOrPasswordException,
                                AuthenticationException
Description copied from interface: IAuthenificator
Authenificate user by login and password hash

Parameters:
login - - User login
hash - - User password hash
Returns:
Throws:
InvalidLoginOrPasswordException - - Invalid login or(and) password
AuthenticationException