test/jdk/sun/security/krb5/auto/RefreshKrb5Config.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.
    29 import javax.security.auth.login.LoginContext;
    29 import javax.security.auth.login.LoginContext;
    30 import javax.security.auth.login.LoginException;
    30 import javax.security.auth.login.LoginException;
    31 
    31 
    32 /*
    32 /*
    33  * @test
    33  * @test
    34  * @bug 4745056 8075297
    34  * @bug 4745056 8075297 8194486
    35  * @summary Checks if refreshKrb5Config is set to true for Krb5LoginModule,
    35  * @summary Checks if refreshKrb5Config is set to true for Krb5LoginModule,
    36  *          then configuration will be refreshed before login() method is called
    36  *          then configuration will be refreshed before login() method is called
    37  * @run main/othervm RefreshKrb5Config
    37  * @library /test/lib
       
    38  * @run main jdk.test.lib.FileInstaller TestHosts TestHosts
       
    39  * @run main/othervm -Djdk.net.hosts.file=TestHosts RefreshKrb5Config
    38  */
    40  */
    39 public class RefreshKrb5Config {
    41 public class RefreshKrb5Config {
    40 
    42 
    41     static final String TEST_SRC = System.getProperty("test.src", ".");
    43     static final String TEST_SRC = System.getProperty("test.src", ".");
    42     static final String HOST = "localhost";
    44     static final String HOST = "localhost";