Class KerberosSchemeFactory
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.KerberosSchemeFactory
-
- All Implemented Interfaces:
AuthSchemeFactory
@Contract(threading=STATELESS) @Experimental public class KerberosSchemeFactory extends java.lang.Object implements AuthSchemeFactory
AuthSchemeFactoryimplementation that creates and initializesKerberosSchemeinstances.Please note this class is considered experimental and may be discontinued or removed in the future.
- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description private KerberosConfigconfigstatic KerberosSchemeFactoryDEFAULTSingleton instance for the default configuration.private DnsResolverdnsResolver
-
Constructor Summary
Constructors Constructor Description KerberosSchemeFactory(KerberosConfig config, DnsResolver dnsResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthSchemecreate(org.apache.hc.core5.http.protocol.HttpContext context)Creates an instance ofAuthScheme.
-
-
-
Field Detail
-
DEFAULT
public static final KerberosSchemeFactory DEFAULT
Singleton instance for the default configuration.
-
config
private final KerberosConfig config
-
dnsResolver
private final DnsResolver dnsResolver
-
-
Constructor Detail
-
KerberosSchemeFactory
public KerberosSchemeFactory(KerberosConfig config, DnsResolver dnsResolver)
- Since:
- 5.0
-
-
Method Detail
-
create
public AuthScheme create(org.apache.hc.core5.http.protocol.HttpContext context)
Description copied from interface:AuthSchemeFactoryCreates an instance ofAuthScheme.- Specified by:
createin interfaceAuthSchemeFactory- Returns:
- auth scheme.
-
-