/** * Parse a Elytron authentication client configuration from a configuration XML reader. * * @param reader the XML stream reader * @return the authentication context factory * @throws ConfigXMLParseException if the resource failed to be parsed */ static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { if (reader.hasNext()) { switch (reader.nextTag()) { case START_ELEMENT: { Version xmlVersion = KNOWN_NAMESPACES.get(checkGetElementNamespace(reader)); switch (reader.getLocalName()) { case "authentication-client": { return parseAuthenticationClientType(reader, xmlVersion); } default: { throw reader.unexpectedElement(); } } } default: { throw reader.unexpectedContent(); } } } xmlLog.trace("No authentication-client element found, falling back to empty AuthenticationContext"); return AuthenticationContext::empty; }
/** * Parse a Elytron authentication client configuration from a configuration XML reader. * * @param reader the XML stream reader * @return the authentication context factory * @throws ConfigXMLParseException if the resource failed to be parsed */ static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { if (reader.hasNext()) { switch (reader.nextTag()) { case START_ELEMENT: { Version xmlVersion = KNOWN_NAMESPACES.get(checkGetElementNamespace(reader)); switch (reader.getLocalName()) { case "authentication-client": { return parseAuthenticationClientType(reader, xmlVersion); } default: { throw reader.unexpectedElement(); } } } default: { throw reader.unexpectedContent(); } } } xmlLog.trace("No authentication-client element found, falling back to empty AuthenticationContext"); return AuthenticationContext::empty; }
/** * Parse a Elytron authentication client configuration from a configuration XML reader. * * @param reader the XML stream reader * @return the authentication context factory * @throws ConfigXMLParseException if the resource failed to be parsed */ static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { if (reader.hasNext()) { switch (reader.nextTag()) { case START_ELEMENT: { Version xmlVersion = KNOWN_NAMESPACES.get(checkGetElementNamespace(reader)); switch (reader.getLocalName()) { case "authentication-client": { return parseAuthenticationClientType(reader, xmlVersion); } default: { throw reader.unexpectedElement(); } } } default: { throw reader.unexpectedContent(); } } } xmlLog.trace("No authentication-client element found, falling back to empty AuthenticationContext"); return AuthenticationContext::empty; }
/** * Parse a Elytron authentication client configuration from a configuration XML reader. * * @param reader the XML stream reader * @return the authentication context factory * @throws ConfigXMLParseException if the resource failed to be parsed */ static SecurityFactory<AuthenticationContext> parseAuthenticationClientConfiguration(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { if (reader.hasNext()) { switch (reader.nextTag()) { case START_ELEMENT: { Version xmlVersion = KNOWN_NAMESPACES.get(checkGetElementNamespace(reader)); switch (reader.getLocalName()) { case "authentication-client": { return parseAuthenticationClientType(reader, xmlVersion); } default: { throw reader.unexpectedElement(); } } } default: { throw reader.unexpectedContent(); } } } xmlLog.trace("No authentication-client element found, falling back to empty AuthenticationContext"); return AuthenticationContext::empty; }