org.equanda.test.login
Class LoginCache
java.lang.Object
org.equanda.cache.EquandaCache<LoginInfo>
org.equanda.test.login.LoginCache
public class LoginCache
- extends EquandaCache<LoginInfo>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_PREFIX
public static final String USER_PREFIX
- See Also:
- Constant Field Values
AUTH_USER_PREFIX
public static final String AUTH_USER_PREFIX
- See Also:
- Constant Field Values
AUTH_ROLE_PREFIX
public static final String AUTH_ROLE_PREFIX
- See Also:
- Constant Field Values
getLoginCache
public static LoginCache getLoginCache()
getObject
protected LoginInfo getObject(String key)
throws EquandaPersistenceException
- Specified by:
getObject
in class EquandaCache<LoginInfo>
- Throws:
EquandaPersistenceException
setUser
public LoginInfo setUser(String user,
String pass)
throws EquandaPersistenceException
- Add LoginInfo in cache for given username/password pair (from parent LoginModule)
- Parameters:
user
- usernamepass
- password
- Returns:
- built LoginInfo object
- Throws:
EquandaPersistenceException
- oops
getUser
public LoginInfo getUser(String user)
throws EquandaPersistenceException
- Get LoginInfo with full proxy, you need to be logged in to use this!
- Parameters:
user
- username
- Returns:
- LoginInfo object
- Throws:
EquandaPersistenceException
- oops
get
public LoginInfo get(String user)
throws EquandaPersistenceException
- Overrides:
get
in class EquandaCache<LoginInfo>
- Throws:
EquandaPersistenceException
getWithAuth
public LoginInfo getWithAuth(String user)
throws EquandaPersistenceException
- Get LoginInfo with full AuthAndConfig, you need to be logged in to use this!
- Parameters:
user
- username
- Returns:
- LoginInfo object
- Throws:
EquandaPersistenceException
- oops
Copyright © 2007-2008. All Rights Reserved.