Class JWTAuthenticationHandler
java.lang.Object
org.mockserver.authentication.jwt.JWTAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
-
Constructor Summary
ConstructorsConstructorDescriptionJWTAuthenticationHandler(MockServerLogger mockServerLogger, String jwkSource) -
Method Summary
Modifier and TypeMethodDescriptionbooleanLegacy boolean SPI: returns true if the control-plane request is authenticated.withExpectedAudience(String expectedAudience) withMatchingClaims(Map<String, String> matchingClaims) withRequiredClaims(Set<String> requiredClaims) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mockserver.authentication.AuthenticationHandler
authenticate
-
Constructor Details
-
JWTAuthenticationHandler
-
-
Method Details
-
withExpectedAudience
-
withMatchingClaims
-
withRequiredClaims
-
controlPlaneRequestAuthenticated
Description copied from interface:AuthenticationHandlerLegacy boolean SPI: returns true if the control-plane request is authenticated. Implementations may throwAuthenticationExceptionto signal a 401 with a specific reason. Existing and third-party handlers implement only this method.- Specified by:
controlPlaneRequestAuthenticatedin interfaceAuthenticationHandler
-