JWTMacImpure
tsec.jws.mac.JWTMacImpure$
object JWTMacImpure
Attributes
- Source
- JWTMac.scala
- Graph
-
- Supertypes
- Self type
-
JWTMacImpure.type
Members list
Value members
Concrete methods
def build[A : JWTMacAlgo](claims: JWTClaims, key: Type[A])(implicit evidence$14: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[JWTMac[A]]
Default methods
def buildToString[A : JWTMacAlgo](body: JWTClaims, key: Type[A])(implicit evidence$17: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[String]
Attributes
- Source
- JWTMac.scala
def buildToString[A : JWTMacAlgo](header: JWSMacHeader[A], body: JWTClaims, key: Type[A])(implicit evidence$18: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[String]
Attributes
- Source
- JWTMac.scala
def generateSignature[A : JWTMacAlgo](header: JWSMacHeader[A], body: JWTClaims, key: Type[A])(implicit evidence$15: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[Type[A]]
Sign the header and the body with the given key, into a jwt object
Sign the header and the body with the given key, into a jwt object
Value parameters
- header
-
the JWT header
Attributes
- Returns
- Source
- JWTMac.scala
def generateSignature[A : JWTMacAlgo](body: JWTClaims, key: Type[A])(implicit evidence$16: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[Type[A]]
Attributes
- Source
- JWTMac.scala
def parseUnverified[A : JWTMacAlgo](jwt: String)(implicit evidence$22: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[JWTMac[A]]
Attributes
- Source
- JWTMac.scala
def toEncodedString[A : JWTMacAlgo](jwt: JWTMac[A])(implicit evidence$21: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): String
Attributes
- Source
- JWTMac.scala
Attributes
- Source
- JWTMac.scala
def verifyFromInstance[A : JWTMacAlgo](jwt: JWTMac[A], key: Type[A])(implicit evidence$20: JWTMacAlgo[A], hs: JWSSerializer[JWSMacHeader[A]], cv: JWSMacCV[MacErrorM, A]): MacErrorM[Boolean]
Attributes
- Source
- JWTMac.scala
def verifyFromString[A : JWTMacAlgo](jwt: String, key: Type[A])(implicit evidence$19: JWTMacAlgo[A], s: JWSMacCV[MacErrorM, A]): MacErrorM[Boolean]
Verify the JWT
Verify the JWT
Type parameters
- A
-
the signing algorithm
Value parameters
- jwt
-
the JWT, as a string representation
- key
-
the signing key
Attributes
- Returns
-
Signing output as a boolean or a MacError. Useful to detect any other errors aside from malformed input.
- Source
- JWTMac.scala
Implicits
Implicits
Attributes
- Source
- JWTMac.scala
In this article