public static class SecurityDirectives.ProvidedCredentials
extends java.lang.Object
implements scala.Product, java.io.Serializable
Constructor and Description |
---|
ProvidedCredentials(Credentials.Provided asScala) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
identifier()
The username or token provided with the credentials
|
boolean |
verify(java.lang.String secret)
Safely compares the passed in
secret with the received secret part of the Credentials. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ProvidedCredentials(Credentials.Provided asScala)
public java.lang.String identifier()
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 pekko.http.impl.util.EnhancedString#secure_==
, for more information.
secret
- (undocumented)