Java Code Examples for org.apache.xml.security.Init#isInitialized()
The following examples show how to use
org.apache.xml.security.Init#isInitialized() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigurationModuleXmlSec.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public void init(Configuration config) throws TechnicalConnectorException { LOG.debug("Initializing ConfigurationModule " + this.getClass().getName()); if (!Init.isInitialized()) { LOG.info("Initializing xmlsec"); Init.init(); LOG.info("Setting jsr105Provider with value [org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI]"); this.oldValues.put("jsr105Provider", System.getProperty("jsr105Provider")); System.setProperty("jsr105Provider", "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI"); } }
Example 2
Source File: ConfigurationModuleXmlSec.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public void init(Configuration config) throws TechnicalConnectorException { LOG.debug("Initializing ConfigurationModule " + this.getClass().getName()); if (!Init.isInitialized()) { LOG.info("Initializing xmlsec"); Init.init(); LOG.info("Setting jsr105Provider with value [org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI]"); this.oldValues.put("jsr105Provider", System.getProperty("jsr105Provider")); System.setProperty("jsr105Provider", "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI"); } }
Example 3
Source File: ConfigurationModuleXmlSec.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public void init(Configuration config) throws TechnicalConnectorException { LOG.debug("Initializing ConfigurationModule " + this.getClass().getName()); if (!Init.isInitialized()) { LOG.info("Initializing xmlsec"); Init.init(); LOG.info("Setting jsr105Provider with value [org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI]"); this.oldValues.put("jsr105Provider", System.getProperty("jsr105Provider")); System.setProperty("jsr105Provider", "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI"); } }
Example 4
Source File: ConfigurationModuleXmlSec.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public void init(Configuration config) throws TechnicalConnectorException { LOG.debug("Initializing ConfigurationModule " + this.getClass().getName()); if (!Init.isInitialized()) { LOG.info("Initializing xmlsec"); Init.init(); LOG.info("Setting jsr105Provider with value [org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI]"); this.oldValues.put("jsr105Provider", System.getProperty("jsr105Provider")); System.setProperty("jsr105Provider", "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI"); } }
Example 5
Source File: ConfigurationModuleXmlSec.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public void init(Configuration config) throws TechnicalConnectorException { LOG.debug("Initializing ConfigurationModule " + this.getClass().getName()); if (!Init.isInitialized()) { LOG.info("Initializing xmlsec"); Init.init(); LOG.info("Setting jsr105Provider with value [org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI]"); this.oldValues.put("jsr105Provider", System.getProperty("jsr105Provider")); System.setProperty("jsr105Provider", "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI"); } }
Example 6
Source File: SignatureUnmarshaller.java From lams with GNU General Public License v2.0 | 5 votes |
/** Constructor. */ public SignatureUnmarshaller() { if (!Init.isInitialized()) { log.debug("Initializing XML security library"); Init.init(); } }
Example 7
Source File: SignatureMarshaller.java From lams with GNU General Public License v2.0 | 5 votes |
/** Constructor. */ public SignatureMarshaller() { if (!Init.isInitialized()) { log.debug("Initializing XML security library"); Init.init(); } }
Example 8
Source File: DefaultBootstrap.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Initializes the Apache XMLSecurity libary. * * @throws ConfigurationException thrown is there is a problem initializing the library */ protected static void initializeXMLSecurity() throws ConfigurationException { Logger log = getLogger(); String lineBreakPropName = "org.apache.xml.security.ignoreLineBreaks"; // Don't override if it was set explicitly if (System.getProperty(lineBreakPropName) == null) { System.setProperty(lineBreakPropName, "true"); } if (!Init.isInitialized()) { log.debug("Initializing Apache XMLSecurity library"); Init.init(); } }
Example 9
Source File: SantuarioInitializer.java From dss with GNU Lesser General Public License v2.1 | 5 votes |
/** * Method isInitialized * * @return true if the library is already initialized. */ public static final synchronized boolean isInitialized() { if (Init.isInitialized()) { LOG.info("Santuario is already initialized with its default configuration"); return true; } return SantuarioInitializer.alreadyInitialized; }