Renata,

Nunca usei, mas a especifica��o de servlets 2.2 permite
declarar um "user-data-constraint", semelhante ao "auth-constraint",
no pr�prio web.xml.

Digamos que vc. tenha um diret�rio da sua aplica��o que s� possa
ser acessado via https. A declara��o ficaria assim:


...
  <security-constraint>
      <web-resource-collection>
          <web-resource-name>area_protegida</web-resource-name>
          <description>Acesso s� via HTTPS</description>
          <url-pattern>/protegida/*</url-pattern>
          <http-method>POST</http-method>
          <http-method>GET</http-method>
      </web-resource-collection>
      <user-data-constraint>
          <description>Usar SSL</description>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
  </security-constraint>

...

A especifica��o (2.2) diz o seguinte:

<quote>
The transport-guarantee element specifies that the communication
between client and server should be NONE, INTEGRAL, or CONFIDENTIAL.
NONE means that the application does not require any transport
guarantees.
A value of INTEGRAL means that the application requires that the data
sent between the client and server be sent in such a way that it
can't be changed in transit.
CONFIDENTIAL means that the application requires that the data be
transmitted in a fashion that prevents other entities from observing
the contents of the transmission.
In most cases, the presence of the INTEGRAL or CONFIDENTIAL flag will
indicate that the use of SSL is required.
</quote>



Parece que isto atende ao seu requisito, mas, como disse, nunca testei...





----- Original Message -----
From: "Renata Prates Markert" <>
To: <[EMAIL PROTECTED]>
Sent: quinta-feira, 26 de junho de 2003 15:30
Subject: [enterprise-list] HTTP e HTTPS


Boa Tarde!

    Gostaria de utilizar https no meu site, mas n�o queria que todas as
p�ginas usassem HTTPS. Isso seria muito desperd�cio.
    Existe alguma maneira declarativa de se fazer isso no Tomcat?
    Por exemplo... Gostaria que as p�ginas A, B e C usassem HTTP e a p�gina
D usasse HTTP.
    Consegui encontrar uma maneira de fazer isso, mas terei que fazer um
refactory por todo o meu site... e n�o gostaria de ter que usar URLs
absolutas.

Agrade�o desde j�,

Renata




---------------------------------------------------------------------
Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED]
Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]

Responder a