com.gu.pandomainauth

PublicSettings

class PublicSettings extends AnyRef

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PublicSettings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PublicSettings(domain: String, callback: (Try[Map[String, String]]) ⇒ Unit = _ => (), scheduler: Scheduler = ...)(implicit client: Http, ec: ExecutionContext)

    domain

    The domain you would like to fetch settings for

    callback

    Optionally, a callback called when the data gets fetched, provided to allow you to perform logging

    scheduler

    Optionally, the quartz scheduler instance to use. It defaults to the default scheduler but customising it may be useful if you want more control over the scheduler's lifecycle

    client

    Implicit instance of dispatch.Http used to make the call to fetch the public settings

    ec

    Implicit execution context used to fetch the settings

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val assymCookieName: String

  6. val bucketName: String

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val cookieName: String

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def publicKey: Option[String]

  19. def refresh(): Unit

  20. def start(intervalInSeconds: Int = 60): Unit

  21. def stop(): Boolean

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped