Class SecurityPolicyHealthCheck
java.lang.Object
org.apache.camel.impl.health.AbstractHealthCheck
org.apache.camel.impl.health.SecurityPolicyHealthCheck
- All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.health.HealthCheck, org.apache.camel.Ordered, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasGroup, org.apache.camel.spi.HasId
@HealthCheck("security-policy-check")
public final class SecurityPolicyHealthCheck
extends AbstractHealthCheck
HealthCheck that reports security policy violations detected at startup.
This health check reads the SecurityPolicyResult stored as a context plugin by the security policy
enforcement during startup. If violations were found, the health check reports DOWN with details about each
violation.
This is a readiness check only — security violations don't mean the application is dead (liveness), but they indicate it may not be ready for production traffic.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.health.HealthCheck
org.apache.camel.health.HealthCheck.Kind, org.apache.camel.health.HealthCheck.Result, org.apache.camel.health.HealthCheck.State -
Field Summary
Fields inherited from class AbstractHealthCheck
SERVICE_ERROR_CODE, SERVICE_STATUS_CODEFields inherited from interface org.apache.camel.health.HealthCheck
CHECK_ENABLED, CHECK_GROUP, CHECK_ID, CHECK_KIND, ENDPOINT_URI, FAILURE_COUNT, FAILURE_ERROR_COUNT, FAILURE_START_TIME, FAILURE_TIME, HTTP_RESPONSE_CODE, INVOCATION_COUNT, INVOCATION_TIME, SUCCESS_COUNT, SUCCESS_START_TIME, SUCCESS_TIMEFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoke the health check.booleanbooleanMethods inherited from class AbstractHealthCheck
addMetaData, call, call, doCall, equals, getCamelContext, getGroup, getId, getMetaData, hashCode, isEnabled, setCamelContext, setEnabledMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.health.HealthCheck
callLiveness, callReadiness, getOrder
-
Constructor Details
-
SecurityPolicyHealthCheck
public SecurityPolicyHealthCheck()
-
-
Method Details
-
isReadiness
public boolean isReadiness() -
isLiveness
public boolean isLiveness() -
doCall
protected void doCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String, Object> options) Description copied from class:AbstractHealthCheckInvoke the health check.- Specified by:
doCallin classAbstractHealthCheck- See Also:
-