Class HttpAuthMethod.Basic

  • Enclosing class:
    HttpAuthMethod

    private static class HttpAuthMethod.Basic
    extends HttpAuthMethod
    Performs HTTP basic authentication (plaintext username/password).
    • Field Detail

      • user

        private java.lang.String user
      • pass

        private java.lang.String pass
    • Constructor Detail

      • Basic

        public Basic()
    • Method Detail

      • authorize

        void authorize​(java.lang.String username,
                       java.lang.String password)
        Description copied from class: HttpAuthMethod
        Update this method with the given username and password pair.
        Specified by:
        authorize in class HttpAuthMethod
      • configureRequest

        void configureRequest​(HttpConnection conn)
                       throws java.io.IOException
        Description copied from class: HttpAuthMethod
        Update connection properties based on this authentication method.
        Specified by:
        configureRequest in class HttpAuthMethod
        Throws:
        java.io.IOException