< prev index next >

jdk/src/java.base/share/classes/sun/security/util/KeyStoreDelegator.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.security.util;
  27 
  28 import java.io.*;
  29 import java.security.*;
  30 import java.security.cert.Certificate;
  31 import java.security.cert.CertificateFactory;
  32 import java.security.cert.CertificateException;
  33 import java.util.*;
  34 
  35 import sun.security.util.Debug;
  36 
  37 /**
  38  * This class delegates to a primary or secondary keystore implementation.
  39  *
  40  * @since 1.9
  41  */
  42 
  43 public class KeyStoreDelegator extends KeyStoreSpi {
  44 
  45     private static final String KEYSTORE_TYPE_COMPAT = "keystore.type.compat";
  46     private static final Debug debug = Debug.getInstance("keystore");
  47 
  48     private String primaryType;   // the primary keystore's type
  49     private String secondaryType; // the secondary keystore's type
  50     private Class<? extends KeyStoreSpi> primaryKeyStore;
  51                                   // the primary keystore's class
  52     private Class<? extends KeyStoreSpi> secondaryKeyStore;
  53                                   // the secondary keystore's class
  54     private String type; // the delegate's type
  55     private KeyStoreSpi keystore; // the delegate
  56     private boolean compatModeEnabled = true;
  57 
  58     public KeyStoreDelegator(
  59         String primaryType,
  60         Class<? extends KeyStoreSpi> primaryKeyStore,




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.security.util;
  27 
  28 import java.io.*;
  29 import java.security.*;
  30 import java.security.cert.Certificate;
  31 import java.security.cert.CertificateFactory;
  32 import java.security.cert.CertificateException;
  33 import java.util.*;
  34 
  35 import sun.security.util.Debug;
  36 
  37 /**
  38  * This class delegates to a primary or secondary keystore implementation.
  39  *
  40  * @since 9
  41  */
  42 
  43 public class KeyStoreDelegator extends KeyStoreSpi {
  44 
  45     private static final String KEYSTORE_TYPE_COMPAT = "keystore.type.compat";
  46     private static final Debug debug = Debug.getInstance("keystore");
  47 
  48     private String primaryType;   // the primary keystore's type
  49     private String secondaryType; // the secondary keystore's type
  50     private Class<? extends KeyStoreSpi> primaryKeyStore;
  51                                   // the primary keystore's class
  52     private Class<? extends KeyStoreSpi> secondaryKeyStore;
  53                                   // the secondary keystore's class
  54     private String type; // the delegate's type
  55     private KeyStoreSpi keystore; // the delegate
  56     private boolean compatModeEnabled = true;
  57 
  58     public KeyStoreDelegator(
  59         String primaryType,
  60         Class<? extends KeyStoreSpi> primaryKeyStore,


< prev index next >