Class Credentials.Provided
java.lang.Object
org.apache.pekko.http.scaladsl.server.directives.Credentials.Provided
- All Implemented Interfaces:
- Serializable,- Credentials,- scala.Equals,- scala.Product
- Enclosing interface:
- Credentials
public abstract static class Credentials.Provided
extends Object
implements Credentials, scala.Product, Serializable
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.server.directives.CredentialsCredentials.Missing$, Credentials.Provided, Credentials.Provided$
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprovideVerify(String secret, scala.Function2<String, String, Object> verifier) Compares with custom 'verifier' and the passed secret with the received secret part of the Credentials.abstract booleanprovideVerify(scala.Function1<String, Object> verifier) Compares with custom 'verifier' the received secret part of the Credentials.booleanSafely compares the passed insecretwith the received secret part of the Credentials.abstract booleanFirst applies the passed inhasherfunction to the received secret part of the Credentials and then safely compares the passed insecretwith the hashed received secret.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- 
Provided
 
- 
- 
Method Details- 
identifier
- 
verifyFirst applies the passed inhasherfunction to the received secret part of the Credentials and then safely compares the passed insecretwith 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 {@link EnhancedString#secure_==}, for more information. - Parameters:
- secret- (undocumented)
- hasher- (undocumented)
- 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 EnhancedString#secure_==}, for more information. - Parameters:
- secret- (undocumented)
- Returns:
- (undocumented)
 
- 
provideVerifyCompares with custom 'verifier' the received secret part of the Credentials. Use of this method only if custom String equality testing is required, not recommended.- Parameters:
- verifier- (undocumented)
- Returns:
- (undocumented)
 
- 
provideVerifyCompares 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.- Parameters:
- secret- (undocumented)
- verifier- (undocumented)
- Returns:
- (undocumented)
 
 
-