Module org.kohsuke.github.api
Class JWTTokenProviderTest
java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.AbstractGHAppInstallationTest
org.kohsuke.github.extras.authorization.JWTTokenProviderTest
The Class JWTTokenProviderTest.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper
-
Field Summary
Fields inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
jwtProvider1, jwtProvider2, jwtProvider3
Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test authorization header pattern.void
Test caching valid authorization.void
Test issued at skew.Methods inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
getAppInstallationWithToken
Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
JWTTokenProviderTest
public JWTTokenProviderTest()Create default JWTTokenProviderTest instance
-
-
Method Details
-
testCachingValidAuthorization
Test caching valid authorization.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testAuthorizationHeaderPattern
Test authorization header pattern.- Throws:
GeneralSecurityException
- the general security exceptionIOException
- Signals that an I/O exception has occurred.
-
testIssuedAtSkew
Test issued at skew.- Throws:
GeneralSecurityException
- the general security exceptionIOException
- Signals that an I/O exception has occurred.
-