akka.http.javadsl.server.directives.SecurityDirectives
The username or token provided with the credentials
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 akka.http.impl.util.EnhancedString#secure_==, for more information.
Represents HTTP Basic or OAuth2 authentication credentials supplied with a request.