PasswordStore

tsec.authentication.credentials.PasswordStore
abstract class PasswordStore[F[_], Id, P](implicit P: PasswordHasher[F, P], F: Sync[F]) extends CredentialStore[F, RawCredentials[Id], PHash[P]]

Attributes

Source
CredentialStore.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait BCryptPasswordStore[F, Id]
trait SCryptPasswordStore[F, Id]

Members list

Value members

Abstract methods

def retrievePass(id: Id): OptionT[F, PHash[P]]

Attributes

Source
CredentialStore.scala

Concrete methods

def isAuthenticated(credentials: RawCredentials[Id]): F[Boolean]

Attributes

Source
CredentialStore.scala
def isAuthenticated(id: Id, raw: Array[Byte]): F[Boolean]

Attributes

Source
CredentialStore.scala
def isAuthenticated(id: Id, raw: Array[Char]): F[Boolean]

Attributes

Source
CredentialStore.scala
def putCredentials(credentials: RawCredentials[Id], put: PHash[P] => F[Unit]): F[Unit]

Add credentials to some backing store.

Add credentials to some backing store. putCredentials takes a function, most likely partially applied on some userId, that takes a P and adds some user record onto a credentials store.

Attributes

Returns
Source
CredentialStore.scala
def putCredentials(raw: Array[Byte], put: PHash[P] => F[Unit]): F[Unit]

Attributes

Source
CredentialStore.scala
def putCredentials(raw: Array[Char], put: PHash[P] => F[Unit]): F[Unit]

Attributes

Source
CredentialStore.scala

Inherited methods

def updateCredentials(credentials: RawCredentials[Id], update: PHash[P] => F[Unit]): F[Unit]

Alias for putCredentials for when anyone may want to be verbose about put vs update

Alias for putCredentials for when anyone may want to be verbose about put vs update

Attributes

Inherited from:
CredentialStore
Source
CredentialStore.scala