Token

io.eezo.auth.Token$package.Token
object Token

Attributes

Source
Token.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Token.type

Members list

Value members

Concrete methods

def gen(): (String, Token)

A fresh token: the plain text to show its program once, and the hash to store.

A fresh token: the plain text to show its program once, and the hash to store.

The pair rather than the plain text alone, so that an application never has to remember to hash before it stores: the value it writes is the one it was handed for writing. The plain text is base64url without padding, the one alphabet that goes into a header, a URL and a shell command without escaping.

Attributes

Source
Token.scala
def hash(plain: String): Token

The hash of a plain token, the same every time, which is what lets an application find the row a program's token names by this value alone.

The hash of a plain token, the same every time, which is what lets an application find the row a program's token names by this value alone.

Attributes

Source
Token.scala
def stored(hash: String): Token

A hash already made, as read out of a row.

A hash already made, as read out of a row.

Attributes

Source
Token.scala

Extensions

Extensions

extension (token: Token)
def value: String

The hash as text, for the Column[Token] an application writes beside its model.

The hash as text, for the Column[Token] an application writes beside its model.

Attributes

Source
Token.scala