info.aduna.gee.publication.servlets.db
Class Authorization

java.lang.Object
  extended by info.aduna.gee.publication.servlets.db.Authorization

public class Authorization
extends Object

Password authentication using plain text String comparison.


Constructor Summary
Authorization()
           
 
Method Summary
protected static boolean _passwordsMatch(String host, String password, UserInfo userInfo)
          Change this in subclasses of Authorization
static boolean checkOwner(String hostName, String userName, String storeName, String password, boolean personal, boolean asis)
          Check whether the combination of a user name, a store name and a password form a correct full login on account "user name".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authorization

public Authorization()
Method Detail

checkOwner

public static boolean checkOwner(String hostName,
                                 String userName,
                                 String storeName,
                                 String password,
                                 boolean personal,
                                 boolean asis)
Check whether the combination of a user name, a store name and a password form a correct full login on account "user name".

Parameters:
hostName - the host
userName - the account on which the operation is applied
storeName - the name of the person doing the operation
password - the password
personal - if true the password must be the one of the account, if false it may be of an associated owner
asis - if true, check the password "as-is", otherwise deconfuse it first
See Also:
WConfuse@confuse

_passwordsMatch

protected static boolean _passwordsMatch(String host,
                                         String password,
                                         UserInfo userInfo)
Change this in subclasses of Authorization



Copyright © 1997-2008 Aduna. All Rights Reserved.