Class HTTPServerEnableSSLCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.ssl.AbstractEnableSSLCommand
-
- org.jboss.as.cli.impl.aesh.cmd.security.ssl.HTTPServerEnableSSLCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,DMRCommand
public class HTTPServerEnableSSLCommand extends AbstractEnableSSLCommand
Command to enable SSL for a given undertow server.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Constructor Description HTTPServerEnableSSLCommand(CommandContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)StringgetServerName(CommandContext ctx)protected StringgetTarget(CommandContext ctx)booleanhasAddHTTPSListener()protected booleanisSSLEnabled(CommandContext ctx)protected voidsecure(CommandContext ctx, SSLSecurityBuilder builder)-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.security.ssl.AbstractEnableSSLCommand
buildRequest
-
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
-
HTTPServerEnableSSLCommand
public HTTPServerEnableSSLCommand(CommandContext ctx)
-
-
Method Detail
-
hasAddHTTPSListener
public boolean hasAddHTTPSListener()
-
getServerName
public String getServerName(CommandContext ctx)
-
secure
protected void secure(CommandContext ctx, SSLSecurityBuilder builder) throws org.aesh.command.CommandException
- Specified by:
securein classAbstractEnableSSLCommand- Throws:
org.aesh.command.CommandException
-
execute
public org.aesh.command.CommandResult execute(CLICommandInvocation commandInvocation) throws org.aesh.command.CommandException, InterruptedException
- Specified by:
executein interfaceorg.aesh.command.Command<CLICommandInvocation>- Overrides:
executein classAbstractEnableSSLCommand- Throws:
org.aesh.command.CommandExceptionInterruptedException
-
isSSLEnabled
protected boolean isSSLEnabled(CommandContext ctx) throws Exception
- Specified by:
isSSLEnabledin classAbstractEnableSSLCommand- Throws:
Exception
-
getTarget
protected String getTarget(CommandContext ctx)
- Specified by:
getTargetin classAbstractEnableSSLCommand
-
-