Package org.mockserver.authentication
Class ControlPlaneAuthenticationHandlerFactory.DenyAllAuthenticationHandler
java.lang.Object
org.mockserver.authentication.ControlPlaneAuthenticationHandlerFactory.DenyAllAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
- Enclosing class:
- ControlPlaneAuthenticationHandlerFactory
public static class ControlPlaneAuthenticationHandlerFactory.DenyAllAuthenticationHandler
extends Object
implements AuthenticationHandler
Rejects every control-plane request. Used when authentication is required but the configured
mechanism could not be constructed, so the failure mode is closed rather than open.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanLegacy boolean SPI: returns true if the control-plane request is authenticated.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
-
DenyAllAuthenticationHandler
public DenyAllAuthenticationHandler()
-
-
Method Details
-
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
-