|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucsd.auth.GridAuth
Grid-based Authentication and Authorization client API - fully implements the Grid-Auth API Specification.
Field Summary | |
protected URL |
serviceHost
The URL for auth service handling. |
protected Hashtable |
userMapHashTable
A Hashtable that stores user-related values received from the service handler. |
static String |
VERSION
The GridAuth version. |
Constructor Summary | |
GridAuth()
This is the constructor method which simply allocates space. |
Method Summary | |
String |
get(String key)
An access method that will query and return the value of a supplied key. |
String |
getKeys()
A method to get the keys from the userMapHashTable. |
boolean |
isMember(String group)
Authorization method to determine if a user is in a particular group. |
boolean |
login(String session)
The login method in this form will attempt to authenticate with the default GridAuth test service handler (or other grid if the setServiceHandler method was used) using a supplied session hash. |
boolean |
login(String user,
String pass)
The login method in this form will attempt to authenticate with the default GridAuth service handler (or other grid if the setServiceHandler method was used) using a supplied username and password. |
boolean |
logout()
The logout method destroys local information, as well as remote session information. |
void |
setServiceHandler(String newServiceHost)
Dynamically set the service handler at runtime (not recommended). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VERSION
protected Hashtable userMapHashTable
protected URL serviceHost
Constructor Detail |
public GridAuth()
Method Detail |
public void setServiceHandler(String newServiceHost)
newServiceHost
- host url string for the auth service handlerpublic boolean login(String user, String pass)
user
- login usernamepass
- password for the user login
public boolean login(String session)
session
- hash identifying current session.
public boolean logout()
public String get(String key)
key
- userMapHashTable key
public String getKeys()
public boolean isMember(String group)
group
- query group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |