Class that contains the static public settings and includes mechanism for fetching the public key.
Class that contains the static public settings and includes mechanism for fetching the public key. The class is
parametrized by domain because the keys will differ for different domains. It also requires a dispatch.Http
instance for retrieving the data and an execution context.
Once you have an instance you can call its start method to kick off loading the public data. In a Play app,
consider using the Global object's onStart method to start these calls when the application comes up. If
you'd rather use your own scheduler you can do so while still using the PublicSettings class by scheduling
your own calls to its refresh method can also schdule the refresh yourself using the instance's
Class that contains the static public settings and includes mechanism for fetching the public key. The class is parametrized by domain because the keys will differ for different domains. It also requires a dispatch.Http instance for retrieving the data and an execution context.
Once you have an instance you can call its start method to kick off loading the public data. In a Play app, consider using the
Global
object'sonStart
method to start these calls when the application comes up. If you'd rather use your own scheduler you can do so while still using the PublicSettings class by scheduling your own calls to itsrefresh
method can also schdule the refresh yourself using the instance's