org.apache.catalina.ha.authenticator

Class SingleSignOnMessage

public class SingleSignOnMessage extends Object implements ClusterMessage, Serializable

Contains the SingleSignOn data, read and written by the ClusterSingleSignOn

Author: Fabien Carrion

Field Summary
static intADD_SESSION
static intDEREGISTER_SESSION
static intLOGOUT_SESSION
static intREGISTER_SESSION
static intREMOVE_SESSION
static intUPDATE_SESSION
Constructor Summary
SingleSignOnMessage(Member source, String ssoId, String sessionId)
Method Summary
intgetAction()
MembergetAddress()
Get the address that this message originated from.
StringgetAuthType()
StringgetContextName()
StringgetPassword()
StringgetSessionId()
StringgetSsoId()
longgetTimestamp()
Timestamp message.
StringgetUniqueId()
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.
StringgetUsername()
voidsetAction(int action)
voidsetAddress(Member member)
Called by the cluster before sending it to the other nodes.
voidsetAuthType(String authType)
voidsetContextName(String ctxname)
voidsetPassword(String password)
voidsetSessionId(String sessionId)
voidsetSsoId(String ssoId)
voidsetTimestamp(long timestamp)
Called by the cluster before sending out the message.
voidsetUniqueId(String uniqueId)
voidsetUsername(String username)
StringtoString()
Return a String rendering of this object.

Field Detail

ADD_SESSION

public static final int ADD_SESSION

DEREGISTER_SESSION

public static final int DEREGISTER_SESSION

LOGOUT_SESSION

public static final int LOGOUT_SESSION

REGISTER_SESSION

public static final int REGISTER_SESSION

REMOVE_SESSION

public static final int REMOVE_SESSION

UPDATE_SESSION

public static final int UPDATE_SESSION

Constructor Detail

SingleSignOnMessage

public SingleSignOnMessage(Member source, String ssoId, String sessionId)

Method Detail

getAction

public int getAction()

getAddress

public Member getAddress()
Get the address that this message originated from. This would be set if the message was being relayed from a host other than the one that originally sent it.

getAuthType

public String getAuthType()

getContextName

public String getContextName()

getPassword

public String getPassword()

getSessionId

public String getSessionId()

getSsoId

public String getSsoId()

getTimestamp

public long getTimestamp()
Timestamp message.

Returns: long

getUniqueId

public 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.

Returns: String

getUsername

public String getUsername()

setAction

public void setAction(int action)

setAddress

public void setAddress(Member member)
Called by the cluster before sending it to the other nodes.

Parameters: member Member

setAuthType

public void setAuthType(String authType)

setContextName

public void setContextName(String ctxname)

setPassword

public void setPassword(String password)

setSessionId

public void setSessionId(String sessionId)

setSsoId

public void setSsoId(String ssoId)

setTimestamp

public void setTimestamp(long timestamp)
Called by the cluster before sending out the message.

Parameters: timestamp The timestamp

setUniqueId

public void setUniqueId(String uniqueId)

setUsername

public void setUsername(String username)

toString

public String toString()
Return a String rendering of this object.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.