Package akka.http.jwt.internal
Class JwtSupport.JwtSymmetricAlgorithmSecret
- java.lang.Object
-
- akka.http.jwt.internal.JwtSupport.JwtSymmetricAlgorithmSecret
-
- All Implemented Interfaces:
JwtSupport.JwtAlgorithmSecret
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- JwtSupport
public static class JwtSupport.JwtSymmetricAlgorithmSecret extends java.lang.Object implements JwtSupport.JwtAlgorithmSecret, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JwtSymmetricAlgorithmSecret(pdi.jwt.algorithms.JwtHmacAlgorithm algorithm, javax.crypto.SecretKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pdi.jwt.algorithms.JwtHmacAlgorithm
algorithm()
java.lang.String
algorithmName()
boolean
canValidate()
boolean
canValidateAlgorithm(pdi.jwt.JwtAlgorithm alg)
javax.crypto.SecretKey
key()
scala.util.Try<spray.json.JsObject>
validate(java.lang.String token)
-
-
-
Method Detail
-
algorithm
public pdi.jwt.algorithms.JwtHmacAlgorithm algorithm()
-
key
public javax.crypto.SecretKey key()
-
canValidateAlgorithm
public boolean canValidateAlgorithm(pdi.jwt.JwtAlgorithm alg)
- Specified by:
canValidateAlgorithm
in interfaceJwtSupport.JwtAlgorithmSecret
-
canValidate
public boolean canValidate()
- Specified by:
canValidate
in interfaceJwtSupport.JwtAlgorithmSecret
-
validate
public scala.util.Try<spray.json.JsObject> validate(java.lang.String token)
- Specified by:
validate
in interfaceJwtSupport.JwtAlgorithmSecret
-
algorithmName
public java.lang.String algorithmName()
- Specified by:
algorithmName
in interfaceJwtSupport.JwtAlgorithmSecret
-
-