JWT

oxygen.crypto.model.JWT
See theJWT companion class
object JWT

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
JWT.type

Members list

Type members

Classlikes

final case class StandardPayload[P](tokenId: UUID, issuedAt: Instant, expiresAt: Instant, payload: P)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type Std[P] = JWT[StandardPayload[P]]

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def decodeBearer[A : JsonDecoder](string: String): Either[String, JWT[A]]

Accepts format(s):

Accepts format(s):

  • "Bearer headerBase64.payloadBase64.signatureBase64"

Attributes

def decodeBearerOrToken[A : JsonDecoder](string: String): Either[String, JWT[A]]

Accepts format(s):

Accepts format(s):

  • "Bearer headerBase64.payloadBase64.signatureBase64"
  • "headerBase64.payloadBase64.signatureBase64"

Attributes

def decodeToken[A : JsonDecoder](string: String): Either[String, JWT[A]]

Accepts format(s):

Accepts format(s):

  • "headerBase64.payloadBase64.signatureBase64"

Attributes