Search in sources :

Example 1 with KerberosSchemeFactory

use of org.apache.http.impl.auth.KerberosSchemeFactory in project apex-core by apache.

the class WebServicesClient method initAuth.

public static void initAuth(ConfigProvider configuration) {
    // Setting up BASIC and DIGEST auth
    setupUserPassAuthScheme(AuthScheme.BASIC, AuthSchemes.BASIC, new BasicSchemeFactory(), configuration);
    setupUserPassAuthScheme(AuthScheme.DIGEST, AuthSchemes.DIGEST, new DigestSchemeFactory(), configuration);
    // Adding kerberos standard auth
    setupHttpAuthScheme(AuthSchemes.KERBEROS, new KerberosSchemeFactory(), AuthScope.ANY, DEFAULT_TOKEN_CREDENTIALS);
    authRegistry = registryBuilder.build();
}
Also used : BasicSchemeFactory(org.apache.http.impl.auth.BasicSchemeFactory) KerberosSchemeFactory(org.apache.http.impl.auth.KerberosSchemeFactory) DigestSchemeFactory(org.apache.http.impl.auth.DigestSchemeFactory)

Aggregations

BasicSchemeFactory (org.apache.http.impl.auth.BasicSchemeFactory)1 DigestSchemeFactory (org.apache.http.impl.auth.DigestSchemeFactory)1 KerberosSchemeFactory (org.apache.http.impl.auth.KerberosSchemeFactory)1