Class SecurityCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,org.aesh.command.GroupCommand<CLICommandInvocation>
public class SecurityCommand extends Object implements org.aesh.command.GroupCommand<CLICommandInvocation>
Parent command of all security related commands. Contains definitions of all option names and option completers. This is the class to evolve when adding new sub commands. Contains utility methods to execute remote requests and reload the server.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSecurityCommand.FailureConsumerstatic classSecurityCommand.OptionCompleters
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SecurityCommand(CommandContext ctx, AtomicReference<EmbeddedProcessLaunch> embeddedServerRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexecute(CommandContext ctx, org.jboss.dmr.ModelNode request, SecurityCommand.FailureConsumer consumer)static voidexecute(CommandContext ctx, org.jboss.dmr.ModelNode request, SecurityCommand.FailureConsumer consumer, boolean noReload)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)static StringformatOption(String name)List<org.aesh.command.Command<CLICommandInvocation>>getCommands()
-
-
-
Field Detail
-
DEFAULT_FAILURE_CONSUMER
public static final SecurityCommand.FailureConsumer DEFAULT_FAILURE_CONSUMER
-
OPT_KEY_STORE_REALM_NAME
public static final String OPT_KEY_STORE_REALM_NAME
- See Also:
- Constant Field Values
-
OPT_FILE_SYSTEM_REALM_NAME
public static final String OPT_FILE_SYSTEM_REALM_NAME
- See Also:
- Constant Field Values
-
OPT_USER_ROLE_DECODER
public static final String OPT_USER_ROLE_DECODER
- See Also:
- Constant Field Values
-
OPT_USER_PROPERTIES_FILE
public static final String OPT_USER_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
OPT_GROUP_PROPERTIES_FILE
public static final String OPT_GROUP_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
OPT_PROPERTIES_REALM_NAME
public static final String OPT_PROPERTIES_REALM_NAME
- See Also:
- Constant Field Values
-
OPT_RELATIVE_TO
public static final String OPT_RELATIVE_TO
- See Also:
- Constant Field Values
-
OPT_PLAIN_TEXT
public static final String OPT_PLAIN_TEXT
- See Also:
- Constant Field Values
-
OPT_NO_RELOAD
public static final String OPT_NO_RELOAD
- See Also:
- Constant Field Values
-
OPT_EXPOSED_REALM
public static final String OPT_EXPOSED_REALM
- See Also:
- Constant Field Values
-
OPT_NEW_SECURITY_DOMAIN_NAME
public static final String OPT_NEW_SECURITY_DOMAIN_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_AUTH_FACTORY_NAME
public static final String OPT_NEW_AUTH_FACTORY_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_SECURITY_REALM_NAME
public static final String OPT_NEW_SECURITY_REALM_NAME
- See Also:
- Constant Field Values
-
OPT_MECHANISMS_ORDER
public static final String OPT_MECHANISMS_ORDER
- See Also:
- Constant Field Values
-
OPT_MECHANISM
public static final String OPT_MECHANISM
- See Also:
- Constant Field Values
-
OPT_SUPER_USER
public static final String OPT_SUPER_USER
- See Also:
- Constant Field Values
-
OPT_LETS_ENCRYPT
public static final String OPT_LETS_ENCRYPT
- See Also:
- Constant Field Values
-
OPT_CA_ACCOUNT
public static final String OPT_CA_ACCOUNT
- See Also:
- Constant Field Values
-
OPT_ROLES
public static final String OPT_ROLES
- See Also:
- Constant Field Values
-
OPT_INTERACTIVE
public static final String OPT_INTERACTIVE
- See Also:
- Constant Field Values
-
OPT_KEY_STORE_NAME
public static final String OPT_KEY_STORE_NAME
- See Also:
- Constant Field Values
-
OPT_KEY_STORE_PATH
public static final String OPT_KEY_STORE_PATH
- See Also:
- Constant Field Values
-
OPT_TRUSTED_CERTIFICATE_PATH
public static final String OPT_TRUSTED_CERTIFICATE_PATH
- See Also:
- Constant Field Values
-
OPT_TRUST_STORE_NAME
public static final String OPT_TRUST_STORE_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_TRUST_STORE_NAME
public static final String OPT_NEW_TRUST_STORE_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_TRUST_MANAGER_NAME
public static final String OPT_NEW_TRUST_MANAGER_NAME
- See Also:
- Constant Field Values
-
OPT_TRUST_STORE_FILE_NAME
public static final String OPT_TRUST_STORE_FILE_NAME
- See Also:
- Constant Field Values
-
OPT_TRUST_STORE_FILE_PASSWORD
public static final String OPT_TRUST_STORE_FILE_PASSWORD
- See Also:
- Constant Field Values
-
OPT_NO_TRUSTED_CERTIFICATE_VALIDATION
public static final String OPT_NO_TRUSTED_CERTIFICATE_VALIDATION
- See Also:
- Constant Field Values
-
OPT_KEY_STORE_PATH_RELATIVE_TO
public static final String OPT_KEY_STORE_PATH_RELATIVE_TO
- See Also:
- Constant Field Values
-
OPT_KEY_STORE_PASSWORD
public static final String OPT_KEY_STORE_PASSWORD
- See Also:
- Constant Field Values
-
OPT_KEY_STORE_TYPE
public static final String OPT_KEY_STORE_TYPE
- See Also:
- Constant Field Values
-
OPT_MANAGEMENT_INTERFACE
public static final String OPT_MANAGEMENT_INTERFACE
- See Also:
- Constant Field Values
-
OPT_HTTP_SECURE_SOCKET_BINDING
public static final String OPT_HTTP_SECURE_SOCKET_BINDING
- See Also:
- Constant Field Values
-
OPT_NEW_KEY_MANAGER_NAME
public static final String OPT_NEW_KEY_MANAGER_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_SSL_CONTEXT_NAME
public static final String OPT_NEW_SSL_CONTEXT_NAME
- See Also:
- Constant Field Values
-
OPT_NEW_KEY_STORE_NAME
public static final String OPT_NEW_KEY_STORE_NAME
- See Also:
- Constant Field Values
-
OPT_SERVER_NAME
public static final String OPT_SERVER_NAME
- See Also:
- Constant Field Values
-
OPT_NO_OVERRIDE_SECURITY_REALM
public static final String OPT_NO_OVERRIDE_SECURITY_REALM
- See Also:
- Constant Field Values
-
OPT_SECURITY_DOMAIN
public static final String OPT_SECURITY_DOMAIN
- See Also:
- Constant Field Values
-
OPT_REFERENCED_SECURITY_DOMAIN
public static final String OPT_REFERENCED_SECURITY_DOMAIN
- See Also:
- Constant Field Values
-
OPT_OVERRIDE_SSL_CONTEXT
public static final String OPT_OVERRIDE_SSL_CONTEXT
- See Also:
- Constant Field Values
-
OPT_ADD_HTTPS_LISTENER
public static final String OPT_ADD_HTTPS_LISTENER
- See Also:
- Constant Field Values
-
OPT_HTTPS_LISTENER_NAME
public static final String OPT_HTTPS_LISTENER_NAME
- See Also:
- Constant Field Values
-
OPT_HTTPS_LISTENER_SOCKET_BINDING_NAME
public static final String OPT_HTTPS_LISTENER_SOCKET_BINDING_NAME
- See Also:
- Constant Field Values
-
OPT_REMOVE_HTTPS_LISTENER
public static final String OPT_REMOVE_HTTPS_LISTENER
- See Also:
- Constant Field Values
-
OPT_DEFAULT_SERVER_SSL_CONTEXT
public static final String OPT_DEFAULT_SERVER_SSL_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityCommand
public SecurityCommand(CommandContext ctx, AtomicReference<EmbeddedProcessLaunch> embeddedServerRef)
-
-
Method Detail
-
getCommands
public List<org.aesh.command.Command<CLICommandInvocation>> getCommands()
- Specified by:
getCommandsin interfaceorg.aesh.command.GroupCommand<CLICommandInvocation>
-
execute
public org.aesh.command.CommandResult execute(CLICommandInvocation commandInvocation) throws org.aesh.command.CommandException, InterruptedException
- Specified by:
executein interfaceorg.aesh.command.Command<CLICommandInvocation>- Throws:
org.aesh.command.CommandExceptionInterruptedException
-
execute
public static void execute(CommandContext ctx, org.jboss.dmr.ModelNode request, SecurityCommand.FailureConsumer consumer) throws org.aesh.command.CommandException
- Throws:
org.aesh.command.CommandException
-
execute
public static void execute(CommandContext ctx, org.jboss.dmr.ModelNode request, SecurityCommand.FailureConsumer consumer, boolean noReload) throws org.aesh.command.CommandException
- Throws:
org.aesh.command.CommandException
-
-