Class SecurityDirectives.ProvidedCredentials
java.lang.Object
org.apache.pekko.http.javadsl.server.directives.SecurityDirectives.ProvidedCredentials
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- Enclosing class:
- SecurityDirectives
public static class SecurityDirectives.ProvidedCredentials
extends Object
implements scala.Product, Serializable
Represents HTTP Basic or OAuth2 authentication credentials supplied with a request.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe username or token provided with the credentialsbooleanSafely compares the passed insecretwith the received secret part of the Credentials.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
ProvidedCredentials
 
- 
- 
Method Details- 
identifierThe username or token provided with the credentials- Returns:
- (undocumented)
 
- 
verifySafely compares the passed insecretwith 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 {@link pekko.http.impl.util.EnhancedString#secure_==}, for more information. - Parameters:
- secret- (undocumented)
- Returns:
- (undocumented)
 
 
-