Class HTTPServer
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.model.HTTPServer
-
public class HTTPServer extends Object
Utility class to interact with undertow subsystem.- Author:
- jdenise@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVER
-
Constructor Summary
Constructors Constructor Description HTTPServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNodeaddHttpsListener(String serverName, String httpsListenerName, String socketBindingName, String sslContext)static org.jboss.dmr.ModelNodedisableHTTPAuthentication(String securityDomain, CommandContext ctx)static StringdisableSSL(CommandContext context, String serverName, boolean removeHttpsListener, String httpsListener, String defaultAppSSLContext, org.jboss.dmr.ModelNode steps)static voidenableHTTPAuthentication(AuthSecurityBuilder builder, String securityDomain, CommandContext ctx)static voidenableSSL(String serverName, boolean addHttpsListener, String listenerName, String socketBinding, boolean noOverride, CommandContext context, SSLSecurityBuilder builder)static StringgetReferencedSecurityDomainName(String securityDomain, CommandContext ctx)static ApplicationSecurityDomaingetSecurityDomain(CommandContext ctx, String name)static StringgetSecurityDomainFactoryName(String securityDomain, CommandContext ctx)static StringgetSSLContextName(String serverName, String httpsListener, CommandContext ctx)static booleanhasAuthFactory(CommandContext ctx, String securityDomain)static booleanhasHttpsListener(CommandContext commandContext, String serverName, String httpsListener)static booleanisLegacySecurityRealmSupported(CommandContext commandContext)static booleanisReferencedSecurityDomainSupported(CommandContext commandContext)static booleanisUnderowSupported(CommandContext commandContext)static org.jboss.dmr.ModelNoderemoveHttpsListener(CommandContext commandContext, String serverName, String httpsListener)static voidwriteReferencedSecurityDomain(AuthSecurityBuilder authBuilder, String securityDomain, CommandContext ctx)
-
-
-
Field Detail
-
DEFAULT_SERVER
public static final String DEFAULT_SERVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
enableSSL
public static void enableSSL(String serverName, boolean addHttpsListener, String listenerName, String socketBinding, boolean noOverride, CommandContext context, SSLSecurityBuilder builder) throws OperationFormatException, IOException
- Throws:
OperationFormatExceptionIOException
-
disableSSL
public static String disableSSL(CommandContext context, String serverName, boolean removeHttpsListener, String httpsListener, String defaultAppSSLContext, org.jboss.dmr.ModelNode steps) throws OperationFormatException, IOException
- Throws:
OperationFormatExceptionIOException
-
getSSLContextName
public static String getSSLContextName(String serverName, String httpsListener, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
isUnderowSupported
public static boolean isUnderowSupported(CommandContext commandContext) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
isReferencedSecurityDomainSupported
public static boolean isReferencedSecurityDomainSupported(CommandContext commandContext) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
isLegacySecurityRealmSupported
public static boolean isLegacySecurityRealmSupported(CommandContext commandContext) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
hasHttpsListener
public static boolean hasHttpsListener(CommandContext commandContext, String serverName, String httpsListener) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
addHttpsListener
public static org.jboss.dmr.ModelNode addHttpsListener(String serverName, String httpsListenerName, String socketBindingName, String sslContext) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
removeHttpsListener
public static org.jboss.dmr.ModelNode removeHttpsListener(CommandContext commandContext, String serverName, String httpsListener) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
getSecurityDomain
public static ApplicationSecurityDomain getSecurityDomain(CommandContext ctx, String name) throws OperationFormatException, IOException
- Throws:
OperationFormatExceptionIOException
-
writeReferencedSecurityDomain
public static void writeReferencedSecurityDomain(AuthSecurityBuilder authBuilder, String securityDomain, CommandContext ctx) throws OperationFormatException
- Throws:
OperationFormatException
-
hasAuthFactory
public static boolean hasAuthFactory(CommandContext ctx, String securityDomain) throws OperationFormatException, IOException
- Throws:
OperationFormatExceptionIOException
-
enableHTTPAuthentication
public static void enableHTTPAuthentication(AuthSecurityBuilder builder, String securityDomain, CommandContext ctx) throws Exception
- Throws:
Exception
-
disableHTTPAuthentication
public static org.jboss.dmr.ModelNode disableHTTPAuthentication(String securityDomain, CommandContext ctx) throws Exception
- Throws:
Exception
-
getSecurityDomainFactoryName
public static String getSecurityDomainFactoryName(String securityDomain, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
getReferencedSecurityDomainName
public static String getReferencedSecurityDomainName(String securityDomain, CommandContext ctx) throws IOException, OperationFormatException
- Throws:
IOExceptionOperationFormatException
-
-