Class ManagementInterfaces
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.model.ManagementInterfaces
-
public class ManagementInterfaces extends Object
Utility class to interact with management interfaces from core management.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Constructor Description ManagementInterfaces()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNodedisableHTTPAuth(CommandContext context)static org.jboss.dmr.ModelNodedisableSASL(CommandContext context, String managementInterface)static StringdisableSSL(CommandContext context, String managementInterface, org.jboss.dmr.ModelNode steps)static voidenableHTTPAuthentication(AuthSecurityBuilder http, CommandContext ctx)static voidenableSASL(String managementInterface, AuthSecurityBuilder sasl, CommandContext ctx)static voidenableSSL(String managementInterface, String secureSocketBinding, CommandContext ctx, SSLSecurityBuilder builder)static StringgetManagementInterfaceHTTPFactoryName(CommandContext ctx)static StringgetManagementInterfaceSaslFactoryName(String managementInterface, CommandContext ctx)static StringgetManagementInterfaceSSLContextName(CommandContext ctx, String interfaceName)
-
-
-
Method Detail
-
enableSSL
public static void enableSSL(String managementInterface, String secureSocketBinding, CommandContext ctx, SSLSecurityBuilder builder) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
disableSSL
public static String disableSSL(CommandContext context, String managementInterface, org.jboss.dmr.ModelNode steps) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
getManagementInterfaceSSLContextName
public static String getManagementInterfaceSSLContextName(CommandContext ctx, String interfaceName) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
getManagementInterfaceSaslFactoryName
public static String getManagementInterfaceSaslFactoryName(String managementInterface, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
getManagementInterfaceHTTPFactoryName
public static String getManagementInterfaceHTTPFactoryName(CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
enableHTTPAuthentication
public static void enableHTTPAuthentication(AuthSecurityBuilder http, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
enableSASL
public static void enableSASL(String managementInterface, AuthSecurityBuilder sasl, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
disableSASL
public static org.jboss.dmr.ModelNode disableSASL(CommandContext context, String managementInterface) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
disableHTTPAuth
public static org.jboss.dmr.ModelNode disableHTTPAuth(CommandContext context) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
-