JwsCreate

soidc.core.JwsCreate
object JwsCreate

Utility functions to create JWS. It assumes signing errors to be fatal and rethrows them into the F.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JwsCreate.type

Members list

Value members

Concrete methods

def default[F[_], H, C](key: JWK, validity: FiniteDuration, header: H, claims: C)(using evidence$1: Clock[F], evidence$2: MonadThrow[F], ByteEncoder[H], ByteEncoder[C], StandardHeaderWrite[H], StandardClaimsWrite[C]): F[JWSDecoded[H, C]]
def modify[F[_], H, C](key: JWK, jws: JWSDecoded[H, C])(modifyHeader: (NumericDate, H) => H, modifyClaims: (NumericDate, C) => C)(using evidence$1: Clock[F], evidence$2: MonadThrow[F], ByteEncoder[H], ByteEncoder[C]): F[JWSDecoded[H, C]]

Modify and sign a given JWS with the current time.

Modify and sign a given JWS with the current time.

Attributes

def of[F[_], H, C](key: JWK, header: NumericDate => H, mkClaim: NumericDate => C)(using evidence$1: Clock[F], evidence$2: MonadThrow[F], ByteEncoder[H], ByteEncoder[C]): F[JWSDecoded[H, C]]