undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentInfoService.java
private static List<AuthMethodConfig> authMethod(String configuredMethod) {
        if (configuredMethod == null) {
            return Collections.singletonList(new AuthMethodConfig(HttpServletRequest.BASIC_AUTH));
        }
        return AuthMethodParser.parse(configuredMethod, Collections.singletonMap("CLIENT-CERT", HttpServletRequest.CLIENT_CERT_AUTH));
    }
private static List<AuthMethodConfig> authMethod(String configuredMethod) {
        if (configuredMethod == null) {
            return Collections.singletonList(new AuthMethodConfig(HttpServletRequest.BASIC_AUTH));
        }
        return AuthMethodParser.parse(configuredMethod, Collections.singletonMap("CLIENT-CERT", HttpServletRequest.CLIENT_CERT_AUTH));
    }
private static List < AuthMethodConfig > authMethod ( String configuredMethod ) { if ( configuredMethod == null ) { return Collections . singletonList ( new AuthMethodConfig ( HttpServletRequest . BASIC_AUTH ) ) ; } return AuthMethodParser . parse ( configuredMethod , Collections . singletonMap ( "CLIENT-CERT" , HttpServletRequest . CLIENT_CERT_AUTH ) ) ; }
Convert the authentication method name from the format specified in the web.xml to the format used by
{@link javax.servlet.http.HttpServletRequest}.
<p/>
If the auth method is not recognised then it is returned as-is.

@return The converted auth method.
@throws NullPointerException if no configuredMethod is supplied.
Convert the authentication method name from the format specified in the web . xml to the format used by { @link javax . servlet . http . HttpServletRequest } . <p / > If the auth method is not recognised then it is returned as - is .