Difference between revisions of "Jetty/Feature/Secure Mode"

From Eclipsepedia

< Jetty‎ | Feature
Jump to: navigation, search
(New page: {{Jetty}} == Overview == Jetty has support for running in a 'secure' mode in a couple of different ways. === Typical Jetty Startup === > java -jar start.jar OPTIONS=secure,default Thi...)
 
Line 1: Line 1:
{{Jetty}}
+
{{Jetty Feature
 +
| introduction=
 +
Jetty has support for running in a 'secure' mode in a couple of different ways.
  
== Overview ==
+
| body=
 
+
Jetty has support for running in a 'secure' mode in a couple of different ways.
+
  
 
=== Typical Jetty Startup ===
 
=== Typical Jetty Startup ===
  
> java -jar start.jar OPTIONS=secure,default
+
> java -jar start.jar OPTIONS=secure,default
  
This will start up jetty using the custom org.eclipse.jetty.policy.JettyPolicy implementation for loading and processing policy files, and install a security manager very before the jetty server starts to bootstrap itself up through the XMLConfiguration mechanism.  This mechanism allows for the specification of multiple policy files if you so choose which can be registered in the start.config file.
+
This will start up Jetty using the custom org.eclipse.jetty.policy.JettyPolicy implementation for loading and processing policy files, and install a security manager very before the Jetty server starts to bootstrap itself up through the XMLConfiguration mechanism.  This mechanism allows for the specification of multiple policy files if you so choose which can be registered in the start.config file.
  
 
=== Typical JVM Startup ===
 
=== Typical JVM Startup ===
  
> java -Djava.security.manager -Djava.security.policy=lib/secure/jetty.policy -jar start.jar
+
> java -Djava.security.manager -Djava.security.policy=lib/secure/jetty.policy -jar start.jar
  
This is the standard jdk mechanism for starting up the JVM with the policy and security manager in place.
+
This is the standard JDK mechanism for starting up the JVM with the policy and security manager in place.

Revision as of 05:15, 4 August 2009

{{Jetty Feature | introduction= Jetty has support for running in a 'secure' mode in a couple of different ways.

| body=

Typical Jetty Startup

> java -jar start.jar OPTIONS=secure,default

This will start up Jetty using the custom org.eclipse.jetty.policy.JettyPolicy implementation for loading and processing policy files, and install a security manager very before the Jetty server starts to bootstrap itself up through the XMLConfiguration mechanism. This mechanism allows for the specification of multiple policy files if you so choose which can be registered in the start.config file.

Typical JVM Startup

> java -Djava.security.manager -Djava.security.policy=lib/secure/jetty.policy -jar start.jar

This is the standard JDK mechanism for starting up the JVM with the policy and security manager in place.