krb5.lib
Class TicketGrantingServiceFactory

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

public class TicketGrantingServiceFactory
extends java.lang.Object

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

Version:
1.1
Author:
Bojan Pajkovski

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

Constructor Detail

TicketGrantingServiceFactory

public TicketGrantingServiceFactory()
Method Detail

getLocalInstance

public static TicketGrantingServiceInterface getLocalInstance()
Provides a local instance of the ticket granting service

Returns:
TicketGrantingServiceInterface

getRemoteInstance

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

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