public class SingleSignOnMessage extends Object implements ClusterMessage
Modifier and Type | Field and Description |
---|---|
static int |
ADD_SESSION |
static int |
DEREGISTER_SESSION |
static int |
LOGOUT_SESSION |
static int |
REGISTER_SESSION |
static int |
REMOVE_SESSION |
static int |
UPDATE_SESSION |
Constructor and Description |
---|
SingleSignOnMessage(Member source,
String ssoId,
String sessionId) |
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
Member |
getAddress()
Get the address that this message originated from.
|
String |
getAuthType() |
String |
getContextName() |
String |
getPassword() |
SerializablePrincipal |
getPrincipal() |
String |
getSessionId() |
String |
getSsoId() |
long |
getTimestamp()
Timestamp message.
|
String |
getUniqueId()
Each message must have a unique ID, in case of using async replication,
and a smart queue, this id is used to replace messages not yet sent.
|
String |
getUsername() |
void |
setAction(int action) |
void |
setAddress(Member member)
Called by the cluster before sending it to the other
nodes.
|
void |
setAuthType(String authType) |
void |
setContextName(String ctxname) |
void |
setPassword(String password) |
void |
setPrincipal(SerializablePrincipal principal) |
void |
setTimestamp(long timestamp)
Called by the cluster before sending out
the message.
|
void |
setUsername(String username) |
String |
toString()
Return a String rendering of this object.
|
public static final int ADD_SESSION
public static final int DEREGISTER_SESSION
public static final int LOGOUT_SESSION
public static final int REGISTER_SESSION
public static final int UPDATE_SESSION
public static final int REMOVE_SESSION
public Member getAddress()
getAddress
in interface ClusterMessage
public void setAddress(Member member)
setAddress
in interface ClusterMessage
member
- Memberpublic long getTimestamp()
getTimestamp
in interface ClusterMessage
public void setTimestamp(long timestamp)
setTimestamp
in interface ClusterMessage
timestamp
- The timestamppublic String getUniqueId()
getUniqueId
in interface ClusterMessage
public int getAction()
public void setAction(int action)
public String getSsoId()
public String getContextName()
public void setContextName(String ctxname)
public String getSessionId()
public String getAuthType()
public void setAuthType(String authType)
public String getPassword()
public void setPassword(String password)
public String getUsername()
public void setUsername(String username)
public SerializablePrincipal getPrincipal()
public void setPrincipal(SerializablePrincipal principal)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.