org.mockserver.authentication.ChainedAuthenticationHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.authentication;
import org.mockserver.model.HttpRequest;
public class ChainedAuthenticationHandler implements AuthenticationHandler {
private final AuthenticationHandler[] authenticationHandlers;
public ChainedAuthenticationHandler(AuthenticationHandler... authenticationHandlers) {
this.authenticationHandlers = authenticationHandlers;
}
@Override
public boolean controlPlaneRequestAuthenticated(HttpRequest request) {
for (AuthenticationHandler authenticationHandler : authenticationHandlers) {
if (!authenticationHandler.controlPlaneRequestAuthenticated(request)) {
return false;
}
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy