Java Code Examples for net.shibboleth.utilities.java.support.xml.BasicParserPool#initialize()
The following examples show how to use
net.shibboleth.utilities.java.support.xml.BasicParserPool#initialize() .
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: SamlHTTPMetadataResolver.java From deprecated-security-advanced-modules with Apache License 2.0 | 5 votes |
SamlHTTPMetadataResolver(Settings esSettings, Path configPath) throws Exception { super(createHttpClient(esSettings, configPath), esSettings.get("idp.metadata_url")); setId(HTTPSamlAuthenticator.class.getName() + "_" + (++componentIdCounter)); setRequireValidMetadata(true); setFailFastInitialization(false); setMinRefreshDelay(esSettings.getAsLong("idp.min_refresh_delay", 60L * 1000L)); setMaxRefreshDelay(esSettings.getAsLong("idp.max_refresh_delay", 14400000L)); setRefreshDelayFactor(esSettings.getAsFloat("idp.refresh_delay_factor", 0.75f)); BasicParserPool basicParserPool = new BasicParserPool(); basicParserPool.initialize(); setParserPool(basicParserPool); }
Example 2
Source File: SamlFilesystemMetadataResolver.java From deprecated-security-advanced-modules with Apache License 2.0 | 5 votes |
SamlFilesystemMetadataResolver(Settings esSettings, Path configPath) throws Exception { super(getMetadataFile(esSettings, configPath)); setId(SamlFilesystemMetadataResolver.class.getName() + "_" + (++componentIdCounter)); setRequireValidMetadata(true); BasicParserPool basicParserPool = new BasicParserPool(); basicParserPool.initialize(); setParserPool(basicParserPool); }
Example 3
Source File: SamlClient.java From saml-client with MIT License | 5 votes |
private static BasicParserPool createDOMParser() throws SamlException { BasicParserPool basicParserPool = new BasicParserPool(); try { basicParserPool.initialize(); } catch (ComponentInitializationException e) { throw new SamlException("Failed to create an XML parser"); } return basicParserPool; }