Class AuthenticationScope

java.lang.Object
com.luciad.loaders.AuthenticationScope
All Implemented Interfaces:
AutoCloseable

public final class AuthenticationScope extends Object implements AutoCloseable
Represents the scope of an authentication request.
  • Constructor Details Link icon

    • AuthenticationScope Link icon

      public AuthenticationScope(@NotNull String host, int port, @NotNull String realm, @NotNull String scheme, @NotNull AuthenticationType type)
      Constructor for the scope of an authentication request.
      Parameters:
      host - the host name of the site or proxy.
      port - the port number of the connection.
      realm - the real of the authentication request.
      scheme - the scheme of the authentication request.
      type - whether the scope is a server or a proxy.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getHost Link icon

      @NotNull public String getHost()
      Returns the host name of the site or proxy for which authentication is requested.
      Returns:
      the host name of the site or proxy for which authentication is requested.
    • getPort Link icon

      public int getPort()
      Returns the port number of the connection.

      If defined, it is a strict positive integer.

      Returns:
      the port number of the connection.
    • getRealm Link icon

      @NotNull public String getRealm()
      Returns the realm of the authentication.
      Returns:
      the realm of the authentication.
    • getScheme Link icon

      @NotNull public String getScheme()
      Returns the scheme of the authentication request.

      This is one of Basic, Digest, ...

      Returns:
      the scheme of the authentication request.
    • getAuthenticationType Link icon

      @NotNull public AuthenticationType getAuthenticationType()
      Returns the authentication type, i.e., if it is needed for a server or a proxy.
      Returns:
      the authentication type, i.e., if it is needed for a server or a proxy.
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object