test/jdk/sun/security/krb5/auto/UnboundSSLPrincipalProperty.java
changeset 48668 2da4a52715d8
parent 47216 71c04702a3d5
equal deleted inserted replaced
48667:f2344724a475 48668:2da4a52715d8
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, 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.
    28 import java.util.Map;
    28 import java.util.Map;
    29 import javax.security.auth.login.LoginException;
    29 import javax.security.auth.login.LoginException;
    30 
    30 
    31 /*
    31 /*
    32  * @test
    32  * @test
    33  * @bug 8025123
    33  * @bug 8025123 8194486
    34  * @summary Checks if an unbound server uses a service principal
    34  * @summary Checks if an unbound server uses a service principal
    35  *          from sun.security.krb5.principal system property if specified
    35  *          from sun.security.krb5.principal system property if specified
    36  * @run main/othervm UnboundSSLPrincipalProperty
    36  * @library /test/lib
       
    37  * @run main jdk.test.lib.FileInstaller TestHosts TestHosts
       
    38  * @run main/othervm -Djdk.net.hosts.file=TestHosts UnboundSSLPrincipalProperty
    37  *                              unbound.ssl.jaas.conf server_star
    39  *                              unbound.ssl.jaas.conf server_star
    38  * @run main/othervm UnboundSSLPrincipalProperty
    40  * @run main/othervm -Djdk.net.hosts.file=TestHosts UnboundSSLPrincipalProperty
    39  *                              unbound.ssl.jaas.conf server_multiple_principals
    41  *                              unbound.ssl.jaas.conf server_multiple_principals
    40  */
    42  */
    41 public class UnboundSSLPrincipalProperty {
    43 public class UnboundSSLPrincipalProperty {
    42 
    44 
    43     public static void main(String[] args) throws IOException,
    45     public static void main(String[] args) throws IOException,