Package uk.co.spudsoft.jwtvalidatorvertx
Class TestJwtValidatorVertx
java.lang.Object
uk.co.spudsoft.jwtvalidatorvertx.AbstractTokenValidationTester
uk.co.spudsoft.jwtvalidatorvertx.TestJwtValidatorVertx
- Author:
- jtalbut
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.co.spudsoft.jwtvalidatorvertx.AbstractTokenValidationTester
AbstractTokenValidationTester.TestFailure, AbstractTokenValidationTester.TestFunction, AbstractTokenValidationTester.TestResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TokenBuilder
createTokenBuilder
(com.google.common.cache.Cache<String, AlgorithmAndKeyPair> keyCache) protected String
getAud()
protected String
protected String
getKeyId()
void
init()
protected boolean
protected boolean
void
shutdown()
void
test()
protected void
Methods inherited from class uk.co.spudsoft.jwtvalidatorvertx.AbstractTokenValidationTester
getResults, performTest, performTests, testAlgorithmES512, testAlgorithmHS512, testAlgorithmNone, testAudNotAcceptedAsFirstElementOfArray, testAudNotAcceptedAsLastElementOfArray, testAudNotAcceptedAsSingleElementArray, testAudNotAcceptedAsSingleValue, testBadAudAccepted, testBadIssAccepted, testExpInThePast, testInvalidSignature, testInvalidStructureFirstPartNotBase64, testInvalidStructureFirstPartNotJson, testInvalidStructureNotThreeParts, testInvalidStructureSecondPartNotBase64, testInvalidStructureSecondPartNotJson, testInvalidStructureThirdPartNotBase64, testKeyNotInJwksOutput, testNbfInTheFuture, testNoExpPermitted, testNoNbfPermitted, testNoSubAccepted, testValidRs256, testValidRs384, testValidRs512
-
Constructor Details
-
TestJwtValidatorVertx
public TestJwtValidatorVertx()
-
-
Method Details
-
createTokenBuilder
protected TokenBuilder createTokenBuilder(com.google.common.cache.Cache<String, AlgorithmAndKeyPair> keyCache) - Specified by:
createTokenBuilder
in classAbstractTokenValidationTester
-
test
@Test public void test() -
init
- Throws:
IOException
-
shutdown
- Throws:
IOException
-
useToken
- Specified by:
useToken
in classAbstractTokenValidationTester
-
getAud
- Specified by:
getAud
in classAbstractTokenValidationTester
-
getIssuer
- Specified by:
getIssuer
in classAbstractTokenValidationTester
-
getKeyId
- Specified by:
getKeyId
in classAbstractTokenValidationTester
-
requiresExp
protected boolean requiresExp()- Specified by:
requiresExp
in classAbstractTokenValidationTester
-
requiresNbf
protected boolean requiresNbf()- Specified by:
requiresNbf
in classAbstractTokenValidationTester
-