StaticTokenValidator

com.malliina.web.StaticTokenValidator
See theStaticTokenValidator companion object
abstract class StaticTokenValidator[T <: TokenValue, U](keys: Seq[KeyConf], issuer: Issuer) extends TokenValidator

Type parameters

T

type of token

U

type of user

Value parameters

issuer

issuer

keys

public keys used to validate tokens

Attributes

Companion
object
Graph
Supertypes
trait ClaimKeys
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def validate(token: T, now: Instant): Either[JWTError, U]

Inherited methods

def buildVerifier(conf: KeyConf): RSASSAVerifier

Attributes

Inherited from:
TokenValidator
def checkClaim(key: String, expected: String, parsed: ParsedJWT): Either[JWTError, ParsedJWT]

Attributes

Inherited from:
TokenValidator
def checkContains(key: String, expecteds: Seq[String], parsed: ParsedJWT): Either[JWTError, Seq[String]]

Attributes

Inherited from:
TokenValidator
protected def isSignatureValid(unverified: SignedJWT, verifier: RSASSAVerifier): Boolean

Attributes

Inherited from:
TokenValidator
protected def parse(token: TokenValue): Either[JWTError, ParsedJWT]

Attributes

Inherited from:
TokenValidator
def validate(token: TokenValue, keys: Seq[KeyConf], now: Instant): Either[JWTError, Verified]

Attributes

Inherited from:
TokenValidator
protected def validateClaims(parsed: ParsedJWT, now: Instant): Either[JWTError, ParsedJWT]

Attributes

Inherited from:
TokenValidator
protected def verify(parsed: ParsedJWT, keys: Seq[KeyConf], now: Instant): Either[JWTError, Verified]

Attributes

Inherited from:
TokenValidator

Inherited fields

val Aud: String

Attributes

Inherited from:
ClaimKeys
val Exp: String

Attributes

Inherited from:
ClaimKeys
val IssuerKey: String

Attributes

Inherited from:
ClaimKeys
val Kid: String

Attributes

Inherited from:
ClaimKeys
val NotBefore: String

Attributes

Inherited from:
ClaimKeys