Package javax.management.remote

Examples of javax.management.remote.JMXAuthenticator.authenticate()


      if (environment != null)
      {
         JMXAuthenticator authenticator = (JMXAuthenticator)environment.get(JMXConnectorServer.AUTHENTICATOR);
         if (authenticator != null)
         {
            return authenticator.authenticate(credentials);
         }
      }
      return null;
   }
}
View Full Code Here


            // has the permission to create a Subject
            subject = (Subject)AccessController.doPrivileged(new PrivilegedAction()
            {
               public Object run()
               {
                  return authenticator.authenticate(credentials);
               }
            }, getContext());
            if (subject == null) throw new SecurityException("JMXAuthenticator returned null Subject");
            if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Authentication successful");
         }
View Full Code Here

        }
        if (authenticator != null) {
            if (tracing) logger.trace("newClient","got authenticator: " +
                               authenticator.getClass().getName());
            try {
                subject = authenticator.authenticate(credentials);
            } catch (SecurityException e) {
                logger.trace("newClient", "Authentication failed: " + e);
                throw e;
            }
        }
View Full Code Here

      JMXAuthenticator authenticator = (JMXAuthenticator) environment.get(JMXConnectorServer.AUTHENTICATOR);

      Subject subject = null;
      if(authenticator != null)
      {
         subject = authenticator.authenticate(credentials);
      }

      return subject;
   }
View Full Code Here

  }
        if (authenticator != null) {
      if (tracing) logger.trace("newClient","got authenticator: " +
             authenticator.getClass().getName());
      try {
    subject = authenticator.authenticate(credentials);
      } catch (SecurityException e) {
    logger.trace("newClient", "Authentication failed: " + e);
    throw e;
      }
        }
View Full Code Here

      if (environment != null)
      {
         JMXAuthenticator authenticator = (JMXAuthenticator)environment.get(JMXConnectorServer.AUTHENTICATOR);
         if (authenticator != null)
         {
            return authenticator.authenticate(credentials);
         }
      }
      return null;
   }
}
View Full Code Here

        }
        if (authenticator != null) {
            if (tracing) logger.trace("newClient","got authenticator: " +
                               authenticator.getClass().getName());
            try {
                subject = authenticator.authenticate(credentials);
            } catch (SecurityException e) {
                logger.trace("newClient", "Authentication failed: " + e);
                throw e;
            }
        }
View Full Code Here

        }

        public Subject authenticate(Object credentials) {
            final JMXAuthenticator authenticator =
                    new JMXPluggableAuthenticator(environment);
            final Subject subject = authenticator.authenticate(credentials);
            checkAccessFileEntries(subject);
            return subject;
        }

        private void checkAccessFileEntries(Subject subject) {
View Full Code Here

            public Subject authenticate(Object credentials) {
                // lazy init...
                // todo : lloyd, if this becomes a performance bottleneck, we should cache
                // on first access.
                JMXAuthenticator controller = mHabitat.getByContract(JMXAuthenticator.class);
                return controller.authenticate(credentials);
            }
        };
    }

    public synchronized void stop() {
View Full Code Here

        // Subject by whatever it returns.
        JMXAuthenticator authenticator =
      (JMXAuthenticator) env.get("jmx.remote.authenticator");
        if (authenticator != null) {
      Object[] credentials = {connectionId, subject};
      subject = authenticator.authenticate(credentials);
      if (mc instanceof SocketConnectionIf) {
          ((SocketConnectionIf)mc).setSubject(subject);
      }
      connectionId = mc.getConnectionId();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.