public class AuthenticationManager extends Object
| Constructor and Description |
|---|
AuthenticationManager(Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
be.yildiz.common.Token |
authenticate(be.yildiz.module.network.protocol.AuthenticationRequest request)
Check if the authentication request is valid and notify the listeners if it is.
|
be.yildiz.common.Token |
getAuthenticated(be.yildiz.common.id.PlayerId id)
Retrieve a token for a given player, if the player is not found, a not found token is returned.
|
public AuthenticationManager(Authenticator authenticator)
public final be.yildiz.common.Token authenticate(be.yildiz.module.network.protocol.AuthenticationRequest request)
request - Received AuthenticationRequest.NullPointerException - If request is null.public final be.yildiz.common.Token getAuthenticated(be.yildiz.common.id.PlayerId id)
id - Player id.Copyright © 2014–2017. All rights reserved.