public class JMXAuthorizationCheckerAdapter extends Object implements JMXAuthorizationChecker
JMXAuthorizationChecker interface, to subclass when not all methods need be implemented.
This particular implementation allows everythng by default, as all its checkXXX() methods are empty.
The subject is available as a protected instance variable, as well as thorugh its accessors getSubject() and setSubject(Subject).
| Modifier and Type | Field and Description |
|---|---|
protected Subject |
subject
The authenticated subject.
|
| Constructor and Description |
|---|
JMXAuthorizationCheckerAdapter() |
protected Subject subject
public Subject getSubject()
JMXAuthorizationCheckergetSubject in interface JMXAuthorizationCheckerSubject, if any.public void setSubject(Subject subject)
JMXAuthorizationCheckersetSubject in interface JMXAuthorizationCheckersubject - the authenticated Subject to set.public void checkCreateMBean(String className, ObjectName name) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.createMBean(String, ObjectName) method on the mbean server.checkCreateMBean in interface JMXAuthorizationCheckerclassName - the class name of the MBean to instantiate.name - the object name of the MBean. May be null.Exception - if the subject is not authorized.public void checkCreateMBean(String className, ObjectName name, ObjectName loaderName) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.createMBean(String, ObjectName, ObjectName) method on the mbean server.checkCreateMBean in interface JMXAuthorizationCheckerclassName - the class name of the MBean to be instantiated.name - the object name of the MBean. May be null.loaderName - the object name of the class loader to be used.Exception - if the subject is not authorized.public void checkCreateMBean(String className, ObjectName name, Object[] params, String[] signature) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) method on the mbean server.checkCreateMBean in interface JMXAuthorizationCheckerclassName - the class name of the MBean to instantiate.name - the object name of the MBean. May be null.params - an array containing the parameters of the constructor to invoke.signature - an array containing the signature of the constructor to invoke.Exception - if the subject is not authorized.public void checkCreateMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) method on the mbean server.checkCreateMBean in interface JMXAuthorizationCheckerclassName - The class name of the MBean to instantiate.name - the object name of the MBean. May be null.loaderName - the object name of the class loader to use.params - an array containing the parameters of the constructor to invoke.signature - an array containing the signature of the constructor to invoke.Exception - if the subject is not authorized.public void checkUnregisterMBean(ObjectName name) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.unregisterMBean(ObjectName) method on the mbean server.checkUnregisterMBean in interface JMXAuthorizationCheckername - the object name of the MBean to unregister.Exception - if the subject is not authorized.public void checkGetObjectInstance(ObjectName name) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getObjectInstance(ObjectName) method on the mbean server.checkGetObjectInstance in interface JMXAuthorizationCheckername - the object name of the MBean.Exception - if the subject is not authorized.public void checkQueryMBeans(ObjectName name, QueryExp query) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.queryMBeans(ObjectName, QueryExp) method on the mbean server.checkQueryMBeans in interface JMXAuthorizationCheckername - the object name pattern identifying the MBeans to retrieve.query - the query expression to apply for selecting MBeans.Exception - if the subject is not authorized.public void checkQueryNames(ObjectName name, QueryExp query) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.queryNames(ObjectName, QueryExp) method on the mbean server.checkQueryNames in interface JMXAuthorizationCheckername - the object name pattern identifying the MBean names to retrieve.query - the query expression to apply for selecting MBeans.Exception - if the subject is not authorized.public void checkIsRegistered(ObjectName name) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.isRegistered(ObjectName) method on the mbean server.checkIsRegistered in interface JMXAuthorizationCheckername - the object name of the MBean to check.Exception - if the subject is not authorized.public void checkGetMBeanCount()
throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getMBeanCount() method on the mbean server.checkGetMBeanCount in interface JMXAuthorizationCheckerException - if the subject is not authorized.public void checkGetAttribute(ObjectName name, String attribute) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getAttribute(ObjectName, String) method on the mbean server.checkGetAttribute in interface JMXAuthorizationCheckername - the object name of the MBean from which the attribute is to be retrieved.attribute - A String specifying the name of the attribute to retrieve.Exception - if the subject is not authorized.public void checkGetAttributes(ObjectName name, String[] attributes) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getAttributes(ObjectName, String[]) method on the mbean server.checkGetAttributes in interface JMXAuthorizationCheckername - the object name of the MBean from which the attributes are retrieved.attributes - a list of the attributes to retrieve.Exception - if the subject is not authorized.public void checkSetAttribute(ObjectName name, Attribute attribute) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.setAttribute(ObjectName, Attribute) method on the mbean server.checkSetAttribute in interface JMXAuthorizationCheckername - the name of the MBean within which the attribute is to be set.attribute - The identification of the attribute to set and the value to set it to.Exception - if the subject is not authorized.public void checkSetAttributes(ObjectName name, AttributeList attributes) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.setAttributes(ObjectName, AttributeList) method on the mbean server.checkSetAttributes in interface JMXAuthorizationCheckername - The object name of the MBean within which the attributes are to be set.attributes - A list of attributes: the identification of the attributes to set and the values to set them to.Exception - if the subject is not authorized.public void checkInvoke(ObjectName name, String operationName, Object[] params, String[] signature) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.invoke(ObjectName, String, Object[], String[]) method on the mbean server.checkInvoke in interface JMXAuthorizationCheckername - the object name of the MBean on which the method is invoked.operationName - the name of the operation to invoke.params - an array containing the parameters to set when the operation is invoked.signature - an array containing the signature of the operation, an array of class names in the format returned by Class.getName().Exception - if the subject is not authorized.public void checkGetDefaultDomain()
throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getDefaultDomain() method on the mbean server.checkGetDefaultDomain in interface JMXAuthorizationCheckerException - if the subject is not authorized.public void checkGetDomains()
throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getDomains() method on the mbean server.checkGetDomains in interface JMXAuthorizationCheckerException - if the subject is not authorized.public void checkAddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) method on the mbean server.checkAddNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be added.listener - the listener object which will handle the notifications emitted by the registered MBean.filter - the filter object.handback - the context to send to the listener when a notification is emitted.Exception - if the subject is not authorized.public void checkAddNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) method on the mbean server.checkAddNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be added.listener - the object name of the listener object which will handle the notifications emitted by the registered MBean.filter - the filter object.handback - the context to send to the listener when a notification is emitted.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(ObjectName name, ObjectName listener) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) method on the mbean server.checkRemoveNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be added.listener - the object name of the listener object which will handle the notifications emitted by the registered MBean.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) method on the mbean server.checkRemoveNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be removed.listener - the object name of the listener to remove.filter - the filter that was specified when the listener was added.handback - the handback that was specified when the listener was added.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(ObjectName name, NotificationListener listener) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.removeNotificationListener(ObjectName, NotificationListener) method on the mbean server.checkRemoveNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be removed.listener - the listener object to remove.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) method on the mbean server.checkRemoveNotificationListener in interface JMXAuthorizationCheckername - the name of the MBean on which the listener should be removed.listener - the listener object to remove.filter - the filter that was specified when the listener was added.handback - the handback that was specified when the listener was added.Exception - if the subject is not authorized.public void checkGetMBeanInfo(ObjectName name) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.getMBeanInfo(ObjectName) method on the mbean server.checkGetMBeanInfo in interface JMXAuthorizationCheckername - the name of the MBean to analyzeException - if the subject is not authorized.public void checkIsInstanceOf(ObjectName name, String className) throws Exception
JMXAuthorizationCheckerMBeanServerConnection.isInstanceOf(ObjectName, String) method on the mbean server.checkIsInstanceOf in interface JMXAuthorizationCheckername - the object name of the MBean.className - the name of the class.Exception - if the subject is not authorized.Copyright © 2005-2018 JPPF Team.