Class DisableSecureAdminCommand
java.lang.Object
com.sun.enterprise.security.admin.cli.SecureAdminCommand
com.sun.enterprise.security.admin.cli.DisableSecureAdminCommand
- All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand
@Service(name="disable-secure-admin")
@PerLookup
@ExecuteOn({DAS,INSTANCE})
public class DisableSecureAdminCommand
extends SecureAdminCommand
Adjusts the DAS configuration to turn off secure admin, as if by executing these commands:
asadmin -s set configs.config.server-config.network-config.network-listeners.network-listener.admin-listener.protocol=admin-listener
asadmin -s delete-protocol sec-admin-listener
asadmin -s delete-protocol admin-http-redirect
asadmin -s delete-protocol pu-protocol
- Author:
- Tim Quinn
-
Field Summary
Fields inherited from class com.sun.enterprise.security.admin.cli.SecureAdminCommand
ADMIN_LISTENER_NAME, domain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the error key for finding a message describing an error during the operation - either enable or disable.Methods inherited from class com.sun.enterprise.security.admin.cli.SecureAdminCommand
execute, run
-
Constructor Details
-
DisableSecureAdminCommand
public DisableSecureAdminCommand()
-
-
Method Details
-
transactionErrorMessageKey
Description copied from class:SecureAdminCommand
Returns the error key for finding a message describing an error during the operation - either enable or disable.Each concrete subclass overrides this to supply the relevant message key.
- Specified by:
transactionErrorMessageKey
in classSecureAdminCommand
- Returns:
- the message key corresponding to the error message to display
-