Package com.ngrok

Class Http.BasicAuth

  • Enclosing interface:
    Http

    public static class Http.BasicAuth
    extends Object
    Represents basic authentication options for an HTTP listener.
    See Also:
    Basic Auth in the ngrok docs for additional details.
    • Constructor Detail

      • BasicAuth

        public BasicAuth​(String username,
                         String password)
        Constructs a new set of basic authentication options with the specified username and password.
        Parameters:
        username - the username
        password - the password
    • Method Detail

      • getUsername

        public String getUsername()
        Returns the username for basic auth.
        Returns:
        the username
      • getPassword

        public String getPassword()
        Returns the password for basic auth.
        Returns:
        the password