Set up SSL in JBoss Application

Add within a <security-constraint> element (in WEB-INF/web.xml file):

<user-data-constraint>

<description>Require SSL</description>

<transport-guarantee>CONFIDENTIAL</transport-guarantee>

</user-data-constraint>

To enrich your career and become a JBoss professional, visit Tekslate, the global online training platform:" JBoss Training". This course will help you achieve excellence in this field.

Upon making a request over a non-SSL connection, the browser is automatically redirected to the redirectPort as defined in the <Connector> element The element <transport-guarantee> can be NONE, INTEGRAL, or CONFIDENTIAL. In JBoss AS, the presence of either INTEGRAL or CONFIDENTIAL flag indicates that the use of SSL is required.

For an in-depth understanding on JBoss click on: