com.atlassian.seraph.config
Class SecurityConfigFactory

java.lang.Object
  extended by com.atlassian.seraph.config.SecurityConfigFactory

public class SecurityConfigFactory
extends Object

Factory for SecurityConfig instances.


Method Summary
static SecurityConfig getInstance()
          Get a SecurityConfig instance.
static SecurityConfig getInstance(String configFileLocation)
          Get a SecurityConfig instance.
static void setSecurityConfig(SecurityConfig securityConfig)
          Set the SecurityConfig instance to return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SecurityConfig getInstance()
Get a SecurityConfig instance.

Returns:
A default implementation of SecurityConfig.
Throws:
RuntimeException - If loading the configuration failed.

getInstance

public static SecurityConfig getInstance(String configFileLocation)
Get a SecurityConfig instance.

Parameters:
configFileLocation - Path to config file resource (usu. 'seraph-config.xml')
Returns:
Throws:
RuntimeException - If loading the configuration failed.

setSecurityConfig

public static void setSecurityConfig(SecurityConfig securityConfig)
Set the SecurityConfig instance to return. Useful for unit tests.



Copyright © 2013 Atlassian. All Rights Reserved.