package util
Provides utilities used by the API.
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait CacheLayer extends AnyRef
A trait which provides a cache API.
- trait Clock extends java.time.Clock
A trait which provides a mockable implementation for a Clock instance.
- final case class Credentials(identifier: String, password: String) extends Product with Serializable
Credentials to authenticate with.
Credentials to authenticate with.
- identifier
The unique identifier to authenticate with.
- password
The password to authenticate with.
- trait DefaultRequestExtractors extends LowPriorityRequestExtractors
Contains the default request extractors.
- trait ExecutionContextProvider extends AnyRef
A trait that can be mixed in to provide an execution context.
- class ExtractableRequest[B] extends WrappedRequest[B]
A request which can extract values based on the request body.
A request which can extract values based on the request body.
- B
The type of the request body.
- trait FingerprintGenerator extends AnyRef
A generator which creates a fingerprint to identify a user.
- trait HTTPLayer extends ExecutionContextProvider
A trait which provides a mockable implementation for the HTTP layer.
- trait IDGenerator extends AnyRef
A generator which creates an ID.
- trait LowPriorityRequestExtractors extends AnyRef
Default request extractors with lower priority.
- trait MockHTTPLayer extends HTTPLayer
A mockable HTTP layer.
- trait MockWSRequest extends WSRequest
A mockable WS request.
A mockable WS request.
- See also
https://github.com/playframework/play-ws/issues/108
- trait PasswordHasher extends AnyRef
A trait that defines the password hasher interface.
- final case class PasswordHasherRegistry(current: PasswordHasher, deprecated: Seq[PasswordHasher] = Seq.empty) extends Product with Serializable
Defines the password hashers used by the application.
Defines the password hashers used by the application.
Sometimes it's needed to change the password hashing algorithm, because of a better algorithm or some similar case. But the passwords stored in the backing store cannot easily be converted with another algorithm because they're hashed and cannot be decrypted back to plain text. For such case Silhouette supports the change of hashing algorithms on the fly. So if a user successfully authenticates after the application has changed the hashing algorithm, the provider hashes the entered plain-text password again with the new algorithm and overrides the auth info in the backing store with the new hash.
The password hasher registry defines the current password hasher which is able to hash all new passwords and also match the passwords stored in the backing store for this algorithm. And also a list of deprecated hashers, which should match passwords that are stored in the baking store but which are different to the current hasher.
- current
The current password hasher used by the application.
- deprecated
The deprecated list of password hashers.
- final case class PasswordInfo(hasher: String, password: String, salt: Option[String] = None) extends AuthInfo with Product with Serializable
The password details.
The password details.
- hasher
The ID of the hasher used to hash this password.
- password
The hashed password.
- salt
The optional salt used when hashing.
- class PlayHTTPLayer extends HTTPLayer
Implementation of the HTTP layer which uses the Play web service implementation.
Implementation of the HTTP layer which uses the Play web service implementation.
It makes no sense to move the HTTPLayer implementation to the contrib package, because the complete Silhouette module is bound to Play's HTTP implementation. So this layer exists only for mocking purpose.
- trait RequestExtractor[-B] extends Logger
Adds the ability to extract values from a request.
Value Members
- object Clock
Creates a clock implementation.
- object ExtractableRequest
The companion object.
- object JsonFormats
Some implicit Json formats.
- object RequestExtractor extends DefaultRequestExtractors
The companion object.
- object RequestPart extends Enumeration
The request parts from which a value can be extracted.