public class SecurityConfigUtil extends Object
SecurityConfigUtil
This class allows the loading of a security implementation by a security context name.
The security context name has to be specified in security.properties by the property name:
security.context=
The setup of custom security implementations can be customized in the security.xml file.| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityConfigUtil.SecurityInfo
SecurityInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_CONFIG_XML_FILENAME
The security config filename
|
protected static Map<String,SecurityConfigUtil.SecurityInfo> |
securityInfos |
| Constructor and Description |
|---|
SecurityConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SecurityConfigUtil.SecurityInfo |
getSecurityInfo(String name)
Returns the security config for a given name
|
static Document |
getXmlDocument()
Returns the XmlDocument for the security config
|
static Element |
getXmlRootElement()
Returns the XmlRootElement for the security config
|
static void |
initialize(Element rootElement)
Initializes the security configuration
|
public static final String SECURITY_CONFIG_XML_FILENAME
protected static Map<String,SecurityConfigUtil.SecurityInfo> securityInfos
public static Element getXmlRootElement() throws GenericConfigException
GenericConfigExceptionpublic static Document getXmlDocument() throws GenericConfigException
GenericConfigExceptionpublic static void initialize(Element rootElement) throws GenericConfigException
rootElement - GenericConfigExceptionpublic static SecurityConfigUtil.SecurityInfo getSecurityInfo(String name)
name - Copyright © 2018 Atlassian. All rights reserved.