Package akka.http.jwt.internal
Class JwtSupport.DefaultJwtSupport
- java.lang.Object
-
- akka.http.jwt.internal.JwtSupport.DefaultJwtSupport
-
- All Implemented Interfaces:
JwtSupport
- Enclosing interface:
- JwtSupport
public static final class JwtSupport.DefaultJwtSupport extends java.lang.Object implements JwtSupport
param: secrets Order of this list represents priority when selecting secrets for signing and validation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.jwt.internal.JwtSupport
JwtSupport.DefaultJwtSupport, JwtSupport.JwtAlgorithmSecret, JwtSupport.JwtAsymmetricAlgorithmSecret, JwtSupport.JwtAsymmetricAlgorithmSecret$, JwtSupport.JwtNoneAlgorithmSecret$, JwtSupport.JwtSecret, JwtSupport.JwtSecret$, JwtSupport.JwtSymmetricAlgorithmSecret, JwtSupport.JwtSymmetricAlgorithmSecret$
-
-
Constructor Summary
Constructors Constructor Description DefaultJwtSupport(scala.collection.immutable.List<JwtSupport.JwtSecret> secrets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canValidate()
scala.util.Either<java.lang.Exception,spray.json.JsObject>
validate(java.lang.String token)
-
-
-
Constructor Detail
-
DefaultJwtSupport
public DefaultJwtSupport(scala.collection.immutable.List<JwtSupport.JwtSecret> secrets)
-
-
Method Detail
-
canValidate
public boolean canValidate()
- Specified by:
canValidate
in interfaceJwtSupport
-
validate
public scala.util.Either<java.lang.Exception,spray.json.JsObject> validate(java.lang.String token)
- Specified by:
validate
in interfaceJwtSupport
-
-