@Service
@ContractsProvided(value={javax.management.remote.JMXAuthenticator.class,org.glassfish.internal.api.AdminAccessController.class})
public class GenericAdminAuthenticator
extends Object
implements org.glassfish.internal.api.AdminAccessController, JMXAuthenticator, org.glassfish.hk2.api.PostConstruct
AdminAccessController that delegates to LoginContextDriver.
com.sun.enterprise.security.cli.LDAPAdminAccessConfigurator,
com.sun.enterprise.security.cli.CreateFileUser| Constructor and Description |
|---|
GenericAdminAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
Subject |
authenticate(Object credentials)
The JMXAUthenticator's authenticate method.
|
Subject |
loginAsAdmin(org.glassfish.grizzly.http.server.Request request)
Attempts to authenticate the user as an administrator
|
Subject |
loginAsAdmin(org.glassfish.grizzly.http.server.Request request,
String hostname)
Attempts to authenticate the user submitting the request as an administrator.
|
Subject |
loginAsAdmin(String user,
String password,
String realm,
String originHost)
Attempts to authenticate the user as an administrator.
|
void |
postConstruct() |
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic Subject loginAsAdmin(String user, String password, String realm, String originHost) throws LoginException
loginAsAdmin in interface org.glassfish.internal.api.AdminAccessControlleruser - String representing the user name of the user doing an admin opearationpassword - String representing clear-text password of the user doing an admin operationrealm - String representing the name of the admin realm for given serveroriginHost - the host from which the request was sentLoginException - if authentication failsorg.glassfish.internal.api.RemoteAdminAccessException - if the connection is remote but secure admin is disabledpublic Subject loginAsAdmin(org.glassfish.grizzly.http.server.Request request) throws LoginException
loginAsAdmin in interface org.glassfish.internal.api.AdminAccessControllerrequest - the Grizzly request containing the admin requestLoginException - if authentication failsorg.glassfish.internal.api.RemoteAdminAccessException - if the connection is remote but secure admin is disabledpublic Subject loginAsAdmin(org.glassfish.grizzly.http.server.Request request, String hostname) throws LoginException
loginAsAdmin in interface org.glassfish.internal.api.AdminAccessControllerrequest - the admin requesthostname - the host from which the connection originated (if non-null, this hostname overrides the host in the request)LoginException - if authentication failsorg.glassfish.internal.api.RemoteAdminAccessException - if the connection is remote but secure admin is disabledpublic Subject authenticate(Object credentials)
authenticate in interface JMXAuthenticatorCopyright © 2017. All rights reserved.