JvmJwtCryptoBackend

zio.blocks.jwt.JvmJwtCryptoBackend

Attributes

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

Members list

Value members

Concrete methods

def install(): Unit

Attributes

Source
JvmJwtCryptoBackend.scala
def sign(data: Array[Byte], key: Array[Byte], alg: Algorithm): Either[JwtError, Array[Byte]]

Computes the JWT signature over data with key using alg.

Computes the JWT signature over data with key using alg.

Attributes

Source
JvmJwtCryptoBackend.scala
def verify(data: Array[Byte], signature: Array[Byte], key: Array[Byte], alg: Algorithm): Either[JwtError, Boolean]

Verifies that signature over data is valid for key and alg.

Verifies that signature over data is valid for key and alg.

Attributes

Source
JvmJwtCryptoBackend.scala

Concrete fields

The set of algorithms this backend supports. Calling sign/verify with an unsupported algorithm returns UnsupportedAlgorithm.

The set of algorithms this backend supports. Calling sign/verify with an unsupported algorithm returns UnsupportedAlgorithm.

Attributes

Source
JvmJwtCryptoBackend.scala