Class JWTAuthenticationHandler
- java.lang.Object
-
- org.mockserver.authentication.jwt.JWTAuthenticationHandler
-
- All Implemented Interfaces:
AuthenticationHandler
public class JWTAuthenticationHandler extends Object implements AuthenticationHandler
-
-
Constructor Summary
Constructors Constructor Description JWTAuthenticationHandler(MockServerLogger mockServerLogger, String jwkSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontrolPlaneRequestAuthenticated(HttpRequest request)JWTAuthenticationHandlerwithExpectedAudience(String expectedAudience)JWTAuthenticationHandlerwithMatchingClaims(Map<String,String> matchingClaims)JWTAuthenticationHandlerwithRequiredClaims(Set<String> requiredClaims)
-
-
-
Constructor Detail
-
JWTAuthenticationHandler
public JWTAuthenticationHandler(MockServerLogger mockServerLogger, String jwkSource)
-
-
Method Detail
-
withExpectedAudience
public JWTAuthenticationHandler withExpectedAudience(String expectedAudience)
-
withMatchingClaims
public JWTAuthenticationHandler withMatchingClaims(Map<String,String> matchingClaims)
-
withRequiredClaims
public JWTAuthenticationHandler withRequiredClaims(Set<String> requiredClaims)
-
controlPlaneRequestAuthenticated
public boolean controlPlaneRequestAuthenticated(HttpRequest request)
- Specified by:
controlPlaneRequestAuthenticatedin interfaceAuthenticationHandler
-
-