jdk/src/java.base/share/classes/java/security/KeyStore.java
changeset 32649 2ee9017c7597
parent 32413 27f4ac5e88fb
child 33241 27eb2d6abda9
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   972      * @return the default keystore type as specified by the
   972      * @return the default keystore type as specified by the
   973      * {@code keystore.type} security property, or the string {@literal "jks"}
   973      * {@code keystore.type} security property, or the string {@literal "jks"}
   974      * if no such property exists.
   974      * if no such property exists.
   975      * @see java.security.Security security properties
   975      * @see java.security.Security security properties
   976      */
   976      */
   977     public final static String getDefaultType() {
   977     public static final String getDefaultType() {
   978         String kstype;
   978         String kstype;
   979         kstype = AccessController.doPrivileged(new PrivilegedAction<>() {
   979         kstype = AccessController.doPrivileged(new PrivilegedAction<>() {
   980             public String run() {
   980             public String run() {
   981                 return Security.getProperty(KEYSTORE_TYPE);
   981                 return Security.getProperty(KEYSTORE_TYPE);
   982             }
   982             }
  1809      *
  1809      *
  1810      * @see KeyStore
  1810      * @see KeyStore
  1811      * @see javax.net.ssl.KeyStoreBuilderParameters
  1811      * @see javax.net.ssl.KeyStoreBuilderParameters
  1812      * @since 1.5
  1812      * @since 1.5
  1813      */
  1813      */
  1814     public static abstract class Builder {
  1814     public abstract static class Builder {
  1815 
  1815 
  1816         // maximum times to try the callbackhandler if the password is wrong
  1816         // maximum times to try the callbackhandler if the password is wrong
  1817         static final int MAX_CALLBACK_TRIES = 3;
  1817         static final int MAX_CALLBACK_TRIES = 3;
  1818 
  1818 
  1819         /**
  1819         /**