case classHmacConfig(algorithm: String, secret: String, defaultExpTime: TimeDuration) extends Product with Serializable
Class that represents a valid configuration for json web tokens with HMAC protection.
Class that represents a valid configuration for json web tokens with HMAC protection.
algorithm
Token algorithm. It must be one of these: "HS256", "HS384", "HS512".
secret
Shared secret for token validation.
For HS256 must be a 256+ bit (32+ byte) secret.
For HS384 must be a 384+ bit (48+ byte) secret.
For HS512 must be a 512+ bit (64+ byte) secret.
case classTimeDuration(unit: String, length: Int) extends Product with Serializable
Class that represents a valid configuration for json web tokens with HMAC protection.
Token algorithm. It must be one of these: "HS256", "HS384", "HS512".
Shared secret for token validation. For HS256 must be a 256+ bit (32+ byte) secret. For HS384 must be a 384+ bit (48+ byte) secret. For HS512 must be a 512+ bit (64+ byte) secret.