org.opensaml
Class SAMLConfig

java.lang.Object
  extended byorg.opensaml.SAMLConfig

public class SAMLConfig
extends Object

OpenSAML configuration bundle. Implemented as a singleton.

Author:
Walter Hoehn (wassa@columbia.edu)

Field Summary
protected  Properties properties
           
 
Constructor Summary
protected SAMLConfig()
           
 
Method Summary
 boolean getBooleanProperty(String key)
          Gets a binary library configuration property in boolean form
 String getDefaultBindingProvider(String binding)
           
 SAMLIdentifier getDefaultIDProvider()
          Returns the default provider of the SAMLIdentifier interface
 int getIntProperty(String key)
          Gets a binary library configuration property in boolean form
 String getProperty(String key)
          Gets a library configuration property
static SAMLConfig instance()
          Returns the active OpenSAML configuration.
 void loadProperties(InputStream inStream)
          Enables a set of configuration properties.
 void setBooleanProperty(String key, Boolean value)
          Sets a binary library configuration property in boolean form
 void setDefaultBindingProvider(String binding, String provider)
           
 void setIntProperty(String key, int value)
          Sets a binary library configuration property in boolean form
 void setProperties(Properties properties)
          Enables a set of configuration properties.
 void setProperty(String key, 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 Properties properties
Constructor Detail

SAMLConfig

protected SAMLConfig()
Method Detail

instance

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

Returns:
SAMLConfig

getDefaultIDProvider

public SAMLIdentifier getDefaultIDProvider()
Returns the default provider of the SAMLIdentifier interface

Returns:
the default provider

getDefaultBindingProvider

public String getDefaultBindingProvider(String binding)

setDefaultBindingProvider

public void setDefaultBindingProvider(String binding,
                                      String provider)

setProperties

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

Parameters:
properties - the configuration properties to be enabled

loadProperties

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

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

setProperty

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

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

getProperty

public String getProperty(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(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(String key,
                               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

getIntProperty

public int getIntProperty(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

setIntProperty

public void setIntProperty(String key,
                           int 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


Copyright ? 2005 UCAID. All Rights Reserved.