com.github.masonm.JwtExtensionStandalone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-jwt-extension Show documentation
Show all versions of wiremock-jwt-extension Show documentation
Wiremock request matcher and stub mapping transformer for JSON Web Tokens (JWT)
package com.github.masonm;
import com.github.tomakehurst.wiremock.standalone.WireMockServerRunner;
import java.util.Arrays;
public final class JwtExtensionStandalone {
private JwtExtensionStandalone() {}
// When WireMock is run in standalone mode, WireMockServerRunner.run() is the entry point,
// so we just delegate to that, passing along a CSV string with each extension class to load
public static void main(String... args) {
String[] newArgs = Arrays.copyOf(args, args.length + 1);
newArgs[args.length] = "--extensions=" + JwtMatcherExtension.class.getName() + "," + JwtStubMappingTransformer.class.getName();
new WireMockServerRunner().run(newArgs);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy