public final class AuthenticationServer extends UnicastRemoteObject implements AuthenticationService
AuthenticationService that is used to authenticate users
for a provided JobService.JobService,
Serialized Formref| Constructor and Description |
|---|
AuthenticationServer(JobService service)
Creates a new
AuthenticationServer. |
AuthenticationServer(JobService service,
int port)
Creates a new
AuthenticationServer. |
AuthenticationServer(JobService service,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Creates a new
AuthenticationServer. |
| Modifier and Type | Method and Description |
|---|---|
JobService |
authenticate(String username,
String password,
UUID protocolVersionId) |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic AuthenticationServer(JobService service) throws RemoteException
AuthenticationServer.service - The JobService to authenticate for.RemoteException - If a communication error occurs.public AuthenticationServer(JobService service, int port) throws RemoteException
AuthenticationServer.service - The JobService to authenticate for.port - The port to listen on.RemoteException - If a communication error occurs.public AuthenticationServer(JobService service, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
AuthenticationServer.service - The JobService to authenticate for.port - The port to listen on.csf - The RMIClientSocketFactory to use.ssf - The RMIServerSocketFactory to use.RemoteException - If a communication error occurs.public JobService authenticate(String username, String password, UUID protocolVersionId) throws RemoteException, LoginException, ProtocolVersionException
authenticate in interface AuthenticationServiceRemoteExceptionLoginExceptionProtocolVersionExceptionCopyright © 2016. All rights reserved.