@Override @Deprecated public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = true; try { //Special authorization authorizeClassloadingOperation(delegate, DESERIALIZE); return delegate.deserialize(className, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; if (e instanceof ReflectionException) throw (ReflectionException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(className, data); } } }
@Override @Deprecated public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws OperationsException, ReflectionException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = true; try { //Special authorization authorizeClassloadingOperation(delegate, loaderName, DESERIALIZE); return delegate.deserialize(className, loaderName, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; if (e instanceof ReflectionException) throw (ReflectionException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(className, loaderName, data); } } }
@Override @Deprecated public ObjectInputStream deserialize(ObjectName name, byte[] data) throws OperationsException { Throwable error = null; MBeanServerPlugin delegate = null; final boolean readOnly = true; try { delegate = findDelegate(name); //Special authorization authorizeClassloadingOperation(delegate, name, DESERIALIZE); return delegate.deserialize(name, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(name, data); } } }
@Override @Deprecated public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = true; try { if (delegate.shouldAuthorize()) { //Special authorization authorizeSuperUserOrAdministrator(DESERIALIZE); } return delegate.deserialize(className, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; if (e instanceof ReflectionException) throw (ReflectionException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(className, data); } } }
@Override @Deprecated public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws OperationsException, ReflectionException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = true; try { if (delegate.shouldAuthorize()) { //Special authorization authorizeSuperUserOrAdministrator(DESERIALIZE); } return delegate.deserialize(className, loaderName, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; if (e instanceof ReflectionException) throw (ReflectionException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(className, loaderName, data); } } }
@Override @Deprecated public ObjectInputStream deserialize(ObjectName name, byte[] data) throws OperationsException { Throwable error = null; MBeanServerPlugin delegate = null; final boolean readOnly = true; try { delegate = findDelegate(name); if (delegate.shouldAuthorize()) { //Special authorization authorizeSuperUserOrAdministrator(DESERIALIZE); } return delegate.deserialize(name, data); } catch (Exception e) { error = e; if (e instanceof OperationsException) throw (OperationsException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).deserialize(name, data); } } }