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
Since:
5.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String 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

      public MaxmindProperties setAccountId(int accountId)
      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

      public MaxmindProperties setLicenseKey(String licenseKey)
      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

      public MaxmindProperties setCityDatabase(org.springframework.core.io.Resource cityDatabase)
      Path to the location of the database file containing cities.
      Returns:
      this.
    • setCountryDatabase

      public MaxmindProperties setCountryDatabase(org.springframework.core.io.Resource countryDatabase)
      Path to the location of the database file containing countries.
      Returns:
      this.