Class BasicSchemeFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicSchemeFactory()
      Constructs a new BasicSchemeFactory with StandardCharsets.UTF_8 as the charset.
      BasicSchemeFactory​(java.nio.charset.Charset charset)
      Deprecated.
      This constructor is deprecated to enforce the use of StandardCharsets.UTF_8 encoding in compliance with RFC 7617 for HTTP Basic Authentication.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AuthScheme create​(org.apache.hc.core5.http.protocol.HttpContext context)
      Creates an instance of AuthScheme.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicSchemeFactory

        @Deprecated
        public BasicSchemeFactory​(java.nio.charset.Charset charset)
        Deprecated.
        This constructor is deprecated to enforce the use of StandardCharsets.UTF_8 encoding in compliance with RFC 7617 for HTTP Basic Authentication. Use the default constructor BasicSchemeFactory() instead.
        Parameters:
        charset - the Charset set to be used for encoding credentials. This parameter is ignored as UTF-8 is always used.
      • BasicSchemeFactory

        public BasicSchemeFactory()
        Constructs a new BasicSchemeFactory with StandardCharsets.UTF_8 as the charset. This default setting aligns with standard practices for encoding credentials in Basic Authentication.