
com.alibaba.qlexpress4.security.StrategyWhiteList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qlexpress4 Show documentation
Show all versions of qlexpress4 Show documentation
QLExpress is a powerful, lightweight, dynamic language for the Java platform aimed at improving
developers’ productivity in different business scenes.
The newest version!
package com.alibaba.qlexpress4.security;
import java.lang.reflect.Member;
import java.util.Set;
/**
* A security policy that only permits access to Java members in the whitelist.
* Author: DQinYuan
*/
public class StrategyWhiteList implements QLSecurityStrategy {
private final Set whiteList;
public StrategyWhiteList(Set whiteList) {
this.whiteList = whiteList;
}
@Override
public boolean check(Member member) {
return whiteList.contains(member);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy