Modifier and Type | Class and Description |
---|---|
class |
Session
Overview
The Session object represents a connected client in the system.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SFSApi.checkSecurePassword(ISession session,
java.lang.String originalPass,
java.lang.String encryptedPass)
Check an encrypted password sent by the User at login time.
|
boolean |
ISFSApi.checkSecurePassword(ISession session,
java.lang.String originalPass,
java.lang.String encryptedPass)
Check an encrypted password sent by the User at login time.
|
void |
SFSApi.disconnect(ISession session)
Removes a Session and the User connected with that session, if one exists
|
void |
ISFSApi.disconnect(ISession session)
Disconnect a Session abruptly.
|
User |
SFSApi.getUserBySession(ISession session)
Finds a User from its Session
|
User |
ISFSApi.getUserBySession(ISession session)
Finds a User from its Session
|
User |
SFSApi.login(ISession sender,
java.lang.String name,
java.lang.String pass,
java.lang.String zoneName,
ISFSObject paramsOut)
Logs a client into a Zone, allowing it to become a User
The login process is central to SmartFoxServer because it generates a User object.
|
User |
ISFSApi.login(ISession session,
java.lang.String name,
java.lang.String pass,
java.lang.String zoneName,
ISFSObject params)
Logs a client into a Zone, allowing it to become a User
The login process is central to SmartFoxServer because it generates a User object.
|
User |
SFSApi.login(ISession sender,
java.lang.String name,
java.lang.String pass,
java.lang.String zoneName,
ISFSObject paramsOut,
boolean forceLogout)
Uses additional flag to disconnect previous user with same username
|
User |
ISFSApi.login(ISession session,
java.lang.String name,
java.lang.String pass,
java.lang.String zoneName,
ISFSObject params,
boolean forceLogout)
Uses additional flag to disconnect previous user with same username
|
Modifier and Type | Method and Description |
---|---|
void |
SFSApi.sendAdminMessage(User sender,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients)
Sends a administrator message to a number of Users.
|
void |
ISFSApi.sendAdminMessage(User sender,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients)
Sends a administrator message to a number of Users.
|
void |
SFSApi.sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type,
User sender,
int targetRoomId,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients) |
void |
ISFSApi.sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type,
User sender,
int targetRoomId,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients) |
void |
SFSApi.sendModeratorMessage(User sender,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients)
Sends a moderator message to a number of Users.
|
void |
ISFSApi.sendModeratorMessage(User sender,
java.lang.String message,
ISFSObject params,
java.util.Collection<ISession> recipients)
Sends a moderator message to a number of Users.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ISession> |
SFSBuddyListManager.getClientsWatchingBuddy(java.lang.String buddyName) |
java.util.List<ISession> |
BuddyListManager.getClientsWatchingBuddy(java.lang.String buddyName) |
java.util.List<ISession> |
SFSBuddyListManager.getClientsWatchingBuddy(java.lang.String buddyName,
boolean onlineUsersOnly) |
java.util.List<ISession> |
BuddyListManager.getClientsWatchingBuddy(java.lang.String buddyName,
boolean onlineUsersOnly) |
Modifier and Type | Field and Description |
---|---|
ISession |
LoginData.session
The client's session
|
Modifier and Type | Method and Description |
---|---|
protected void |
Login.resolveIpAddress(ISession session) |
protected void |
Login.validateEncryptionStatus(ISession sender,
com.smartfoxserver.bitswarm.io.IRequest request,
Zone zone) |
protected void |
Login.validateLoginErrors(ISession session,
Zone zone) |
Modifier and Type | Field and Description |
---|---|
ISession |
LoginData.session |
Modifier and Type | Method and Description |
---|---|
ISession |
User.getSession()
Get the session object linked to this User
|
ISession |
SFSUser.getSession() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ISession> |
Zone.getSessionList()
Get the list of Sessions logged in the Zone
|
java.util.Collection<ISession> |
SFSZone.getSessionList()
Get the list of Sessions logged in the Zone
|
java.util.List<ISession> |
SFSRoom.getSessionList()
Get all the User Sessions in the Room
|
java.util.List<ISession> |
Room.getSessionList()
Get all the User Sessions in the Room
|
java.util.Collection<ISession> |
Zone.getSessionsInGroup(java.lang.String groupId)
Get a list of Sessions from all Rooms in the provided Room Group
|
java.util.Collection<ISession> |
SFSZone.getSessionsInGroup(java.lang.String groupId)
Get a list of Sessions from all Rooms in the provided Room Group
|
java.util.Collection<ISession> |
Zone.getSessionsListeningToGroup(java.lang.String groupId)
Get a list of Sessions listening for events in a specific Group
|
java.util.Collection<ISession> |
SFSZone.getSessionsListeningToGroup(java.lang.String groupId) |
Modifier and Type | Method and Description |
---|---|
User |
Zone.getUserBySession(ISession session)
Get a User from its Session object
|
User |
SFSZone.getUserBySession(ISession session)
Get a User from its Session object
|
User |
SFSRoom.getUserBySession(ISession session) |
User |
Room.getUserBySession(ISession session) |
void |
Zone.removeUser(ISession session)
INTERNAL
Instead use
SFSApi.disconnect(ISession) |
void |
SFSZone.removeUser(ISession session)
INTERNAL
Instead use
SFSApi.disconnect(ISession) |
Constructor and Description |
---|
LoginData(ISession session,
java.lang.String userName) |
LoginData(ISession session,
java.lang.String userName,
java.lang.String password) |
LoginData(ISession session,
java.lang.String userName,
java.lang.String password,
ISFSObject paramsOut,
boolean forceLogout) |
SFSUser(ISession session) |
SFSUser(java.lang.String name,
ISession session) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CryptoUtils.getClientPassword(ISession session,
java.lang.String clearPass) |
static java.lang.String |
CryptoUtils.getUniqueSessionToken(ISession session) |