tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/security SecurityInterceptor.java
Date Sat, 13 Nov 1999 18:58:13 GMT
craigmcc    99/11/13 10:58:12

  Modified:    src/share/org/apache/tomcat/security
                        SecurityInterceptor.java
  Log:
  Simplify the <transport-guarantee> test.  If any restriction other than NONE
  is specified, check that request.isSecure() returns true.
  
  Revision  Changes    Path
  1.3       +8 -9      jakarta-tomcat/src/share/org/apache/tomcat/security/SecurityInterceptor.java
  
  Index: SecurityInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/SecurityInterceptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SecurityInterceptor.java	1999/11/13 03:59:34	1.2
  +++ SecurityInterceptor.java	1999/11/13 18:58:08	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/SecurityInterceptor.java,v
1.2 1999/11/13 03:59:34 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 1999/11/13 03:59:34 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/SecurityInterceptor.java,v
1.3 1999/11/13 18:58:08 craigmcc Exp $
  + * $Revision: 1.3 $
  + * $Date: 1999/11/13 18:58:08 $
    *
    * ====================================================================
    *
  @@ -491,12 +491,11 @@
   	String guarantee = user.getTransportGuarantee();
   	if (guarantee == null)
   	    return;
  -	if (guarantee.equals(UserDataConstraint.INTEGRAL_TRANSPORT) ||
  -	    guarantee.equals(UserDataConstraint.CONFIDENTIAL_TRANSPORT)) {
  -	    if (!req.isSecure()) {
  -		;	// XXX - Create error response, throw
  -		;	// InterceptorException
  -	    }
  +	if (guarantee.equals(UserDataConstraint.NONE_TRANSPORT))
  +	    return;
  +	if (!req.isSecure()) {
  +	    ;	// XXX - Create error response, throw
  +	    ;	// InterceptorException
   	}
   
       }
  
  
  

Mime
View raw message