src/java.base/share/classes/sun/security/provider/JavaKeyStore.java

Print this page




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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.provider;
  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.misc.IOUtils;
  36 import sun.security.pkcs.EncryptedPrivateKeyInfo;
  37 import sun.security.pkcs12.PKCS12KeyStore;

  38 import sun.security.util.KeyStoreDelegator;
  39 
  40 /**
  41  * This class provides the keystore implementation referred to as "JKS".
  42  *
  43  * @author Jan Luehe
  44  * @author David Brownell
  45  *
  46  *
  47  * @see KeyProtector
  48  * @see java.security.KeyStoreSpi
  49  * @see KeyTool
  50  *
  51  * @since 1.2
  52  */
  53 
  54 public abstract class JavaKeyStore extends KeyStoreSpi {
  55 
  56     // regular JKS
  57     public static final class JKS extends JavaKeyStore {




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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.provider;
  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.pkcs.EncryptedPrivateKeyInfo;
  36 import sun.security.pkcs12.PKCS12KeyStore;
  37 import sun.security.util.IOUtils;
  38 import sun.security.util.KeyStoreDelegator;
  39 
  40 /**
  41  * This class provides the keystore implementation referred to as "JKS".
  42  *
  43  * @author Jan Luehe
  44  * @author David Brownell
  45  *
  46  *
  47  * @see KeyProtector
  48  * @see java.security.KeyStoreSpi
  49  * @see KeyTool
  50  *
  51  * @since 1.2
  52  */
  53 
  54 public abstract class JavaKeyStore extends KeyStoreSpi {
  55 
  56     // regular JKS
  57     public static final class JKS extends JavaKeyStore {