JwtCrypto

zio.blocks.jwt.JwtCrypto
object JwtCrypto

Global registry for the active JwtCryptoBackend.

Call JvmJwtCryptoBackend.install() (JVM) or JsJwtCryptoBackend.install() (JS) once at application startup. Until then the default backend handles HMAC algorithms only.

Attributes

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

Members list

Value members

Concrete methods

The active crypto backend. Install a platform backend (e.g. JvmJwtCryptoBackend) before use.

The active crypto backend. Install a platform backend (e.g. JvmJwtCryptoBackend) before use.

Attributes

Source
Jwt.scala
def backend_=(impl: JwtCryptoBackend): Unit

Sets the active crypto backend (source-compatible setter).

Sets the active crypto backend (source-compatible setter).

Attributes

Source
Jwt.scala
def compareAndSet(expected: JwtCryptoBackend, updated: JwtCryptoBackend): Boolean

Atomically sets the backend if currently expected value.

Atomically sets the backend if currently expected value.

Attributes

Source
Jwt.scala

Atomically sets and returns the previous backend.

Atomically sets and returns the previous backend.

Attributes

Source
Jwt.scala
def install(impl: JwtCryptoBackend): Unit

Installs a platform backend as the global default (alias for installBackend).

Installs a platform backend as the global default (alias for installBackend).

Attributes

Source
Jwt.scala
def installBackend(impl: JwtCryptoBackend): Unit

Installs a platform backend as the global default (thread-safe).

Installs a platform backend as the global default (thread-safe).

Attributes

Source
Jwt.scala