< prev index next >

test/jdk/javax/security/auth/login/modules/JaasModularDefaultHandlerTest.java

Print this page

 28 import java.util.Collections;
 29 import java.util.LinkedList;
 30 import java.util.List;
 31 import java.io.File;
 32 import java.io.OutputStream;
 33 import java.lang.module.ModuleDescriptor;
 34 import java.lang.module.ModuleDescriptor.Builder;
 35 import java.util.stream.Stream;
 36 import jdk.test.lib.process.ProcessTools;
 37 import jdk.test.lib.process.OutputAnalyzer;
 38 import jdk.test.lib.util.JarUtils;
 39 import jdk.test.lib.util.ModuleInfoWriter;
 40 
 41 /*
 42  * @test
 43  * @bug 8151654 8183310
 44  * @summary Test default callback handler with all possible modular option.
 45  * @enablePreview
 46  * @modules java.base/jdk.internal.module
 47  * @library /test/lib
 48  * @build jdk.test.lib.util.JarUtils jdk.test.lib.util.ModuleInfoWriter
 49  * @build TestCallbackHandler TestLoginModule JaasClientWithDefaultHandler
 50  * @run main JaasModularDefaultHandlerTest
 51  */
 52 public class JaasModularDefaultHandlerTest {
 53 
 54     private static final Path SRC = Paths.get(System.getProperty("test.src"));
 55     private static final Path TEST_CLASSES
 56             = Paths.get(System.getProperty("test.classes"));
 57     private static final Path ARTIFACT_DIR = Paths.get("jars");
 58     private static final String PS = File.pathSeparator;
 59     private static final String H_TYPE = "handler.TestCallbackHandler";
 60     private static final String C_TYPE = "login.JaasClientWithDefaultHandler";
 61 
 62     /**
 63      * Here is the naming convention followed for each jar.
 64      * h.jar   - Unnamed handler jar.
 65      * mh.jar  - Modular handler jar.
 66      * c.jar   - Unnamed client jar.
 67      * mc.jar  - Modular client jar.
 68      * amc.jar - Modular client used for automatic handler jar.

 28 import java.util.Collections;
 29 import java.util.LinkedList;
 30 import java.util.List;
 31 import java.io.File;
 32 import java.io.OutputStream;
 33 import java.lang.module.ModuleDescriptor;
 34 import java.lang.module.ModuleDescriptor.Builder;
 35 import java.util.stream.Stream;
 36 import jdk.test.lib.process.ProcessTools;
 37 import jdk.test.lib.process.OutputAnalyzer;
 38 import jdk.test.lib.util.JarUtils;
 39 import jdk.test.lib.util.ModuleInfoWriter;
 40 
 41 /*
 42  * @test
 43  * @bug 8151654 8183310
 44  * @summary Test default callback handler with all possible modular option.
 45  * @enablePreview
 46  * @modules java.base/jdk.internal.module
 47  * @library /test/lib
 48  * @build jdk.test.lib.util.JarUtils
 49  * @build TestCallbackHandler TestLoginModule JaasClientWithDefaultHandler
 50  * @run main JaasModularDefaultHandlerTest
 51  */
 52 public class JaasModularDefaultHandlerTest {
 53 
 54     private static final Path SRC = Paths.get(System.getProperty("test.src"));
 55     private static final Path TEST_CLASSES
 56             = Paths.get(System.getProperty("test.classes"));
 57     private static final Path ARTIFACT_DIR = Paths.get("jars");
 58     private static final String PS = File.pathSeparator;
 59     private static final String H_TYPE = "handler.TestCallbackHandler";
 60     private static final String C_TYPE = "login.JaasClientWithDefaultHandler";
 61 
 62     /**
 63      * Here is the naming convention followed for each jar.
 64      * h.jar   - Unnamed handler jar.
 65      * mh.jar  - Modular handler jar.
 66      * c.jar   - Unnamed client jar.
 67      * mc.jar  - Modular client jar.
 68      * amc.jar - Modular client used for automatic handler jar.
< prev index next >