|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.platform.security.authentication.SessionStub
public class SessionStub
This is a helper class intended to do a subset of the work done by com.blackboard.security.CISession.
A SessionStub object is just that, a 'struct'-style stub for session data. The method of
note for Building Block developers is disassociateCurrentSessionAndUser() which can be
used in logout processing.
| Field Summary | |
|---|---|
static int |
NULL_VALUE
|
| Constructor Summary | |
|---|---|
SessionStub()
|
|
SessionStub(javax.servlet.http.HttpServletRequest request)
|
|
| Method Summary | |
|---|---|
void |
associateSessionWithUser(java.lang.String userName)
associateSessionWithUser If the userId is associated with a valid user record in the database, then the current session should be associated with that user record, in the database. |
void |
disassociateCurrentSessionAndUser()
If the userId is associated with a valid user record in the database, then the current session should be associated with that user record, in the database. |
java.lang.String |
getMd5SessionId()
Returns the Blackboard assigned unique id for this user's session as an MD5 hashed string. |
int |
getSessionId()
Returns the Blackboard assigned unique id for this user's session. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
updateLastLoginTime(java.lang.String userName)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL_VALUE
| Constructor Detail |
|---|
public SessionStub()
public SessionStub(javax.servlet.http.HttpServletRequest request)
throws BbSecurityException
BbSecurityException| Method Detail |
|---|
public int getSessionId()
public java.lang.String getMd5SessionId()
public void associateSessionWithUser(java.lang.String userName)
throws BbAuthenticationFailedException,
BbSecurityException
String - userName
BbAuthenticationFailedException
BbSecurityException
public void updateLastLoginTime(java.lang.String userName)
throws BbAuthenticationFailedException,
BbSecurityException
String - userName
BbAuthenticationFailedException
BbSecurityException
public void disassociateCurrentSessionAndUser()
throws BbSecurityException
BbSecurityExceptionpublic java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||