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

org.owasp.esapi.reference.accesscontrol.policyloader.EchoDynaBeanPolicyParameterACR Maven / Gradle / Ivy

Go to download

The Enterprise Security API (ESAPI) project is an OWASP project to create simple strong security controls for every web platform. Security controls are not simple to build. You can read about the hundreds of pitfalls for unwary developers on the OWASP website. By providing developers with a set of strong controls, we aim to eliminate some of the complexity of creating secure web applications. This can result in significant cost savings across the SDLC.

There is a newer version: 2.5.5.0
Show newest version
package org.owasp.esapi.reference.accesscontrol.policyloader;

import org.owasp.esapi.reference.accesscontrol.BaseACR;
import org.owasp.esapi.reference.accesscontrol.DynaBeanACRParameter;

//public class EchoDynaBeanPolicyParameterACR extends BaseDynaBeanACR {
public class EchoDynaBeanPolicyParameterACR extends BaseACR {
	/**
	 * Returns true if runtimeParameter is a Boolean true.
	 * throws ClassCastException if runtimeParameter is not a Boolean.
	 */
	public boolean isAuthorized(Object runtimeParameter) throws ClassCastException{		
		return getPolicyParameters().getBoolean("isTrue");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy