public class GeospatialContentServerAuthorizationProvider extends Object implements IAuthorizationProvider
| Constructor and Description |
|---|
GeospatialContentServerAuthorizationProvider(String baseUrl,
String applicationToken)
Initializes a new instance.
|
GeospatialContentServerAuthorizationProvider(String baseUrl,
String applicationToken,
Proxy proxy)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizationToken(String url)
Gets an authorization token that will be used to request the given URL.
|
public GeospatialContentServerAuthorizationProvider(@Nonnull String baseUrl, @Nonnull String applicationToken)
baseUrl - The base URL of the Geospatial Content Server to connect to.applicationToken - The application token which will be used to obtain authorization tokens.ArgumentNullException - Thrown when baseUrl or applicationToken is null.public GeospatialContentServerAuthorizationProvider(@Nonnull String baseUrl, @Nonnull String applicationToken, @Nullable Proxy proxy)
baseUrl - The base URL of the Geospatial Content Server to connect to.applicationToken - The application token which will be used to obtain authorization tokens.proxy - The proxy to use when connecting. Optional, default is null.ArgumentNullException - Thrown when baseUrl or applicationToken is null.public final String getAuthorizationToken(String url)
getAuthorizationToken in interface IAuthorizationProviderurl - The URL of the resource that will be requested.