Packages

case class ProvidedCredentials(asScala: Provided) extends Product with Serializable

Represents HTTP Basic or OAuth2 authentication credentials supplied with a request.

Source
SecurityDirectives.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProvidedCredentials
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. 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 ProvidedCredentials(asScala: Provided)

Value Members

  1. def identifier: String

    The username or token provided with the credentials

  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. 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 pekko.http.impl.util.EnhancedString#secure_==, for more information.