@Test public void testCipherSuites() throws Exception { URL config = getClass().getResource("test-wildfly-config-v1_5.xml"); SecurityFactory<AuthenticationContext> authContext = ElytronXmlParser.parseAuthenticationClientConfiguration(config.toURI()); Assert.assertNotNull(authContext); checkSSLContext(authContext, "http: checkSSLContext(authContext, "http: checkSSLContext(authContext, "http: }
public static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration() throws ConfigXMLParseException { final ClientConfiguration clientConfiguration = ClientConfiguration.getInstance(); if (clientConfiguration != null) try (final ConfigurationXMLStreamReader streamReader = clientConfiguration.readConfiguration(KNOWN_NAMESPACES.keySet())) { if (streamReader != null) { xmlLog.tracef("Parsing configuration from %s for namespace %s", streamReader.getUri(), streamReader.getNamespaceURI()); return parseAuthenticationClientConfiguration(streamReader); } else { if (xmlLog.isTraceEnabled()) { xmlLog.tracef("No configuration found for known namespaces '%s'", namespacesToString()); } } } xmlLog.trace("Fallback to parse legacy configuration."); return parseLegacyConfiguration(); }
ElytronXmlParser { public static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration() throws ConfigXMLParseException { final ClientConfiguration clientConfiguration = ClientConfiguration.getInstance(); if (clientConfiguration != null) try (final ConfigurationXMLStreamReader streamReader = clientConfiguration.readConfiguration(KNOWN_NAMESPACES.keySet())) { if (streamReader != null) { xmlLog.tracef("Parsing configuration from %s for namespace %s", streamReader.getUri(), streamReader.getNamespaceURI()); return parseAuthenticationClientConfiguration(streamReader); } else { if (xmlLog.isTraceEnabled()) { xmlLog.tracef("No configuration found for known namespaces '%s'", namespacesToString()); } } } xmlLog.trace("Fallback to parse legacy configuration."); return parseLegacyConfiguration(); } }
ElytronXmlParser { public static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration() throws ConfigXMLParseException { final ClientConfiguration clientConfiguration = ClientConfiguration.getInstance(); if (clientConfiguration != null) try (final ConfigurationXMLStreamReader streamReader = clientConfiguration.readConfiguration(KNOWN_NAMESPACES.keySet())) { if (streamReader != null) { xmlLog.tracef("Parsing configuration from %s for namespace %s", streamReader.getUri(), streamReader.getNamespaceURI()); return parseAuthenticationClientConfiguration(streamReader); } else { if (xmlLog.isTraceEnabled()) { xmlLog.tracef("No configuration found for known namespaces '%s'", namespacesToString()); } } } xmlLog.trace("Fallback to parse legacy configuration."); return parseLegacyConfiguration(); } private  ElytronXmlParser(); }
ElytronXmlParser { public static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration() throws ConfigXMLParseException { final ClientConfiguration clientConfiguration = ClientConfiguration.getInstance(); if (clientConfiguration != null) try (final ConfigurationXMLStreamReader streamReader = clientConfiguration.readConfiguration(KNOWN_NAMESPACES.keySet())) { if (streamReader != null) { xmlLog.tracef("Parsing configuration from %s for namespace %s", streamReader.getUri(), streamReader.getNamespaceURI()); return parseAuthenticationClientConfiguration(streamReader); } else { if (xmlLog.isTraceEnabled()) { xmlLog.tracef("No configuration found for known namespaces '%s'", namespacesToString()); } } } xmlLog.trace("Fallback to parse legacy configuration."); return parseLegacyConfiguration(); } private  ElytronXmlParser(); static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(); static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(URI uri); }
ElytronXmlParser { public static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration() throws ConfigXMLParseException { final ClientConfiguration clientConfiguration = ClientConfiguration.getInstance(); if (clientConfiguration != null) try (final ConfigurationXMLStreamReader streamReader = clientConfiguration.readConfiguration(KNOWN_NAMESPACES.keySet())) { if (streamReader != null) { xmlLog.tracef("Parsing configuration from %s for namespace %s", streamReader.getUri(), streamReader.getNamespaceURI()); return parseAuthenticationClientConfiguration(streamReader); } else { if (xmlLog.isTraceEnabled()) { xmlLog.tracef("No configuration found for known namespaces '%s'", namespacesToString()); } } } xmlLog.trace("Fallback to parse legacy configuration."); return parseLegacyConfiguration(); } private  ElytronXmlParser(); static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(); static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(URI uri);  }