Class BasicAuthenticator.Builder

  • Enclosing class:
    BasicAuthenticator

    public static class BasicAuthenticator.Builder
    extends java.lang.Object
    This Builder class is used to construct BasicAuthenticator instances.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public BasicAuthenticator build()
        Constructs a new instance of BasicAuthenticator from the builder's configuration.
        Returns:
        the BasicAuthenticator instance
      • username

        public BasicAuthenticator.Builder username​(java.lang.String username)
        Sets the username property.
        Parameters:
        username - the base auth username to include in the Authorization header
        Returns:
        the Builder
      • password

        public BasicAuthenticator.Builder password​(java.lang.String password)
        Sets the password property.
        Parameters:
        password - the basic auth password to include in the Authorization header
        Returns:
        the Builder