commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1172494 - in /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl: SSLCARevocationCheckMode.java SSLContext.java SSLCrlCheckMode.java
Date Mon, 19 Sep 2011 07:21:48 GMT
Author: mturk
Date: Mon Sep 19 07:21:47 2011
New Revision: 1172494

URL: http://svn.apache.org/viewvc?rev=1172494&view=rev
Log:
Use names closer to mod_ssl

Added:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCARevocationCheckMode.java
      - copied, changed from r1172490, commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCrlCheckMode.java
Removed:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCrlCheckMode.java
Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLContext.java

Copied: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCARevocationCheckMode.java
(from r1172490, commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCrlCheckMode.java)
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCARevocationCheckMode.java?p2=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCARevocationCheckMode.java&p1=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCrlCheckMode.java&r1=1172490&r2=1172494&rev=1172494&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCrlCheckMode.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLCARevocationCheckMode.java
Mon Sep 19 07:21:47 2011
@@ -19,7 +19,7 @@ package org.apache.commons.runtime.ssl;
 /**
  * Represents the SSL client revocation list check mode.
  */
-public enum SSLCrlCheckMode
+public enum SSLCARevocationCheckMode
 {
 
     /**
@@ -36,7 +36,7 @@ public enum SSLCrlCheckMode
     CHECK_ALL(       2);
 
     private int value;
-    private SSLCrlCheckMode(int v)
+    private SSLCARevocationCheckMode(int v)
     {
         value = v;
     }
@@ -46,9 +46,9 @@ public enum SSLCrlCheckMode
         return value;
     }
 
-    public static SSLCrlCheckMode valueOf(int value)
+    public static SSLCARevocationCheckMode valueOf(int value)
     {
-        for (SSLCrlCheckMode e : values()) {
+        for (SSLCARevocationCheckMode e : values()) {
             if (e.value == value)
                 return e;
         }

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLContext.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLContext.java?rev=1172494&r1=1172493&r2=1172494&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLContext.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ssl/SSLContext.java
Mon Sep 19 07:21:47 2011
@@ -166,7 +166,16 @@ public final class SSLContext extends Na
         setcapath0(super.pointer, path);
     }
 
-    public synchronized void setCrlCheckMode(SSLCrlCheckMode mode)
+    /**
+     * Enables certificate revocation list (CRL) checking.
+     * <p>
+     * At least one of SSLCARevocationFile or SSLCARevocationPath
+     * must be configured. When set to chain (recommended setting),
+     * CRL checks are applied to all certificates in the chain, while
+     * setting it to leaf limits the checks to the end-entity cert.
+     * </p>
+     */
+    public synchronized void setCARevocationCheck(SSLCARevocationCheckMode mode)
         throws IllegalStateException
     {
         if (super.pointer == 0L)



Mime
View raw message