package com.ziesemer.utils.jmx.server.authorization;
/**
* @author Mark A. Ziesemer
* <a href="http://www.ziesemer.com."><www.ziesemer.com></a>
*/
public class DenyHandler implements IJmxInvocationAuthorizer{
protected final String reason;
public DenyHandler(final String reason){
this.reason = reason;
}
public Object invoke(final JmxAuthorizeContext ac) throws Throwable{
throw new SecurityException("Access denied (" + reason + ")");
}
}