Object/Class

org.http4s.server.middleware

CSRF

Related Docs: class CSRF | package middleware

Permalink

object CSRF

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CSRF
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CSRFTokenLength: Int

    Permalink
  5. val SHA1ByteLen: Int

    Permalink
  6. val SigningAlgo: String

    Permalink
  7. def apply(headerName: String = "X-Csrf-Token", cookieName: String = "csrf-token", key: SecretKey, clock: Clock = Clock.systemUTC()): CSRF

    Permalink

    Default method for constructing CSRF middleware *

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def buildSigningKey(array: Array[Byte]): Task[SecretKey]

    Permalink

    Build a new HMACSHA1 Key for our CSRF Middleware from key bytes.

    Build a new HMACSHA1 Key for our CSRF Middleware from key bytes. This operation is unsafe, in that any amount less than 20 bytes will throw an exception when loaded into Mac, and any value above will be truncated (not good for entropy).

    Use for loading a key from a config file, after having generated one safely

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def generateSigningKey(): Task[SecretKey]

    Permalink

    Generate a signing Key for the CSRF token *

  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def isEqual(s1: String, s2: String): Boolean

    Permalink

    A Constant-time string equality *

  18. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withGeneratedKey(headerName: String = "X-Csrf-Token", cookieName: String = "csrf-token", clock: Clock = Clock.systemUTC()): Task[CSRF]

    Permalink

    Sugar for instantiating a middleware by generating a key *

  28. def withKeyBytes(keyBytes: Array[Byte], headerName: String = "X-Csrf-Token", cookieName: String = "csrf-token", clock: Clock = Clock.systemUTC()): Task[CSRF]

    Permalink

    Sugar for pre-loading a key *

Inherited from AnyRef

Inherited from Any

Ungrouped