Class AbstractEnableAuthenticationCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.auth.AbstractEnableAuthenticationCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,DMRCommand
- Direct Known Subclasses:
AbstractMgmtEnableAuthenticationCommand,HTTPServerEnableAuthCommand
public abstract class AbstractEnableAuthenticationCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>, DMRCommand
Base class for any command that enables Auth.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEnableAuthenticationCommand(AuthFactorySpec factorySpec)
-
Method Summary
-
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
-
AbstractEnableAuthenticationCommand
protected AbstractEnableAuthenticationCommand(AuthFactorySpec factorySpec)
-
-
Method Detail
-
getFactorySpec
public AuthFactorySpec getFactorySpec()
-
getMechanism
protected abstract String getMechanism()
-
secure
protected abstract void secure(CommandContext ctx, AuthSecurityBuilder builder) throws Exception
- Throws:
Exception
-
getOOTBFactory
protected abstract String getOOTBFactory(CommandContext ctx) throws Exception
- Throws:
Exception
-
getSecuredEndpoint
protected abstract String getSecuredEndpoint(CommandContext ctx)
-
getEnabledFactory
protected abstract String getEnabledFactory(CommandContext ctx) throws Exception
- Throws:
Exception
-
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
protected AuthSecurityBuilder buildSecurityRequest(CommandContext context) throws Exception
- Throws:
Exception
-
buildLocalUserConfiguration
protected MechanismConfiguration buildLocalUserConfiguration(CommandContext ctx, boolean superUser) throws org.aesh.command.CommandException, IOException, OperationFormatException
- Throws:
org.aesh.command.CommandExceptionIOExceptionOperationFormatException
-
throwInvalidOptions
public static void throwInvalidOptions() throws org.aesh.command.CommandException- Throws:
org.aesh.command.CommandException
-
buildExternalConfiguration
protected static MechanismConfiguration buildExternalConfiguration(CommandContext ctx, String keyStore, String keyStoreRealmName, String roles) throws org.aesh.command.CommandException, IOException, OperationFormatException
- Throws:
org.aesh.command.CommandExceptionIOExceptionOperationFormatException
-
buildUserPasswordConfiguration
protected static MechanismConfiguration buildUserPasswordConfiguration(RelativeFile userPropertiesFile, String fileSystemRealm, String userRoleDecoder, String exposedRealmName, RelativeFile groupPropertiesFile, String propertiesRealmName, String relativeTo, boolean plaintext) throws org.aesh.command.CommandException, IOException
- Throws:
org.aesh.command.CommandExceptionIOException
-
-