Package akka.http.jwt.internal
Class JwtSupport.JwtAsymmetricAlgorithmSecret
- java.lang.Object
-
- akka.http.jwt.internal.JwtSupport.JwtAsymmetricAlgorithmSecret
-
- All Implemented Interfaces:
JwtSupport.JwtAlgorithmSecret
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- JwtSupport
public static class JwtSupport.JwtAsymmetricAlgorithmSecret extends java.lang.Object implements JwtSupport.JwtAlgorithmSecret, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JwtAsymmetricAlgorithmSecret(pdi.jwt.algorithms.JwtAsymmetricAlgorithm algorithm, java.security.PublicKey publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pdi.jwt.algorithms.JwtAsymmetricAlgorithm
algorithm()
java.lang.String
algorithmName()
boolean
canValidate()
boolean
canValidateAlgorithm(pdi.jwt.JwtAlgorithm alg)
java.security.PublicKey
publicKey()
scala.util.Try<spray.json.JsObject>
validate(java.lang.String token)
-
-
-
Method Detail
-
algorithm
public pdi.jwt.algorithms.JwtAsymmetricAlgorithm algorithm()
-
publicKey
public java.security.PublicKey publicKey()
-
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
-
-