|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.auth.shared.SessionManager
public class SessionManager
Method Summary | |
---|---|
void |
authenticate(int sessionId)
Simply perform an authentication when you don't need the actual subject |
java.lang.Integer |
getId(int sessionId)
Returns a userid given a session id |
int |
getIdFromUsername(java.lang.String username)
Lookup and return sessionId given their username. |
static SessionManager |
getInstance()
|
AuthzSubject |
getSubject(int sessionId)
|
AuthzSubject |
getSubject(java.lang.Integer sessionId)
|
void |
invalidate(int sessionId)
Remove the indicated session |
int |
put(AuthzSubject subject)
Associates a userid with a session id. |
int |
put(AuthzSubject subject,
long timeout)
Associates a userid with a session id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SessionManager getInstance()
public int put(AuthzSubject subject)
subject
- The AuthzSubjectValue to store
public int put(AuthzSubject subject, long timeout)
subject
- The AuthzSubjectValue to storetimeout
- The timeout for the session in milliseconds
public int getIdFromUsername(java.lang.String username) throws SessionNotFoundException, SessionTimeoutException
username
- The username.
SessionNotFoundException
SessionTimeoutException
public java.lang.Integer getId(int sessionId) throws SessionNotFoundException, SessionTimeoutException
sessionId
- The session id
SessionNotFoundException
SessionTimeoutException
public AuthzSubject getSubject(java.lang.Integer sessionId) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AuthzSubject getSubject(int sessionId) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public void authenticate(int sessionId) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public void invalidate(int sessionId)
sessionId
- The session id
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |