jdk/test/sun/security/pkcs11/KeyStore/ClientAuth.java
changeset 31270 e6470b24700d
parent 11521 d7698e6c5f51
equal deleted inserted replaced
31269:14968253ce7e 31270:e6470b24700d
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
     7  * published by the Free Software Foundation.
    25 import java.net.*;
    25 import java.net.*;
    26 import java.util.*;
    26 import java.util.*;
    27 import java.security.*;
    27 import java.security.*;
    28 import javax.net.*;
    28 import javax.net.*;
    29 import javax.net.ssl.*;
    29 import javax.net.ssl.*;
    30 import java.lang.reflect.*;
       
    31 
    30 
    32 public class ClientAuth extends PKCS11Test {
    31 public class ClientAuth extends PKCS11Test {
    33 
    32 
    34     /*
    33     /*
    35      * =============================================================
    34      * =============================================================
   221         System.setProperty("javax.net.ssl.trustStoreType", "JKS");
   220         System.setProperty("javax.net.ssl.trustStoreType", "JKS");
   222         System.setProperty("javax.net.ssl.trustStoreProvider", "SUN");
   221         System.setProperty("javax.net.ssl.trustStoreProvider", "SUN");
   223         System.setProperty("javax.net.ssl.trustStorePassword", JKS_PWD);
   222         System.setProperty("javax.net.ssl.trustStorePassword", JKS_PWD);
   224 
   223 
   225         // perform Security.addProvider of P11 provider
   224         // perform Security.addProvider of P11 provider
   226         ProviderLoader.go(System.getProperty("CUSTOM_P11_CONFIG"));
   225         Security.addProvider(getSunPKCS11(System.getProperty("CUSTOM_P11_CONFIG")));
   227 
   226 
   228         if (debug) {
   227         if (debug) {
   229             System.setProperty("javax.net.debug", "all");
   228             System.setProperty("javax.net.debug", "all");
   230         }
   229         }
   231 
   230