ProvidedCredentials

org.apache.pekko.http.javadsl.server.directives.SecurityDirectives.ProvidedCredentials
case class ProvidedCredentials(asScala: Provided)

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

Attributes

Source
SecurityDirectives.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

The username or token provided with the credentials

The username or token provided with the credentials

Attributes

Source
SecurityDirectives.scala
def verify(secret: String): Boolean

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.

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.

Attributes

Source
SecurityDirectives.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product