Package net.officefloor.web.jwt.mock
Class MockJwtAccessTokenRule
java.lang.Object
net.officefloor.web.jwt.mock.AbstractMockJwtAccessTokenJUnit
net.officefloor.web.jwt.mock.MockJwtAccessTokenRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class MockJwtAccessTokenRule
extends AbstractMockJwtAccessTokenJUnit
implements org.junit.rules.TestRule
TestRule to mock JWT access tokens for the
JwtHttpSecuritySource.
This allows generating access tokens for testing the application.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Methods inherited from class net.officefloor.web.jwt.mock.AbstractMockJwtAccessTokenJUnit
authorize, createAccessToken, getActiveJwtValidateKeys, setupMockKeys, teardownMockKeys
-
Constructor Details
-
MockJwtAccessTokenRule
public MockJwtAccessTokenRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-