krb5.lib
Class AuthenticationServiceFactory

java.lang.Object
  extended by krb5.lib.AuthenticationServiceFactory

public class AuthenticationServiceFactory
extends java.lang.Object

Class Description : Return a reference to the remote object, AuthenticationServiceInterface, to the Kerberos client.

Version:
1.1
Author:
Bojan Pajkovski

Constructor Summary
AuthenticationServiceFactory()
          Empty class constructor
 
Method Summary
static AuthenticationServiceInterface getLocalInstance()
          Provides a local instance of the authentication service
static AuthenticationServiceInterface getRemoteInstance(java.lang.String hostname, int port)
          Lookup in the RMI Registry for the authentication service from the remote site
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationServiceFactory

public AuthenticationServiceFactory()
Empty class constructor

Method Detail

getLocalInstance

public static AuthenticationServiceInterface getLocalInstance()
Provides a local instance of the authentication service

Returns:
AuthenticationServiceInterface

getRemoteInstance

public static AuthenticationServiceInterface getRemoteInstance(java.lang.String hostname,
                                                               int port)
Lookup in the RMI Registry for the authentication service from the remote site

Parameters:
hostname - String - Host name
port - int - Port number
Returns:
AuthenticationServiceInterface