abstract case class Provided(identifier: String) extends Credentials with Product with Serializable
- Alphabetic
- By Inheritance
- Provided
- Serializable
- Product
- Equals
- Credentials
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Provided(identifier: String)
Abstract Value Members
- 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.
- 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 insecret
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 insecret
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
- val identifier: String
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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.
- 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.