Class DigestSchemeFactory
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.DigestSchemeFactory
-
- All Implemented Interfaces:
AuthSchemeFactory
@Contract(threading=STATELESS) public class DigestSchemeFactory extends java.lang.Object implements AuthSchemeFactory
AuthSchemeFactoryimplementation that creates and initializesDigestSchemeinstances.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static DigestSchemeFactoryINSTANCEDefault instance ofDigestSchemeFactory.
-
Constructor Summary
Constructors Constructor Description DigestSchemeFactory()DigestSchemeFactory(java.nio.charset.Charset charset)Deprecated.This constructor is deprecated to enforce the use ofStandardCharsets.UTF_8encoding in compliance with RFC 7616 for HTTP Digest Access Authentication.
-
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
-
INSTANCE
public static final DigestSchemeFactory INSTANCE
Default instance ofDigestSchemeFactory.
-
-
Constructor Detail
-
DigestSchemeFactory
@Deprecated public DigestSchemeFactory(java.nio.charset.Charset charset)
Deprecated.This constructor is deprecated to enforce the use ofStandardCharsets.UTF_8encoding in compliance with RFC 7616 for HTTP Digest Access Authentication. Use the default constructorDigestSchemeFactory()instead.- Parameters:
charset- theCharsetset to be used for encoding credentials. This parameter is ignored as UTF-8 is always used.
-
DigestSchemeFactory
public DigestSchemeFactory()
-
-
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.
-
-