Added SSL support to the tutorial app Jetty plugin configuration and added a requirement for SSL on the "extremely secure" page.

This commit is contained in:
Luke Taylor 2008-01-24 16:30:06 +00:00
parent d10450cfb7
commit b85f76e6c1
4 changed files with 19 additions and 1 deletions

BIN
samples/tutorial/keystore Normal file

Binary file not shown.

View File

@ -96,6 +96,18 @@
<version>6.1.5</version>
<configuration>
<contextPath>/tutorial</contextPath>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
<confidentialPort>8443</confidentialPort>
</connector>
<connector implementation="org.mortbay.jetty.security.SslSocketConnector">
<port>8443</port>
<keystore>keystore</keystore>
<password>password</password>
<keyPassword>password</keyPassword>
</connector>
</connectors>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,6 @@
Run the application directly from the checked out source tree, using the command
mvn jetty:run
This will start jetty on port 8080, with SSL support on port 8443.

View File

@ -15,7 +15,7 @@
<annotation-driven/>
<http>
<intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR"/>
<intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR" requires-channel="https"/>
<intercept-url pattern="/secure/**" access="IS_AUTHENTICATED_REMEMBERED" />
<!-- Disable web URI authorization, as we're using <annotation-driven> and have @Secured the services layer instead
<intercept-url pattern="/listAccounts.html" access="IS_AUTHENTICATED_REMEMBERED" />