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
  • Constructor Details

    • DisableSecureAdminCommand

      public DisableSecureAdminCommand()
  • Method Details

    • transactionErrorMessageKey

      protected String 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 class SecureAdminCommand
      Returns:
      the message key corresponding to the error message to display