< prev index next >

jdk/src/java.base/share/classes/java/security/KeyStore.java

Print this page

        

*** 1664,1674 **** * {@link java.lang.SecurityManager#checkRead} method denies * read access to the specified file. * * @see Provider * ! * @since 1.9 */ public static final KeyStore getInstance(File file, char[] password) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException { return getInstance(file, password, null, true); --- 1664,1674 ---- * {@link java.lang.SecurityManager#checkRead} method denies * read access to the specified file. * * @see Provider * ! * @since 9 */ public static final KeyStore getInstance(File file, char[] password) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException { return getInstance(file, password, null, true);
*** 1720,1730 **** * {@link java.lang.SecurityManager#checkRead} method denies * read access to the specified file. * * @see Provider * ! * @since 1.9 */ public static final KeyStore getInstance(File file, LoadStoreParameter param) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException { return getInstance(file, null, param, false); --- 1720,1730 ---- * {@link java.lang.SecurityManager#checkRead} method denies * read access to the specified file. * * @see Provider * ! * @since 9 */ public static final KeyStore getInstance(File file, LoadStoreParameter param) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException { return getInstance(file, null, param, false);
*** 2004,2014 **** * @throws NullPointerException if file or protection is null * @throws IllegalArgumentException if protection is not an instance * of either PasswordProtection or CallbackHandlerProtection; or * if file does not exist or does not refer to a normal file * ! * @since 1.9 */ public static Builder newInstance(File file, ProtectionParameter protection) { return newInstance("", null, file, protection); --- 2004,2014 ---- * @throws NullPointerException if file or protection is null * @throws IllegalArgumentException if protection is not an instance * of either PasswordProtection or CallbackHandlerProtection; or * if file does not exist or does not refer to a normal file * ! * @since 9 */ public static Builder newInstance(File file, ProtectionParameter protection) { return newInstance("", null, file, protection);
< prev index next >