Package com.ultikits.ultitools.websocket
Class CloudPlayerLinks.GameAuth
java.lang.Object
com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth
- Enclosing class:
CloudPlayerLinks
What this server knows about the player's game authentication when the link is created.
- Since:
- 6.3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGameAuth(boolean authPlugin, boolean authenticated, boolean accountExists) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic CloudPlayerLinks.GameAuthauthPlugin(boolean authenticated, boolean accountExists) Reports that a login plugin authenticates players on this server.booleanstatic CloudPlayerLinks.GameAuthnone()Reports that no login plugin is involved in this server's authentication.toString()
-
Field Details
-
authPlugin
private final boolean authPlugin -
authenticated
private final boolean authenticated -
accountExists
private final boolean accountExists
-
-
Constructor Details
-
GameAuth
private GameAuth(boolean authPlugin, boolean authenticated, boolean accountExists)
-
-
Method Details
-
none
Reports that no login plugin is involved in this server's authentication.- Returns:
- the
provider: nonefacts
-
authPlugin
Reports that a login plugin authenticates players on this server.- Parameters:
authenticated- whether the player is currently authenticated by that pluginaccountExists- whether that plugin already holds an account for this name- Returns:
- the
provider: auth_pluginfacts
-
isAuthPlugin
public boolean isAuthPlugin()- Returns:
- true when a login plugin is involved
-
authenticated
public boolean authenticated()- Returns:
- whether the login plugin has authenticated the player; false for
none()
-
accountExists
public boolean accountExists()- Returns:
- whether the login plugin already holds an account; false for
none()
-
toString
-