public final class AuthenticationServer extends Object
| Constructor and Description |
|---|
AuthenticationServer(String address,
int port,
AuthenticationManager manager)
Create a new server, with a given port.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
int |
getPort() |
void |
startServer()
Start listening for incoming requests.
|
public AuthenticationServer(String address, int port, AuthenticationManager manager)
address - Address to bind.port - Port to use to listen to authentication requests, and authentication verification requests.manager - Manager to use for the authentication process.public void startServer()
public int getPort()
public String getHost()
Copyright © 2014–2017. All rights reserved.