Class MaxmindProperties
java.lang.Object
org.apereo.cas.configuration.model.support.geo.BaseGeoLocationProperties
org.apereo.cas.configuration.model.support.geo.maxmind.MaxmindProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-geolocation-maxmind")
public class MaxmindProperties
extends BaseGeoLocationProperties
This is
MaxmindProperties
.- Since:
- 5.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key.org.springframework.core.io.Resource
Path to the location of the database file containing cities.org.springframework.core.io.Resource
Path to the location of the database file containing countries.Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key.setAccountId
(int accountId) Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key.setCityDatabase
(org.springframework.core.io.Resource cityDatabase) Path to the location of the database file containing cities.setCountryDatabase
(org.springframework.core.io.Resource countryDatabase) Path to the location of the database file containing countries.setLicenseKey
(String licenseKey) Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key.
-
Constructor Details
-
MaxmindProperties
public MaxmindProperties()
-
-
Method Details
-
getAccountId
public int getAccountId()Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key. A zero or negative value will deactivate the web services integration. -
getLicenseKey
Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key. A blank, undefined value will deactivate the web services integration. -
getCityDatabase
public org.springframework.core.io.Resource getCityDatabase()Path to the location of the database file containing cities. -
getCountryDatabase
public org.springframework.core.io.Resource getCountryDatabase()Path to the location of the database file containing countries. -
setAccountId
Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key. A zero or negative value will deactivate the web services integration.- Returns:
this
.
-
setLicenseKey
Geolocating an IP address using Maxmind web services will need your MaxMind account ID and license key. A blank, undefined value will deactivate the web services integration.- Returns:
this
.
-
setCityDatabase
Path to the location of the database file containing cities.- Returns:
this
.
-
setCountryDatabase
Path to the location of the database file containing countries.- Returns:
this
.
-