org.wiremock.extension.jwt.JwtExtensionFactory Maven / Gradle / Ivy
The newest version!
package org.wiremock.extension.jwt;
import com.github.tomakehurst.wiremock.core.Admin;
import com.github.tomakehurst.wiremock.extension.Extension;
import com.github.tomakehurst.wiremock.extension.ExtensionFactory;
import com.github.tomakehurst.wiremock.extension.WireMockServices;
import java.util.List;
public class JwtExtensionFactory implements ExtensionFactory {
@Override
public List create(WireMockServices services) {
final Admin admin = services.getAdmin();
final JwtSigningKeySettings jwtSigningKeySettings = new JwtSigningKeySettings(admin);
final JwtInitialiser jwtInitialiser = new JwtInitialiser(jwtSigningKeySettings);
return List.of(
jwtSigningKeySettings,
jwtInitialiser,
new JwtHelpersExtension(jwtSigningKeySettings)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy