Package

com.mohiva.play.silhouette.api

util

Permalink

package util

Provides utilities used by the API.

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

Type Members

  1. trait CacheLayer extends AnyRef

    Permalink

    A trait which provides a cache API.

  2. trait Clock extends AnyRef

    Permalink

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

  3. case class Credentials(identifier: String, password: String) extends Product with Serializable

    Permalink

    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

    Permalink

    Contains the default request extractors.

  5. trait ExecutionContextProvider extends AnyRef

    Permalink

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

  6. class ExtractableRequest[B] extends WrappedRequest[B]

    Permalink

    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

    Permalink

    A generator which creates a fingerprint to identify a user.

  8. trait HTTPLayer extends ExecutionContextProvider

    Permalink

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

  9. trait IDGenerator extends AnyRef

    Permalink

    A generator which creates an ID.

  10. trait LowPriorityRequestExtractors extends AnyRef

    Permalink

    Default request extractors with lower priority.

  11. trait MockHTTPLayer extends HTTPLayer

    Permalink

    A mockable HTTP layer.

  12. trait MockWSRequest extends WSRequest

    Permalink

    A mockable WS request.

    A mockable WS request.

    See also

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

  13. trait PasswordHasher extends AnyRef

    Permalink

    A trait that defines the password hasher interface.

  14. case class PasswordHasherRegistry(current: PasswordHasher, deprecated: Seq[PasswordHasher] = Seq()) extends Product with Serializable

    Permalink

    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. case class PasswordInfo(hasher: String, password: String, salt: Option[String] = None) extends AuthInfo with Product with Serializable

    Permalink

    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

    Permalink

    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

    Permalink

    Adds the ability to extract values from a request.

Value Members

  1. object Clock

    Permalink

    Creates a clock implementation.

  2. object ExtractableRequest

    Permalink

    The companion object.

  3. object JsonFormats

    Permalink

    Some implicit Json formats.

  4. object RequestExtractor extends DefaultRequestExtractors

    Permalink

    The companion object.

  5. object RequestPart extends Enumeration

    Permalink

    The request parts from which a value can be extracted.

Inherited from AnyRef

Inherited from Any

Ungrouped