gov.lanl.SSLTools
Class ServiceFactory

java.lang.Object
  |
  +--gov.lanl.SSLTools.ServiceFactory

public class ServiceFactory
extends java.lang.Object

Factory for creating the various client/server services, with/out SSL services. The classes instantiated have the responsibility of enforcing there own rules.

 

Field Summary
static java.lang.String ALLOW_INSECURE_CONNECTIONS
          Server/Client may allow insecure connections if true
static java.lang.String IPADDRESS
          The internalname for the IP address whose value is a string representing the IP address
static java.lang.String IS_SERVER
          The property keyword for indicating use by a server, otherwise client
static java.lang.String KEY_ALIAS
          The property keyword for the alias to use in the keystore
static java.lang.String KEY_PASSWORD
          The property keyword for the alias's password
static java.lang.String KEYFIELD4RAD
          The internal name for the key field in the subjectDN and the quotedID which is used for the RAD
static java.lang.String KEYSTORE_PATH
          The property keyword for the path to the keystore
static java.lang.String QUOTEDID
          The internal name for the quoted data whose value is a string form of something like the SubjectDN
static java.lang.String RADSERVERNAME4AC
          The name of the rad server to use in the access decision via interceptor
static java.lang.String RESOURCENAMEPREFIX4AC
          The default resource string for the access decision via interceptor
static java.lang.String SECURITY_LEVEL
          The security level to create with the factory.
static java.lang.String[][] SECURITY_LEVELS
          Supported values for SECURITY_LEVEL and associated classes
static java.lang.String X509SUBJECTDN
          The internal name for the X509 SubjectDN whose value is string form of the X509 SubjectDN
 
Constructor Summary
ServiceFactory()
          Default constructor
 
Method Summary
 gov.lanl.SSLTools.ServiceInterface createServiceInterface(java.lang.String[] inArgs)
          Create the ServiceInterface specified by the command line arguments and the ORBServices.properties.
 gov.lanl.SSLTools.ServiceInterface createServiceInterface(java.lang.String[] inArgs, java.util.Properties inProps)
          Create the ServiceInterface specified by the properties along with the command line arguments.
 gov.lanl.SSLTools.ServiceInterface createServiceInterfaceClass(java.lang.String inSecurityLevel)
          Instantiates a service interface class via the default constructor, does not set any options or call the service interfaces init method.
static java.util.Properties getFactoryProperties()
          Return the properties created by this factory
static gov.lanl.SSLTools.ServiceInterface getSSLService()
          Return the last ServiceInterface created
 void setApplet(java.applet.Applet inApplet)
          Set up for an applet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURITY_LEVEL

public static java.lang.String SECURITY_LEVEL
The security level to create with the factory.


SECURITY_LEVELS

public static java.lang.String[][] SECURITY_LEVELS
Supported values for SECURITY_LEVEL and associated classes


KEYSTORE_PATH

public static java.lang.String KEYSTORE_PATH
The property keyword for the path to the keystore


KEY_ALIAS

public static java.lang.String KEY_ALIAS
The property keyword for the alias to use in the keystore


KEY_PASSWORD

public static java.lang.String KEY_PASSWORD
The property keyword for the alias's password


IS_SERVER

public static java.lang.String IS_SERVER
The property keyword for indicating use by a server, otherwise client


ALLOW_INSECURE_CONNECTIONS

public static java.lang.String ALLOW_INSECURE_CONNECTIONS
Server/Client may allow insecure connections if true


RADSERVERNAME4AC

public static java.lang.String RADSERVERNAME4AC
The name of the rad server to use in the access decision via interceptor


RESOURCENAMEPREFIX4AC

public static java.lang.String RESOURCENAMEPREFIX4AC
The default resource string for the access decision via interceptor


X509SUBJECTDN

public static java.lang.String X509SUBJECTDN
The internal name for the X509 SubjectDN whose value is string form of the X509 SubjectDN


QUOTEDID

public static java.lang.String QUOTEDID
The internal name for the quoted data whose value is a string form of something like the SubjectDN


IPADDRESS

public static java.lang.String IPADDRESS
The internalname for the IP address whose value is a string representing the IP address


KEYFIELD4RAD

public static java.lang.String KEYFIELD4RAD
The internal name for the key field in the subjectDN and the quotedID which is used for the RAD

Constructor Detail

ServiceFactory

public ServiceFactory()
Default constructor

Method Detail

setApplet

public void setApplet(java.applet.Applet inApplet)
Set up for an applet

Parameters:
inApplet - is the applet using the factory

getSSLService

public static gov.lanl.SSLTools.ServiceInterface getSSLService()
Return the last ServiceInterface created

Returns:
the service interface

getFactoryProperties

public static java.util.Properties getFactoryProperties()
Return the properties created by this factory

Returns:
the properties

createServiceInterfaceClass

public gov.lanl.SSLTools.ServiceInterface createServiceInterfaceClass(java.lang.String inSecurityLevel)
                                                               throws ServiceException
Instantiates a service interface class via the default constructor, does not set any options or call the service interfaces init method.

Throws:
ServiceException
Parameters:
inSecurityLevel - is the identifier which selects which service interface to instantiate

createServiceInterface

public gov.lanl.SSLTools.ServiceInterface createServiceInterface(java.lang.String[] inArgs,
                                                                 java.util.Properties inProps)
                                                          throws ServiceException
Create the ServiceInterface specified by the properties along with the command line arguments. The command line args are only used by the ORB creation call, all of the security keywords are obtained from the properties.

Throws:
ServiceException
Parameters:
inArgs - are the command line arguments
inProps - are the properties
Returns:
a service interface created from the properties and command line arguments

createServiceInterface

public gov.lanl.SSLTools.ServiceInterface createServiceInterface(java.lang.String[] inArgs)
                                                          throws ServiceException
Create the ServiceInterface specified by the command line arguments and the ORBServices.properties. First reads the ORBServices.properties file, then overides them from the command line.

Throws:
ServiceException
Parameters:
inArgs - are the command line arguments
Returns:
a service interface created from the Security.properties and command line arguments