1 package diku
.distlab
.remote
.client
.authentication
;
3 import java
.rmi
.RemoteException
;
5 import diku
.distlab
.remote
.authentication
.*;
7 public class ClientAuthenticator
implements Authenticator
{
9 AuthenticatorServiceLocator authLocator
;
11 public ClientAuthenticator(String server
)
13 authLocator
= new AuthenticatorServiceLocator();
14 String url
="http://"+server
+":8080/axis/services/authentication";
15 authLocator
.setauthenticationEndpointAddress(url
);
19 public Credential
[] getEmptyCredentials() throws RemoteException
{
20 Credential
[] creds
= null;
23 creds
= authLocator
.getauthentication().getEmptyCredentials();
24 } catch (javax
.xml
.rpc
.ServiceException e
)
31 public boolean authenticate(String session_id
, Credential
[] credentials
) throws RemoteException
{
32 boolean result
= false;
35 result
= authLocator
.getauthentication().authenticate(session_id
,credentials
);
36 } catch (javax
.xml
.rpc
.ServiceException e
)