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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val assymCookieName: String

  8. val bucketName: String

  9. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

  21. def refresh(): Unit

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

  23. def stop(): Boolean

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped