public abstract static class Credentials.Provided extends java.lang.Object implements Credentials, scala.Product, java.io.Serializable
Credentials.Missing$, Credentials.Provided, Credentials.Provided$
Constructor and Description |
---|
Provided(java.lang.String identifier) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
identifier() |
abstract boolean |
provideVerify(scala.Function1<java.lang.String,java.lang.Object> verifier)
Compares with custom 'verifier' the received secret part of the Credentials.
|
boolean |
provideVerify(java.lang.String secret,
scala.Function2<java.lang.String,java.lang.String,java.lang.Object> verifier)
Compares with custom 'verifier' and the passed secret with the received secret part of the Credentials.
|
boolean |
verify(java.lang.String secret)
Safely compares the passed in
secret with the received secret part of the Credentials. |
abstract boolean |
verify(java.lang.String secret,
scala.Function1<java.lang.String,java.lang.String> hasher)
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.String identifier()
public abstract boolean verify(java.lang.String secret, scala.Function1<java.lang.String,java.lang.String> hasher)
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.
secret
- (undocumented)hasher
- (undocumented)public boolean verify(java.lang.String secret)
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.
secret
- (undocumented)public abstract boolean provideVerify(scala.Function1<java.lang.String,java.lang.Object> verifier)
verifier
- (undocumented)public boolean provideVerify(java.lang.String secret, scala.Function2<java.lang.String,java.lang.String,java.lang.Object> verifier)
secret
- (undocumented)verifier
- (undocumented)