Java Code Examples for javax.management.remote.JMXAuthenticator#authenticate()

The following examples show how to use javax.management.remote.JMXAuthenticator#authenticate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConnectorBootstrap.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 2
Source File: ConnectorBootstrap.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 3
Source File: ConnectorBootstrap.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 4
Source File: JMXMessageReader.java    From JPPF with Apache License 2.0 5 votes vote down vote up
/**
 * Handle a connection reqUest.
 * @param context the JMX nio context.
 * @param request the connection request to handle.
 * @return the connection ID.
 * @throws Exception if any error occurs.
 */
private static String handleConnect(final JMXContext context, final JMXRequest request) throws Exception {
  final JMXAuthenticator authenticator = context.getChannels().getAuthenticator();
  if (authenticator != null) {
    final Subject subject = authenticator.authenticate(request.getParams()[0]);
    context.getChannels().setSubject(subject);
    final JMXAuthorizationChecker checker = context.getChannels().getAuhtorizationChecker();
    if (checker != null) checker.setSubject(subject);
  }
  return context.getConnectionID();
}
 
Example 5
Source File: ConnectorBootstrap.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 6
Source File: ConnectorBootstrap.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 7
Source File: ConnectorBootstrap.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 8
Source File: ConnectorBootstrap.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 9
Source File: ConnectorBootstrap.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 10
Source File: ConnectorBootstrap.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 11
Source File: ConnectorBootstrap.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 12
Source File: ConnectorBootstrap.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 13
Source File: ConnectorBootstrap.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}
 
Example 14
Source File: ConnectorBootstrap.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public Subject authenticate(Object credentials) {
    final JMXAuthenticator authenticator =
            new JMXPluggableAuthenticator(environment);
    final Subject subject = authenticator.authenticate(credentials);
    checkAccessFileEntries(subject);
    return subject;
}