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 TokenBuildercreateTokenBuilder(com.google.common.cache.Cache<String, AlgorithmAndKeyPair> keyCache) protected StringgetAud()protected Stringprotected StringgetKeyId()voidinit()protected booleanprotected booleanvoidshutdown()voidtest()protected voidMethods 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:
createTokenBuilderin classAbstractTokenValidationTester
-
test
@Test public void test() -
init
- Throws:
IOException
-
shutdown
- Throws:
IOException
-
useToken
- Specified by:
useTokenin classAbstractTokenValidationTester
-
getAud
- Specified by:
getAudin classAbstractTokenValidationTester
-
getIssuer
- Specified by:
getIssuerin classAbstractTokenValidationTester
-
getKeyId
- Specified by:
getKeyIdin classAbstractTokenValidationTester
-
requiresExp
protected boolean requiresExp()- Specified by:
requiresExpin classAbstractTokenValidationTester
-
requiresNbf
protected boolean requiresNbf()- Specified by:
requiresNbfin classAbstractTokenValidationTester
-