edu.nyu.cs.pdsg.handshake
Class GenericPKISecureChannelFactory

java.lang.Object
  extended byedu.nyu.cs.pdsg.handshake.SecureChannelFactory
      extended byedu.nyu.cs.pdsg.handshake.GenericPKISecureChannelFactory

public class GenericPKISecureChannelFactory
extends SecureChannelFactory

The factory class for the generic PKI based handshake implementation


Field Summary
private  java.security.Provider provider
           
 
Fields inherited from class edu.nyu.cs.pdsg.handshake.SecureChannelFactory
defaultFactory, factories
 
Constructor Summary
protected GenericPKISecureChannelFactory(java.security.Provider _provider)
          Initialize a PKI Secure Channel Factory with the given provider which will be used to create the secret key and associated channel.
 
Method Summary
static void addPKIFactoryClass(java.lang.String name, java.security.Provider provider)
          Initialize a PKI Channel Factory with the given provider and add it to the factory database with the given name.
 SecureChannel channel()
          Initialize and return a chanel of the appropropriate type
 
Methods inherited from class edu.nyu.cs.pdsg.handshake.SecureChannelFactory
addFactoryClass, instance, instance, setFactoryClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider

private java.security.Provider provider
Constructor Detail

GenericPKISecureChannelFactory

protected GenericPKISecureChannelFactory(java.security.Provider _provider)
Initialize a PKI Secure Channel Factory with the given provider which will be used to create the secret key and associated channel. Users should not call this themselves. Instead use addPKIFactoryClass()

Parameters:
_provider - The provider used to handle the secret key communications
Method Detail

channel

public SecureChannel channel()
Initialize and return a chanel of the appropropriate type

Specified by:
channel in class SecureChannelFactory
Returns:
a channel ready to be connected

addPKIFactoryClass

public static void addPKIFactoryClass(java.lang.String name,
                                      java.security.Provider provider)
Initialize a PKI Channel Factory with the given provider and add it to the factory database with the given name. Effectively a utility function combining new GenericPKISecureChannelFactory() with SecureChannelFactory.setFactoryClass()

Parameters:
name - The name this factory class will be referenced by in SecureChannelFactory
provider - The provider used by the new SecureChannelFactory


Copyright (c) 2002-2003 New York University RLAB