Class Proxy


  • public class Proxy
    extends java.lang.Object
    HTTP proxy server communication settings, used if the Okta SDK Client must communicate through an HTTP Proxy.
    Since:
    0.5.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Proxy​(java.lang.String host, int port)
      Creates a instance reflecting an HTTP proxy server that does not require authentication.
      Proxy​(java.lang.String host, int port, java.lang.String username, java.lang.String password)
      Creates an instance reflecting an HTTP proxy server that requires username/password authentication.
    • Constructor Detail

      • Proxy

        public Proxy​(java.lang.String host,
                     int port)
        Creates a instance reflecting an HTTP proxy server that does not require authentication.
        Parameters:
        host - the proxy server host.
        port - the proxy server host port.
      • Proxy

        public Proxy​(java.lang.String host,
                     int port,
                     java.lang.String username,
                     java.lang.String password)
        Creates an instance reflecting an HTTP proxy server that requires username/password authentication.
        Parameters:
        host - the proxy server host.
        port - the proxy server host port.
        username - the username to use when authenticating with the proxy server.
        password - the password to use when authenticating with the proxy server.
    • Method Detail

      • getHost

        public java.lang.String getHost()
      • getPort

        public int getPort()
      • getUsername

        public java.lang.String getUsername()
      • getPassword

        public java.lang.String getPassword()
      • isAuthenticationRequired

        public boolean isAuthenticationRequired()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object