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 SummaryConstructorsConstructorDescriptionAuthenticationScope(String host, int port, String realm, String scheme, AuthenticationType type) Constructor for the scope of an authentication request.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()booleanprotected voidfinalize()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.intgetPort()Returns the port number of the connection.getRealm()Returns the realm of the authentication.Returns the scheme of the authentication request.inthashCode()
- 
Constructor Details- 
AuthenticationScopepublic 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- 
finalizeprotected void finalize()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
getHostReturns 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.
 
- 
getPortpublic int getPort()Returns the port number of the connection.If defined, it is a strict positive integer. - Returns:
- the port number of the connection.
 
- 
getRealmReturns the realm of the authentication.- Returns:
- the realm of the authentication.
 
- 
getSchemeReturns the scheme of the authentication request.This is one of Basic,Digest, ...- Returns:
- the scheme of the authentication request.
 
- 
getAuthenticationTypeReturns 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.
 
- 
hashCodepublic int hashCode()
- 
equals
 
-