jdk/src/share/classes/com/sun/org/apache/xml/internal/security/keys/storage/implementations/CertsInFilesystemDirectoryResolver.java
author mullan
Mon, 26 Sep 2011 17:20:45 -0700
changeset 10694 cf59e2badd14
parent 1337 e8d6cef36199
child 18780 f47b920867e7
permissions -rw-r--r--
7088502: Security libraries don't build with javac -Werror Summary: Changes to files in src/share/classes/com/sun/org/apache/xml/internal/security and its subpackages to remove warnings Reviewed-by: mullan Contributed-by: kurchi.subhra.hazra@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * reserved comment block
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT REMOVE OR ALTER!
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * Copyright  1999-2004 The Apache Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *  Licensed under the Apache License, Version 2.0 (the "License");
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 *  you may not use this file except in compliance with the License.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *  You may obtain a copy of the License at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 *      http://www.apache.org/licenses/LICENSE-2.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *  Unless required by applicable law or agreed to in writing, software
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 *  distributed under the License is distributed on an "AS IS" BASIS,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 *  See the License for the specific language governing permissions and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *  limitations under the License.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
package com.sun.org.apache.xml.internal.security.keys.storage.implementations;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
import java.io.File;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
import java.io.FileInputStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
import java.io.FileNotFoundException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
import java.security.cert.CertificateException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.security.cert.CertificateExpiredException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.security.cert.CertificateFactory;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.security.cert.CertificateNotYetValidException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.security.cert.X509Certificate;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.ArrayList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.Iterator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import com.sun.org.apache.xml.internal.security.keys.storage.StorageResolverException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import com.sun.org.apache.xml.internal.security.keys.storage.StorageResolverSpi;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import com.sun.org.apache.xml.internal.security.utils.Base64;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * This {@link StorageResolverSpi} makes all raw (binary) {@link X509Certificate}s
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * which reside as files in a single directory available to the {@link com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
    44
 * @author $Author: mullan $
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
public class CertsInFilesystemDirectoryResolver extends StorageResolverSpi {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
   /** {@link java.util.logging} logging facility */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    static java.util.logging.Logger log =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        java.util.logging.Logger.getLogger(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                    CertsInFilesystemDirectoryResolver.class.getName());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
   /** Field _merlinsCertificatesDir */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
   String _merlinsCertificatesDir = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
   /** Field _certs */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
    57
   private List<X509Certificate> _certs = new ArrayList<X509Certificate>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
   /** Field _iterator */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
    60
   Iterator<X509Certificate> _iterator = null;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    * @param directoryName
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    * @throws StorageResolverException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
   public CertsInFilesystemDirectoryResolver(String directoryName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
           throws StorageResolverException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      this._merlinsCertificatesDir = directoryName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
      this.readCertsFromHarddrive();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
      this._iterator = new FilesystemIterator(this._certs);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    * Method readCertsFromHarddrive
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    * @throws StorageResolverException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
   private void readCertsFromHarddrive() throws StorageResolverException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
      File certDir = new File(this._merlinsCertificatesDir);
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
    86
      ArrayList<String> al = new ArrayList<String>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
      String[] names = certDir.list();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
      for (int i = 0; i < names.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
         String currentFileName = names[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
         if (currentFileName.endsWith(".crt")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            al.add(names[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
      CertificateFactory cf = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
         cf = CertificateFactory.getInstance("X.509");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
      } catch (CertificateException ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
         throw new StorageResolverException("empty", ex);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
      if (cf == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
         throw new StorageResolverException("empty");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
      for (int i = 0; i < al.size(); i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
         String filename = certDir.getAbsolutePath() + File.separator
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   111
                           + al.get(i);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
         File file = new File(filename);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
         boolean added = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
         String dn = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
         try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            FileInputStream fis = new FileInputStream(file);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
            X509Certificate cert =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
               (X509Certificate) cf.generateCertificate(fis);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
            fis.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
            //add to ArrayList
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            cert.checkValidity();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
            this._certs.add(cert);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            dn = cert.getSubjectDN().getName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            added = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
         } catch (FileNotFoundException ex) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   130
            log.log(java.util.logging.Level.FINE, "Could not add certificate from file " + filename, ex);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
         } catch (IOException ex) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   132
            log.log(java.util.logging.Level.FINE, "Could not add certificate from file " + filename, ex);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
         } catch (CertificateNotYetValidException ex) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   134
            log.log(java.util.logging.Level.FINE, "Could not add certificate from file " + filename, ex);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
         } catch (CertificateExpiredException ex) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   136
            log.log(java.util.logging.Level.FINE, "Could not add certificate from file " + filename, ex);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
         } catch (CertificateException ex) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   138
            log.log(java.util.logging.Level.FINE, "Could not add certificate from file " + filename, ex);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
         if (added) {
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   142
            if (log.isLoggable(java.util.logging.Level.FINE))
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   143
                log.log(java.util.logging.Level.FINE, "Added certificate: " + dn);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
   /** @inheritDoc */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   149
   public Iterator<X509Certificate> getIterator() {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
      return this._iterator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    * Class FilesystemIterator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    *
1337
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   156
    * @author $Author: mullan $
e8d6cef36199 6469266: Integrate Apache XMLSec 1.4.2 into JDK 7
mullan
parents: 2
diff changeset
   157
    * @version $Revision: 1.5 $
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   159
   private static class FilesystemIterator implements Iterator<X509Certificate> {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
      /** Field _certs */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   162
      List<X509Certificate> _certs = null;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
      /** Field _i */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
      int _i;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
      /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
       * Constructor FilesystemIterator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
       *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
       * @param certs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
       */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   172
      public FilesystemIterator(List<X509Certificate> certs) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
         this._certs = certs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
         this._i = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
      /** @inheritDoc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
      public boolean hasNext() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
         return (this._i < this._certs.size());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
      /** @inheritDoc */
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   183
      public X509Certificate next() {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
         return this._certs.get(this._i++);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
      /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
       * Method remove
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
       *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
       */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
      public void remove() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
         throw new UnsupportedOperationException(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            "Can't remove keys from KeyStore");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    * Method main
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    * @param unused
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    * @throws Exception
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
   public static void main(String unused[]) throws Exception {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
      CertsInFilesystemDirectoryResolver krs =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
         new CertsInFilesystemDirectoryResolver(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            "data/ie/baltimore/merlin-examples/merlin-xmldsig-eighteen/certs");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
10694
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   209
      for (Iterator<X509Certificate> i = krs.getIterator(); i.hasNext(); ) {
cf59e2badd14 7088502: Security libraries don't build with javac -Werror
mullan
parents: 1337
diff changeset
   210
         X509Certificate cert = i.next();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
         byte[] ski =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509SKI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
               .getSKIBytesFromCert(cert);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
         System.out.println();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
         System.out.println("Base64(SKI())=                 \""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                            + Base64.encode(ski) + "\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
         System.out.println("cert.getSerialNumber()=        \""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                            + cert.getSerialNumber().toString() + "\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
         System.out.println("cert.getSubjectDN().getName()= \""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                            + cert.getSubjectDN().getName() + "\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
         System.out.println("cert.getIssuerDN().getName()=  \""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                            + cert.getIssuerDN().getName() + "\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
}