Class AbstractDisableAuthenticationCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.auth.AbstractDisableAuthenticationCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,DMRCommand
- Direct Known Subclasses:
AbstractMgmtDisableAuthenticationCommand,HTTPServerDisableAuthCommand
public abstract class AbstractDisableAuthenticationCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>, DMRCommand
Base class for any command that disables Auth.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Constructor Description AbstractDisableAuthenticationCommand(AuthFactorySpec factorySpec)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodebuildRequest(CommandContext context)org.jboss.dmr.ModelNodebuildSecurityRequest(CommandContext context)protected abstract org.jboss.dmr.ModelNodedisableFactory(CommandContext context)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)abstract StringgetEnabledFactory(CommandContext ctx)AuthFactorySpecgetFactorySpec()protected abstract StringgetMechanism()protected abstract StringgetSecuredEndpoint(CommandContext ctx)-
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
-
AbstractDisableAuthenticationCommand
public AbstractDisableAuthenticationCommand(AuthFactorySpec factorySpec)
-
-
Method Detail
-
getFactorySpec
public AuthFactorySpec getFactorySpec()
-
getEnabledFactory
public abstract String getEnabledFactory(CommandContext ctx) throws Exception
- Throws:
Exception
-
disableFactory
protected abstract org.jboss.dmr.ModelNode disableFactory(CommandContext context) throws Exception
- Throws:
Exception
-
getSecuredEndpoint
protected abstract String getSecuredEndpoint(CommandContext ctx)
-
getMechanism
protected abstract String getMechanism()
-
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
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
buildSecurityRequest
public org.jboss.dmr.ModelNode buildSecurityRequest(CommandContext context) throws Exception
- Throws:
Exception
-
-