public class SessionToken extends Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
SessionToken() |
SessionToken(long id,
String userName)
Used by tests to control the session id
|
SessionToken(String userName)
The primary constructor that specifies userName
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSessionID()
Returns unique session identifier
|
String |
getUsername()
Get the principal name for this session's user.
|
void |
readExternal(ObjectInput in) |
String |
toString()
Returns a string representing the current state of the object.
|
void |
writeExternal(ObjectOutput out) |
public static final long serialVersionUID
public SessionToken()
public SessionToken(long id, String userName)
id
- userName
- public SessionToken(String userName)
userName
- (String) the userName for this sessionpublic String getSessionID()
public String getUsername()
public String toString()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.