jdk/src/java.base/share/classes/java/security/KeyStore.java
changeset 28853 29df6c77d2b7
parent 28243 47080f9ae750
child 29492 a4bf9a570035
equal deleted inserted replaced
28852:a581c7868768 28853:29df6c77d2b7
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  1616      * that file.
  1616      * that file.
  1617      * A password may be supplied to unlock the keystore data or perform an
  1617      * A password may be supplied to unlock the keystore data or perform an
  1618      * integrity check.
  1618      * integrity check.
  1619      *
  1619      *
  1620      * <p>
  1620      * <p>
  1621      * This method traverses the list of registered security {@link Providers},
  1621      * This method traverses the list of registered security
  1622      * starting with the most preferred Provider.
  1622      * {@linkplain Provider providers}, starting with the most
  1623      * For each {@link KeyStoreSpi} implementation supported by a Provider,
  1623      * preferred Provider.
  1624      * it invokes the {@link engineProbe} method to determine if it supports
  1624      * For each {@link KeyStoreSpi} implementation supported by a
  1625      * the specified keystore.
  1625      * Provider, it invokes the {@link
       
  1626      * KeyStoreSpi#engineProbe(InputStream) engineProbe} method to
       
  1627      * determine if it supports the specified keystore.
  1626      * A new KeyStore object is returned that encapsulates the KeyStoreSpi
  1628      * A new KeyStore object is returned that encapsulates the KeyStoreSpi
  1627      * implementation from the first Provider that supports the specified file.
  1629      * implementation from the first Provider that supports the specified file.
  1628      *
  1630      *
  1629      * <p> Note that the list of registered providers may be retrieved via
  1631      * <p> Note that the list of registered providers may be retrieved via
  1630      * the {@link Security#getProviders() Security.getProviders()} method.
  1632      * the {@link Security#getProviders() Security.getProviders()} method.
  1670      * that file.
  1672      * that file.
  1671      * A {@code LoadStoreParameter} may be supplied which specifies how to
  1673      * A {@code LoadStoreParameter} may be supplied which specifies how to
  1672      * unlock the keystore data or perform an integrity check.
  1674      * unlock the keystore data or perform an integrity check.
  1673      *
  1675      *
  1674      * <p>
  1676      * <p>
  1675      * This method traverses the list of registered security {@link Providers},
  1677      * This method traverses the list of registered security {@linkplain
  1676      * starting with the most preferred Provider.
  1678      * Provider providers}, starting with the most preferred Provider.
  1677      * For each {@link KeyStoreSpi} implementation supported by a Provider,
  1679      * For each {@link KeyStoreSpi} implementation supported by a
  1678      * it invokes the {@link engineProbe} method to determine if it supports
  1680      * Provider, it invokes the {@link
  1679      * the specified keystore.
  1681      * KeyStoreSpi#engineProbe(InputStream) engineProbe} method to
       
  1682      * determine if it supports the specified keystore.
  1680      * A new KeyStore object is returned that encapsulates the KeyStoreSpi
  1683      * A new KeyStore object is returned that encapsulates the KeyStoreSpi
  1681      * implementation from the first Provider that supports the specified file.
  1684      * implementation from the first Provider that supports the specified file.
  1682      *
  1685      *
  1683      * <p> Note that the list of registered providers may be retrieved via
  1686      * <p> Note that the list of registered providers may be retrieved via
  1684      * the {@link Security#getProviders() Security.getProviders()} method.
  1687      * the {@link Security#getProviders() Security.getProviders()} method.