Class ESRIAuthenticationDetails
java.lang.Object
com.targomo.client.api.request.esri.ESRIAuthenticationDetails
Immutable Class to specify the user credentials for an ESRI account - this may be required for using
GeocodingRequest (which uses the ESRI service)-
Constructor Summary
ConstructorsConstructorDescriptionESRIAuthenticationDetails(String clientID, String clientSecret) Creates an authentication specification.ESRIAuthenticationDetails(String clientID, String clientSecret, Integer tokenExpirationInMinutes) Creates an authentication specification. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ESRIAuthenticationDetails
Creates an authentication specification. The value for token expiration is set to the default value of 20160 minutes (=14 days).- Parameters:
clientID- - look into link for details how to get your ESRI client idclientSecret- - look into link for details how to get your ESRI client secret- See Also:
-
ESRIAuthenticationDetails
public ESRIAuthenticationDetails(@Nonnull String clientID, @Nonnull String clientSecret, @Nonnull Integer tokenExpirationInMinutes) Creates an authentication specification.- Parameters:
clientID- - look into link for details how to get your ESRI client idclientSecret- - look into link for details how to get your ESRI client secrettokenExpirationInMinutes- - determines how long a token will be valid - min: 1 minute; max: 20160 minutes (=14 days)- See Also:
-
-
Method Details
-
getClientID
- Returns:
- the specified clientID of this authentication credentials
-
getClientSecret
- Returns:
- the specified clientSecret of this authentication credentials
-
getTokenExpirationInMinutes
- Returns:
- the specified tokenExpirationInMinutes of this authentication credentials
-