Package com.luciad.loaders
Class AuthenticationScope
java.lang.Object
com.luciad.loaders.AuthenticationScope
- All Implemented Interfaces:
AutoCloseable
Represents the scope of an authentication request.
-
Constructor Summary
ConstructorDescriptionAuthenticationScope
(String host, int port, String realm, String scheme, AuthenticationType type) Constructor for the scope of an authentication request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
protected void
finalize()
Returns the authentication type, i.e., if it is needed for a server or a proxy.getHost()
Returns the host name of the site or proxy for which authentication is requested.int
getPort()
Returns the port number of the connection.getRealm()
Returns the realm of the authentication.Returns the scheme of the authentication request.int
hashCode()
-
Constructor Details
-
AuthenticationScope
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
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
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
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
Returns the realm of the authentication.- Returns:
- the realm of the authentication.
-
getScheme
Returns the scheme of the authentication request.This is one of
Basic
,Digest
, ...- Returns:
- the scheme of the authentication request.
-
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
public int hashCode() -
equals
-