public class JMXAuthorizationCheckerAdapter extends java.lang.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 javax.security.auth.Subject |
subject
The authenticated subject.
|
| Constructor and Description |
|---|
JMXAuthorizationCheckerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAddNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Check that the subject can invoke the
MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) method on the mbean server. |
void |
checkAddNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Check that the subject can invoke the
MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) method on the mbean server. |
void |
checkCreateMBean(java.lang.String className,
javax.management.ObjectName name)
Check that the subject can invoke the
MBeanServerConnection.createMBean(String, ObjectName) method on the mbean server. |
void |
checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
java.lang.Object[] params,
java.lang.String[] signature)
Check that the subject can invoke the
MBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) method on the mbean server. |
void |
checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName)
Check that the subject can invoke the
MBeanServerConnection.createMBean(String, ObjectName, ObjectName) method on the mbean server. |
void |
checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName,
java.lang.Object[] params,
java.lang.String[] signature)
Check that the subject can invoke the
MBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) method on the mbean server. |
void |
checkGetAttribute(javax.management.ObjectName name,
java.lang.String attribute)
Check that the subject can invoke the
MBeanServerConnection.getAttribute(ObjectName, String) method on the mbean server. |
void |
checkGetAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
Check that the subject can invoke the
MBeanServerConnection.getAttributes(ObjectName, String[]) method on the mbean server. |
void |
checkGetDefaultDomain()
Check that the subject can invoke the
MBeanServerConnection.getDefaultDomain() method on the mbean server. |
void |
checkGetDomains()
Check that the subject can invoke the
MBeanServerConnection.getDomains() method on the mbean server. |
void |
checkGetMBeanCount()
Check that the subject can invoke the
MBeanServerConnection.getMBeanCount() method on the mbean server. |
void |
checkGetMBeanInfo(javax.management.ObjectName name)
Check that the subject can invoke the
MBeanServerConnection.getMBeanInfo(ObjectName) method on the mbean server. |
void |
checkGetObjectInstance(javax.management.ObjectName name)
Check that the subject can invoke the
MBeanServerConnection.getObjectInstance(ObjectName) method on the mbean server. |
void |
checkInvoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Check that the subject can invoke the
MBeanServerConnection.invoke(ObjectName, String, Object[], String[]) method on the mbean server. |
void |
checkIsInstanceOf(javax.management.ObjectName name,
java.lang.String className)
Check that the subject can invoke the
MBeanServerConnection.isInstanceOf(ObjectName, String) method on the mbean server. |
void |
checkIsRegistered(javax.management.ObjectName name)
Check that the subject can invoke the
MBeanServerConnection.isRegistered(ObjectName) method on the mbean server. |
void |
checkQueryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query)
Check that the subject can invoke the
MBeanServerConnection.queryMBeans(ObjectName, QueryExp) method on the mbean server. |
void |
checkQueryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
Check that the subject can invoke the
MBeanServerConnection.queryNames(ObjectName, QueryExp) method on the mbean server. |
void |
checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
Check that the subject can invoke the
MBeanServerConnection.removeNotificationListener(ObjectName, NotificationListener) method on the mbean server. |
void |
checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Check that the subject can invoke the
MBeanServerConnection.removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) method on the mbean server. |
void |
checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener)
Check that the subject can invoke the
MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) method on the mbean server. |
void |
checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Check that the subject can invoke the
MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) method on the mbean server. |
void |
checkSetAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
Check that the subject can invoke the
MBeanServerConnection.setAttribute(ObjectName, Attribute) method on the mbean server. |
void |
checkSetAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
Check that the subject can invoke the
MBeanServerConnection.setAttributes(ObjectName, AttributeList) method on the mbean server. |
void |
checkUnregisterMBean(javax.management.ObjectName name)
Check that the subject can invoke the
MBeanServerConnection.unregisterMBean(ObjectName) method on the mbean server. |
javax.security.auth.Subject |
getSubject()
Get the authenticated subject to check for authorization.
|
void |
setSubject(javax.security.auth.Subject subject)
Set the authenticated subject to check for authorization.
|
public javax.security.auth.Subject getSubject()
JMXAuthorizationCheckergetSubject in interface JMXAuthorizationCheckerSubject, if any.public void setSubject(javax.security.auth.Subject subject)
JMXAuthorizationCheckersetSubject in interface JMXAuthorizationCheckersubject - the authenticated Subject to set.public void checkCreateMBean(java.lang.String className,
javax.management.ObjectName name)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
java.lang.Object[] params,
java.lang.String[] signature)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkCreateMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName,
java.lang.Object[] params,
java.lang.String[] signature)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkUnregisterMBean(javax.management.ObjectName name)
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.unregisterMBean(ObjectName) method on the mbean server.checkUnregisterMBean in interface JMXAuthorizationCheckername - the object name of the MBean to unregister.java.lang.Exception - if the subject is not authorized.public void checkGetObjectInstance(javax.management.ObjectName name)
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.getObjectInstance(ObjectName) method on the mbean server.checkGetObjectInstance in interface JMXAuthorizationCheckername - the object name of the MBean.java.lang.Exception - if the subject is not authorized.public void checkQueryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkQueryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkIsRegistered(javax.management.ObjectName name)
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.isRegistered(ObjectName) method on the mbean server.checkIsRegistered in interface JMXAuthorizationCheckername - the object name of the MBean to check.java.lang.Exception - if the subject is not authorized.public void checkGetMBeanCount()
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.getMBeanCount() method on the mbean server.checkGetMBeanCount in interface JMXAuthorizationCheckerjava.lang.Exception - if the subject is not authorized.public void checkGetAttribute(javax.management.ObjectName name,
java.lang.String attribute)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkGetAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkSetAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkSetAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkInvoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws java.lang.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().java.lang.Exception - if the subject is not authorized.public void checkGetDefaultDomain()
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.getDefaultDomain() method on the mbean server.checkGetDefaultDomain in interface JMXAuthorizationCheckerjava.lang.Exception - if the subject is not authorized.public void checkGetDomains()
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.getDomains() method on the mbean server.checkGetDomains in interface JMXAuthorizationCheckerjava.lang.Exception - if the subject is not authorized.public void checkAddNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkAddNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkRemoveNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.public void checkGetMBeanInfo(javax.management.ObjectName name)
throws java.lang.Exception
JMXAuthorizationCheckerMBeanServerConnection.getMBeanInfo(ObjectName) method on the mbean server.checkGetMBeanInfo in interface JMXAuthorizationCheckername - the name of the MBean to analyzejava.lang.Exception - if the subject is not authorized.public void checkIsInstanceOf(javax.management.ObjectName name,
java.lang.String className)
throws java.lang.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.java.lang.Exception - if the subject is not authorized.Copyright © 2005-2018 JPPF Team.