issrg.dis
Class DISCore.DISConfig

java.lang.Object
  extended by issrg.dis.DISCore.DISConfig
Direct Known Subclasses:
TestDS.TestDISConfig
Enclosing class:
DISCore

public static class DISCore.DISConfig
extends java.lang.Object


Field Summary
protected static java.lang.String config_file
           
protected  java.lang.String CredentialLocation
           
protected  java.lang.String CredentialLocationPW
           
protected  java.lang.String CredentialLocationUsername
           
protected  java.lang.String DIS
           
protected  boolean downgradeable
           
protected  java.lang.String LDAP_AC_Attribute
           
protected  java.lang.String LDAP_PKC_Attribute
           
protected  Level level
           
protected  java.lang.String log_file
           
protected  java.lang.String PolicyIdentifier
           
protected  java.lang.String PolicyIssuer
           
protected  java.lang.String PolicyLocation
           
protected  java.lang.String PolicyLocationPW
           
protected  java.lang.String PolicyLocationUsername
           
protected  java.lang.String priority
           
protected  java.lang.String RootPKC
           
protected  java.lang.String SearchRequestor
           
protected static java.lang.String serial_file
           
protected  java.lang.String SigningKeyFile
           
protected  java.lang.String SigningKeyPW
           
protected  java.util.Vector trustedProxy
           
 
Constructor Summary
DISCore.DISConfig()
           
DISCore.DISConfig(java.lang.String path)
           
 
Method Summary
 AttributeRepository getCredRepository()
           
 DISCore.Repository getLDAPUtility()
           
 java.io.OutputStream getLogStream()
           
 java.io.File getSerialFile()
          This method returns the filename where the serial number is stored.
protected  boolean process(java.lang.String left, java.lang.String right)
          This method is used to process a pair of variable name and value read from config file.
protected  void readConfigFile()
          This method reads configuration parameters from configuration file for DIS.
protected  void readConfigFile(java.io.InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config_file

protected static final java.lang.String config_file
See Also:
Constant Field Values

serial_file

protected static final java.lang.String serial_file
See Also:
Constant Field Values

LDAP_AC_Attribute

protected java.lang.String LDAP_AC_Attribute

RootPKC

protected java.lang.String RootPKC

PolicyIssuer

protected java.lang.String PolicyIssuer

LDAP_PKC_Attribute

protected java.lang.String LDAP_PKC_Attribute

PolicyLocation

protected java.lang.String PolicyLocation

PolicyLocationUsername

protected java.lang.String PolicyLocationUsername

PolicyLocationPW

protected java.lang.String PolicyLocationPW

DIS

protected java.lang.String DIS

PolicyIdentifier

protected java.lang.String PolicyIdentifier

CredentialLocation

protected java.lang.String CredentialLocation

CredentialLocationUsername

protected java.lang.String CredentialLocationUsername

CredentialLocationPW

protected java.lang.String CredentialLocationPW

downgradeable

protected boolean downgradeable

SigningKeyFile

protected java.lang.String SigningKeyFile

SigningKeyPW

protected java.lang.String SigningKeyPW

log_file

protected java.lang.String log_file

SearchRequestor

protected java.lang.String SearchRequestor

level

protected Level level

priority

protected java.lang.String priority

trustedProxy

protected java.util.Vector trustedProxy
Constructor Detail

DISCore.DISConfig

public DISCore.DISConfig()
                  throws java.lang.Exception
Throws:
java.lang.Exception

DISCore.DISConfig

public DISCore.DISConfig(java.lang.String path)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

readConfigFile

protected void readConfigFile()
                       throws java.lang.Exception
This method reads configuration parameters from configuration file for DIS.

Throws:
java.lang.Exception

readConfigFile

protected void readConfigFile(java.io.InputStream inputStream)
                       throws java.lang.Exception
Throws:
java.lang.Exception

process

protected boolean process(java.lang.String left,
                          java.lang.String right)
                   throws java.lang.Exception
This method is used to process a pair of variable name and value read from config file. DISConfig subclasses can override the method to add more variables, and should return true for those variable names that they understand.

Parameters:
left - the variable name
right - the variable value
Returns:
true, if the variable name and value is accepted
Throws:
java.lang.Exception

getLDAPUtility

public DISCore.Repository getLDAPUtility()

getCredRepository

public AttributeRepository getCredRepository()

getLogStream

public java.io.OutputStream getLogStream()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getSerialFile

public java.io.File getSerialFile()
This method returns the filename where the serial number is stored. For Tomcat, this is computed relative to the resource location; this must work, because the classes are expanded onto the filesystem, even though I don't like this approach, but that's how Tuan Anh did it.