public abstract class AbstractEnableAuthenticationCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>, DMRCommand
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEnableAuthenticationCommand(AuthFactorySpec factorySpec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildRequestprotected AbstractEnableAuthenticationCommand(AuthFactorySpec factorySpec)
public AuthFactorySpec getFactorySpec()
protected abstract String getMechanism()
protected abstract void secure(CommandContext ctx, AuthSecurityBuilder builder) throws Exception
Exceptionprotected abstract String getOOTBFactory(CommandContext ctx) throws Exception
Exceptionprotected abstract String getSecuredEndpoint(CommandContext ctx)
protected abstract String getEnabledFactory(CommandContext ctx) throws Exception
Exceptionpublic org.aesh.command.CommandResult execute(CLICommandInvocation commandInvocation) throws org.aesh.command.CommandException, InterruptedException
execute in interface org.aesh.command.Command<CLICommandInvocation>org.aesh.command.CommandExceptionInterruptedExceptionpublic org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
buildRequest in interface DMRCommandCommandFormatExceptionprotected AuthSecurityBuilder buildSecurityRequest(CommandContext context) throws Exception
Exceptionprotected MechanismConfiguration buildLocalUserConfiguration(CommandContext ctx, boolean superUser) throws org.aesh.command.CommandException, IOException, OperationFormatException
org.aesh.command.CommandExceptionIOExceptionOperationFormatExceptionpublic static void throwInvalidOptions()
throws org.aesh.command.CommandException
org.aesh.command.CommandExceptionprotected static MechanismConfiguration buildExternalConfiguration(CommandContext ctx, String keyStore, String keyStoreRealmName, String roles) throws org.aesh.command.CommandException, IOException, OperationFormatException
org.aesh.command.CommandExceptionIOExceptionOperationFormatExceptionprotected static MechanismConfiguration buildUserPasswordConfiguration(RelativeFile userPropertiesFile, String fileSystemRealm, String userRoleDecoder, String exposedRealmName, RelativeFile groupPropertiesFile, String propertiesRealmName, String relativeTo) throws org.aesh.command.CommandException, IOException
org.aesh.command.CommandExceptionIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.