org.opensaml
Class SAMLConfig

java.lang.Object
  extended byorg.opensaml.SAMLConfig

public class SAMLConfig
extends java.lang.Object

OpenSAML configuration bundle. Implemented as a singleton.

Author:
Walter Hoehn (wassa@columbia.edu)

Field Summary
protected  java.util.Properties properties
           
 
Constructor Summary
protected SAMLConfig()
           
 
Method Summary
 boolean getBooleanProperty(java.lang.String key)
          Gets a binary library configuration property in boolean form
 java.lang.String getProperty(java.lang.String key)
          Gets a library configuration property
static SAMLConfig instance()
          Returns the active OpenSAML configuration.
 void loadProperties(java.io.InputStream inStream)
          Enables a set of configuration properties.
 void refresh()
          Refreshes state of library regarding SAML compatibility mode
 void setBooleanProperty(java.lang.String key, java.lang.Boolean value)
          Sets a binary library configuration property in boolean form
 void setProperties(java.util.Properties properties)
          Enables a set of configuration properties.
 void setProperty(java.lang.String key, java.lang.String value)
          Sets a library configuration property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected java.util.Properties properties
Constructor Detail

SAMLConfig

protected SAMLConfig()
Method Detail

instance

public static SAMLConfig instance()
Returns the active OpenSAML configuration.

Returns:
SAMLConfig

setProperties

public void setProperties(java.util.Properties properties)
Enables a set of configuration properties.

Parameters:
properties - the configuration properties to be enabled

loadProperties

public void loadProperties(java.io.InputStream inStream)
                    throws java.io.IOException
Enables a set of configuration properties.

Parameters:
inStream - an InputStream from which a java properties file can be obtained.
Throws:
java.io.IOException

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Sets a library configuration property

Parameters:
key - A property name
value - The value to set

getProperty

public java.lang.String getProperty(java.lang.String key)
Gets a library configuration property

Parameters:
key - A property name
Returns:
The property's value, or null if the property isn't set

getBooleanProperty

public boolean getBooleanProperty(java.lang.String key)
Gets a binary library configuration property in boolean form

Parameters:
key - A property name
Returns:
The property's boolean value, or false if the property isn't set

setBooleanProperty

public void setBooleanProperty(java.lang.String key,
                               java.lang.Boolean value)
Sets a binary library configuration property in boolean form

Parameters:
key - A property name
Returns:
The property's boolean value, or false if the property isn't set

refresh

public void refresh()
Refreshes state of library regarding SAML compatibility mode



Copyright ? 2002 UCAID. All Rights Reserved.