package io.quarkus.security.runtime.interceptor.check;

import java.lang.reflect.Method;

import io.quarkus.security.identity.SecurityIdentity;
import io.quarkus.security.spi.runtime.MethodDescription;
import io.quarkus.security.spi.runtime.SecurityCheck;

public class PermitAllCheck implements SecurityCheck {

    public static final PermitAllCheck INSTANCE = new PermitAllCheck();

    private PermitAllCheck() {
    }

    @Override
    public void apply(SecurityIdentity identity, Method method, Object[] parameters) {
    }

    @Override
    public void apply(SecurityIdentity identity, MethodDescription method, Object[] parameters) {
    }

    @Override
    public boolean isPermitAll() {
        return true;
    }
}
