Class AbstractEnableSSLCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.ssl.AbstractEnableSSLCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,DMRCommand
- Direct Known Subclasses:
HTTPServerEnableSSLCommand,ManagementEnableSSLCommand
public abstract class AbstractEnableSSLCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>, DMRCommand
Base class for any command that enables SSL.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEnableSSLCommand(CommandContext initCtx)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodebuildRequest(CommandContext context)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)protected abstract StringgetTarget(CommandContext ctx)protected abstract booleanisSSLEnabled(CommandContext ctx)protected abstract voidsecure(CommandContext ctx, SSLSecurityBuilder ssl)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.core.cli.command.DMRCommand
buildRequest
-
-
-
-
Constructor Detail
-
AbstractEnableSSLCommand
protected AbstractEnableSSLCommand(CommandContext initCtx)
-
-
Method Detail
-
secure
protected abstract void secure(CommandContext ctx, SSLSecurityBuilder ssl) throws org.aesh.command.CommandException
- Throws:
org.aesh.command.CommandException
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
isSSLEnabled
protected abstract boolean isSSLEnabled(CommandContext ctx) throws Exception
- Throws:
Exception
-
getTarget
protected abstract String getTarget(CommandContext ctx)
-
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
-
-