jdk/src/share/classes/com/sun/net/ssl/KeyManagerFactory.java
changeset 14775 2ed01c760aea
parent 5506 202f599c92aa
equal deleted inserted replaced
14684:dc1a2233ac21 14775:2ed01c760aea
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2012, 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
    51     // The name of the key management algorithm.
    51     // The name of the key management algorithm.
    52     private String algorithm;
    52     private String algorithm;
    53 
    53 
    54     /**
    54     /**
    55      * <p>The default KeyManager can be changed by setting the value of the
    55      * <p>The default KeyManager can be changed by setting the value of the
    56      * "sun.ssl.keymanager.type" security property (in the Java security
    56      * {@code sun.ssl.keymanager.type} security property to the desired name.
    57      * properties file) to the desired name.
    57      *
    58      *
    58      * @return the default type as specified by the
    59      * @return the default type as specified in the
    59      * {@code sun.ssl.keymanager.type} security property, or an
    60      * Java security properties file, or an implementation-specific default
    60      * implementation-specific default if no such property exists.
    61      * if no such property exists.
    61      *
       
    62      * @see java.security.Security security properties
    62      */
    63      */
    63     public final static String getDefaultAlgorithm() {
    64     public final static String getDefaultAlgorithm() {
    64         String type;
    65         String type;
    65         type = AccessController.doPrivileged(new PrivilegedAction<String>() {
    66         type = AccessController.doPrivileged(new PrivilegedAction<String>() {
    66             public String run() {
    67             public String run() {