Class RemoteOutgoingServerSession
java.lang.Object
org.jivesoftware.openfire.session.RemoteSession
org.jivesoftware.openfire.session.RemoteOutgoingServerSession
- All Implemented Interfaces:
ChannelHandler<org.xmpp.packet.Packet>,RoutableChannelHandler,OutgoingServerSession,ServerSession,Session
Surrogate for outgoing server sessions hosted in some remote cluster node.
- Author:
- Gaston Dombiak
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jivesoftware.openfire.session.ServerSession
ServerSession.AuthenticationMethodNested classes/interfaces inherited from interface org.jivesoftware.openfire.session.Session
Session.Status -
Field Summary
Fields inherited from class org.jivesoftware.openfire.session.RemoteSession
address, nodeID, streamIDFields inherited from interface org.jivesoftware.openfire.session.Session
Log, MAJOR_VERSION, MINOR_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOutgoingDomainPair(DomainPair domainPair) Marks a domain pair as being authenticated.booleanauthenticateSubdomain(DomainPair domainPair) Authenticates a subdomain of this server with the specified remote server over an existing outgoing connection.booleancheckOutgoingDomainPair(DomainPair domainPair) Checks to see if a pair of domains has previously been authenticated.Obtain method that was used to authenticate this session.Obtains all authenticated domain pairs.Methods inherited from class org.jivesoftware.openfire.session.RemoteSession
close, deliverRawText, doClusterTask, doSynchronousClusterTask, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSoftwareVersion, getStatus, getStreamID, getTLSProtocolName, isClosed, isDetached, isEncrypted, process, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.openfire.session.ServerSession
isUsingSaslExternal, isUsingServerDialbackMethods inherited from interface org.jivesoftware.openfire.session.Session
close, deliverRawText, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSoftwareVersion, getStatus, getStreamID, getTLSProtocolName, isAuthenticated, isClosed, isDetached, isEncrypted, process, validate
-
Constructor Details
-
RemoteOutgoingServerSession
-
-
Method Details
-
getOutgoingDomainPairs
Description copied from interface:OutgoingServerSessionObtains all authenticated domain pairs. Most callers should avoid accessing this and use a simple check as above.- Specified by:
getOutgoingDomainPairsin interfaceOutgoingServerSession- Returns:
- collection of authenticated DomainPairs
-
addOutgoingDomainPair
Description copied from interface:OutgoingServerSessionMarks a domain pair as being authenticated.- Specified by:
addOutgoingDomainPairin interfaceOutgoingServerSession- Parameters:
domainPair- the local and remote domain for which authentication has been established.
-
authenticateSubdomain
Description copied from interface:OutgoingServerSessionAuthenticates a subdomain of this server with the specified remote server over an existing outgoing connection. If the existing session was using server dialback then a new db:result is going to be sent to the remote server. But if the existing session was TLS+SASL based then just assume that the subdomain was authenticated by the remote server.- Specified by:
authenticateSubdomainin interfaceOutgoingServerSession- Parameters:
domainPair- the local (sub) and remote domain for which authentication is to be established.- Returns:
- True if the domain was authenticated by the remote server.
-
getAuthenticationMethod
Description copied from interface:ServerSessionObtain method that was used to authenticate this session. Null when the session is not authenticated.- Specified by:
getAuthenticationMethodin interfaceServerSession- Returns:
- the method used for authentication (possibly null).
-
checkOutgoingDomainPair
Description copied from interface:OutgoingServerSessionChecks to see if a pair of domains has previously been authenticated. Since domains are authenticated as pairs, authenticating A->B does not imply anything about A-->C or D->B.- Specified by:
checkOutgoingDomainPairin interfaceOutgoingServerSession- Parameters:
domainPair- the local and remote domain for which the check is executed.- Returns:
- True if the pair of domains has been authenticated.
-