All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.qlexpress4.security.QLSecurityStrategy Maven / Gradle / Ivy

package com.alibaba.qlexpress4.security;

import java.lang.reflect.Member;
import java.util.Set;

/**
 * Author: DQinYuan
 */
public interface QLSecurityStrategy {

    static QLSecurityStrategy open() {
        return StrategyOpen.getInstance();
    }

    static QLSecurityStrategy isolation() {
        return StrategyIsolation.getInstance();
    }

    static QLSecurityStrategy blackList(Set blackList) {
        return new StrategyBlackList(blackList);
    }

    static QLSecurityStrategy whiteList(Set whiteList) {
        return new StrategyWhiteList(whiteList);
    }

    /**
     * check if member secure
     * @param member member of object
     * @return true if secure
     */
    boolean check(Member member);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy