Class AuthClassExtension
java.lang.Object
org.sdase.commons.server.auth.testing.AbstractAuth
org.sdase.commons.server.auth.testing.AuthClassExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class AuthClassExtension
extends AbstractAuth
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static interface
-
Field Summary
Fields inherited from class org.sdase.commons.server.auth.testing.AbstractAuth
authConfig, certificateLocation, disableAuth, issuer, keyId, privateKey, privateKeyLocation, subject
-
Method Summary
Methods inherited from class org.sdase.commons.server.auth.testing.AbstractAuth
createKeyLocation, loadPrivateKey
-
Field Details
-
AUTH_ENV_KEY
- See Also:
-
-
Method Details
-
builder
- Returns:
- a builder that guides along required fields to fluently create a new
AuthClassExtension
-
auth
- Returns:
- a builder to configure JWT content and create a signed token that will be accepted by the application
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-