harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r427936 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java
Date Wed, 02 Aug 2006 09:11:13 GMT
Author: mloenko
Date: Wed Aug  2 02:11:12 2006
New Revision: 427936

URL: http://svn.apache.org/viewvc?rev=427936&view=rev
Log:
applied patch for HARMONY-1030
Add public constructor for org.apache.harmony.security.x509.Extension.BasicConstraints

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java?rev=427936&r1=427935&r2=427936&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x509/Extension.java
Wed Aug  2 02:11:12 2006
@@ -319,15 +319,15 @@
     public static class BasicConstraints extends Extension {
         // the value of extension
         private boolean cA = false;
+
         private int pathLenConstraint = Integer.MAX_VALUE;
-            
-        // TODO: Constructor for creating the extension without 
+
+        // Constructor for creating the extension without
         // encoding provided
-        //
-        // public BasicConstraints(List keys, boolean critical) {
-        //     super(ASN1Oid.toString(BASIC_CONSTRAINTS), critical,
-        //    // make extnValue     ASN1.encode(keys));
-        // }
+        public BasicConstraints(List keys, boolean critical) {
+            super(BASIC_CONSTRAINTS, critical,
+                    ASN1.encode(keys.toArray())); // make extnValue
+        }
 
         private BasicConstraints(byte[] extnValue, byte[] rawExtnValue, 
                 byte[] encoding) throws IOException {



Mime
View raw message