issrg.pba.management.manager.keyStoreSource
Class FilePMConfiguration

java.lang.Object
  extended by issrg.pba.management.manager.PMConfiguration
      extended by issrg.pba.management.manager.keyStoreSource.FilePMConfiguration

public class FilePMConfiguration
extends PMConfiguration

This class is a PMConfiguration that stores its key stores in files on the local file store.

The associated model class is FilePManagement.

It adds two properties, the NAME_IDENTITY_STORE_NAME and the NAME_TRUST_STORE_NAME to the properties Map.

And of course it implements the two input stream methods getIdentityStoreInputStream () and getTrustStoreInputStream ()

Version:
0.1.2008.01.18
Author:
mfb4@kent.ac.uk

Constructor Summary
FilePMConfiguration()
           
 
Method Summary
protected  java.io.InputStream getIdentityStoreInputStream()
          get the identity key store input stream.
protected  java.io.InputStream getTrustStoreInputStream()
          get the trust key store input stream.
protected  void load(java.util.Map<java.lang.String,java.lang.String> arguments)
          load in the PERMIS management configuration.
 
Methods inherited from class issrg.pba.management.manager.PMConfiguration
getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePMConfiguration

public FilePMConfiguration()
Method Detail

load

protected void load(java.util.Map<java.lang.String,java.lang.String> arguments)
             throws PMException
load in the PERMIS management configuration.

first this method calls the overwritten method.

then this method checks the command line arguments for key store file names.

Overrides:
load in class PMConfiguration
Parameters:
arguments - a string of command line arguments that override the settings in the management configuration file
Throws:
PMException - If loading form the XML file fails in the overridden load method
Since:
0.1.2008.01.18

getIdentityStoreInputStream

protected java.io.InputStream getIdentityStoreInputStream()
                                                   throws PMException
get the identity key store input stream.

Specified by:
getIdentityStoreInputStream in class PMConfiguration
Returns:
an input stream from the identity key store
Throws:
PMException - if there is a problem accessing the file
Since:
0.1.2008.01.28

getTrustStoreInputStream

protected java.io.InputStream getTrustStoreInputStream()
                                                throws PMException
get the trust key store input stream.

Specified by:
getTrustStoreInputStream in class PMConfiguration
Returns:
an input stream from the trust key store
Throws:
PMException - if there is a problem accessing the file that contains the trust key store
Since:
0.1.2008.01.23