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

Print this page




  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.net.*;
  30 import java.security.*;
  31 import java.security.cert.Certificate;
  32 import java.security.cert.CertificateFactory;
  33 import java.security.cert.CertificateException;
  34 import java.util.*;
  35 
  36 import sun.misc.IOUtils;
  37 import sun.security.pkcs.EncryptedPrivateKeyInfo;
  38 import sun.security.util.PolicyUtil;
  39 
  40 /**
  41  * This class provides the domain keystore type identified as "DKS".
  42  * DKS presents a collection of separate keystores as a single logical keystore.
  43  * The collection of keystores is specified in a domain configuration file which
  44  * is passed to DKS in a {@link DomainLoadStoreParameter}.
  45  * <p>
  46  * The following properties are supported:
  47  * <dl>
  48  * <dt> {@code keystoreType="<type>"} </dt>
  49  *     <dd> The keystore type. </dd>
  50  * <dt> {@code keystoreURI="<url>"} </dt>
  51  *     <dd> The keystore location. </dd>
  52  * <dt> {@code keystoreProviderName="<name>"} </dt>
  53  *     <dd> The name of the keystore's JCE provider. </dd>
  54  * <dt> {@code keystorePasswordEnv="<environment-variable>"} </dt>
  55  *     <dd> The environment variable that stores a keystore password.
  56  * <dt> {@code entryNameSeparator="<separator>"} </dt>




  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.net.*;
  30 import java.security.*;
  31 import java.security.cert.Certificate;
  32 import java.security.cert.CertificateFactory;
  33 import java.security.cert.CertificateException;
  34 import java.util.*;
  35 

  36 import sun.security.pkcs.EncryptedPrivateKeyInfo;
  37 import sun.security.util.PolicyUtil;
  38 
  39 /**
  40  * This class provides the domain keystore type identified as "DKS".
  41  * DKS presents a collection of separate keystores as a single logical keystore.
  42  * The collection of keystores is specified in a domain configuration file which
  43  * is passed to DKS in a {@link DomainLoadStoreParameter}.
  44  * <p>
  45  * The following properties are supported:
  46  * <dl>
  47  * <dt> {@code keystoreType="<type>"} </dt>
  48  *     <dd> The keystore type. </dd>
  49  * <dt> {@code keystoreURI="<url>"} </dt>
  50  *     <dd> The keystore location. </dd>
  51  * <dt> {@code keystoreProviderName="<name>"} </dt>
  52  *     <dd> The name of the keystore's JCE provider. </dd>
  53  * <dt> {@code keystorePasswordEnv="<environment-variable>"} </dt>
  54  *     <dd> The environment variable that stores a keystore password.
  55  * <dt> {@code entryNameSeparator="<separator>"} </dt>