Class DigestSchemeFactory
java.lang.Object
org.apache.hc.client5.http.impl.auth.DigestSchemeFactory
- All Implemented Interfaces:
AuthSchemeFactory
@Contract(threading=STATELESS)
public class DigestSchemeFactory
extends Object
implements AuthSchemeFactory
AuthSchemeFactory implementation that creates and initializes
DigestScheme instances.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DigestSchemeFactoryDefault instance ofDigestSchemeFactory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(org.apache.hc.core5.http.protocol.HttpContext context) Creates an instance ofAuthScheme.
-
Field Details
-
INSTANCE
Default instance ofDigestSchemeFactory.
-
-
Constructor Details
-
DigestSchemeFactory
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 Details
-
create
Description copied from interface:AuthSchemeFactoryCreates an instance ofAuthScheme.- Specified by:
createin interfaceAuthSchemeFactory- Returns:
- auth scheme.
-
StandardCharsets.UTF_8encoding in compliance with RFC 7616 for HTTP Digest Access Authentication.