Packages

package util

Provides utilities used by the API.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait CacheLayer extends AnyRef

    A trait which provides a cache API.

  2. trait Clock extends java.time.Clock

    A trait which provides a mockable implementation for a Clock instance.

  3. 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.

  4. trait DefaultRequestExtractors extends LowPriorityRequestExtractors

    Contains the default request extractors.

  5. trait ExecutionContextProvider extends AnyRef

    A trait that can be mixed in to provide an execution context.

  6. 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.

  7. trait FingerprintGenerator extends AnyRef

    A generator which creates a fingerprint to identify a user.

  8. trait HTTPLayer extends ExecutionContextProvider

    A trait which provides a mockable implementation for the HTTP layer.

  9. trait IDGenerator extends AnyRef

    A generator which creates an ID.

  10. trait LowPriorityRequestExtractors extends AnyRef

    Default request extractors with lower priority.

  11. trait MockHTTPLayer extends HTTPLayer

    A mockable HTTP layer.

  12. trait MockWSRequest extends WSRequest

    A mockable WS request.

    A mockable WS request.

    See also

    https://github.com/playframework/play-ws/issues/108

  13. trait PasswordHasher extends AnyRef

    A trait that defines the password hasher interface.

  14. 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.

  15. 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.

  16. 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.

  17. trait RequestExtractor[-B] extends Logger

    Adds the ability to extract values from a request.

Value Members

  1. object Clock

    Creates a clock implementation.

  2. object ExtractableRequest

    The companion object.

  3. object JsonFormats

    Some implicit Json formats.

  4. object RequestExtractor extends DefaultRequestExtractors

    The companion object.

  5. object RequestPart extends Enumeration

    The request parts from which a value can be extracted.

Inherited from AnyRef

Inherited from Any

Ungrouped