Packages

abstract case class Provided(identifier: String) extends Credentials with Product with Serializable

Source
SecurityDirectives.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Provided
  2. Serializable
  3. Product
  4. Equals
  5. Credentials
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Provided(identifier: String)

Abstract Value Members

  1. abstract def provideVerify(verifier: (String) => Boolean): Boolean

    Compares with custom 'verifier' the received secret part of the Credentials.

    Compares with custom 'verifier' the received secret part of the Credentials. Use of this method only if custom String equality testing is required, not recommended.

  2. abstract def verify(secret: String, hasher: (String) => String): Boolean

    First applies the passed in hasher function to the received secret part of the Credentials and then safely compares the passed in secret with the hashed received secret.

    First applies the passed in hasher function to the received secret part of the Credentials and then safely compares the passed in secret with the hashed received secret. This method can be used if the secret is not stored in plain text. Use of this method instead of manual String equality testing is recommended in order to guard against timing attacks.

    See also EnhancedString#secure_==, for more information.

Concrete Value Members

  1. val identifier: String
  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. def provideVerify(secret: String, verifier: (String, String) => Boolean): Boolean

    Compares with custom 'verifier' and the passed secret with the received secret part of the Credentials.

    Compares with custom 'verifier' and the passed secret with the received secret part of the Credentials. Use of this method only if custom String equality testing is required, not recommended.

  4. def verify(secret: String): Boolean

    Safely compares the passed in secret with the received secret part of the Credentials.

    Safely compares the passed in secret with the received secret part of the Credentials. Use of this method instead of manual String equality testing is recommended in order to guard against timing attacks.

    See also EnhancedString#secure_==, for more information.