@@ -0,0 +1,1806 @@
+/*%0A * JBoss, Home of Professional Open Source.%0A * Copyright 2015 Red Hat, Inc., and individual contributors%0A * as indicated by the @author tags.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.wildfly.security.http;%0A%0Aimport java.util.Map;%0A%0Aimport javax.security.auth.callback.CallbackHandler;%0A%0A/**%0A * Factory to create authentication mechanisms.%0A *%0A * @author %3Ca href=%22mailto:darran.lofthouse@jboss.com%22%3EDarran Lofthouse%3C/a%3E%0A */%0Apublic interface HttpServerAuthenticationMechanismFactory %7B%0A%0A    /**%0A     * Get the names of the HTTP authentication mechanisms that can be supplied by this factory filtered by the supplied%0A     * properties.%0A     *%0A     * @param properties the selection criteria for the mechanisms.%0A     * @return the names of the supported HTTP authentication mechanisms.%0A     */%0A    String%5B%5D getMechanismNames(Map%3CString, ?%3E properties);%0A%0A%0A    /**%0A     * Obtain an instance of the authentication mechanism requested provided this is allowed by any policy specified within the supplied properties.%0A     *%0A     * @param mechanismName%0A     * @param properties%0A     * @param callbackHandler%0A     * @return%0A     */%0A    HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map%3CString, ?%3E properties, CallbackHandler callbackHandler);%0A%0A%7D%0A

Add the factory API/SPI for HTTP authentication mechanisms.