QuatiApiTokenEncoder

class QuatiApiTokenEncoder<Token : QuatiApiToken, TokenHash : QuatiApiTokenHash, TokenParsed : QuatiApiTokenParsed>(hasher: <Error class: unknown class> = defaultEncoder, parser: (token: QuatiApiTokenParsed.Simple) -> <Error class: unknown class><TokenParsed, InvalidApiTokenException>, hashMapper: (token: QuatiApiTokenHash.Simple) -> TokenHash)

Constructors

Link copied to clipboard
constructor(hasher: <Error class: unknown class> = defaultEncoder, parser: (token: QuatiApiTokenParsed.Simple) -> <Error class: unknown class><TokenParsed, InvalidApiTokenException>, hashMapper: (token: QuatiApiTokenHash.Simple) -> TokenHash)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun encode(token: Token): TokenHash
Link copied to clipboard
fun matches(token: Token, hash: TokenHash): Boolean
Link copied to clipboard
fun parse(token: Token): <Error class: unknown class><TokenParsed, InvalidApiTokenException>