net.sf.jguard.ext.java5.authentication.jmx
Class JGuardJMXAuthenticator
java.lang.Object
net.sf.jguard.ext.java5.authentication.jmx.JGuardJMXAuthenticator
- All Implemented Interfaces:
- javax.management.remote.JMXAuthenticator
public class JGuardJMXAuthenticator
- extends java.lang.Object
- implements javax.management.remote.JMXAuthenticator
JGuardJMXAuthenticator is a custom JMX authenticator.
It logs the user connecting from JMX.
In jee (and jee only !), it adds a special Principal to the Subject created during the login.
This is a JMXPrincipal which keeps a reference to the classloader
to identify the webapp the user is login in and thus get the correct permission provider
from the MultipleAppPolicy.
- Since:
- 1.0
- Author:
- Vincent Beretti
|
Constructor Summary |
JGuardJMXAuthenticator()
Creates a JGuardJMXAuthentication for standalone applications
Retrieves the application name from system properties :
net.sf.jguard.application.name
or com.sun.management.jmxremote.login.config
|
JGuardJMXAuthenticator(java.lang.String applicationName,
java.lang.ClassLoader classLoader)
Creates a JGuardJMXAuthenticator for jee applications |
JGuardJMXAuthenticator(java.lang.String appName,
java.lang.ClassLoader contextClassLoader,
javax.security.auth.login.Configuration conf)
|
|
Method Summary |
javax.security.auth.Subject |
authenticate(java.lang.Object credentials)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JGuardJMXAuthenticator
public JGuardJMXAuthenticator()
- Creates a JGuardJMXAuthentication for standalone applications
Retrieves the application name from system properties :
- net.sf.jguard.application.name
- or com.sun.management.jmxremote.login.config
JGuardJMXAuthenticator
public JGuardJMXAuthenticator(java.lang.String applicationName,
java.lang.ClassLoader classLoader)
- Creates a JGuardJMXAuthenticator for jee applications
- Parameters:
applicationName - - the webapp nameclassLoader - - the classloader identifying the permissionProvider in MultipleAppPolicy
JGuardJMXAuthenticator
public JGuardJMXAuthenticator(java.lang.String appName,
java.lang.ClassLoader contextClassLoader,
javax.security.auth.login.Configuration conf)
authenticate
public javax.security.auth.Subject authenticate(java.lang.Object credentials)
- Specified by:
authenticate in interface javax.management.remote.JMXAuthenticator
Copyright © 2004-2008. All Rights Reserved.