< prev index next >

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

Print this page

 29 import java.util.LinkedList;
 30 import java.util.List;
 31 import java.util.Arrays;
 32 import java.io.File;
 33 import java.io.OutputStream;
 34 import java.lang.module.ModuleDescriptor;
 35 import java.lang.module.ModuleDescriptor.Builder;
 36 import java.util.stream.Stream;
 37 import jdk.test.lib.process.ProcessTools;
 38 import jdk.test.lib.process.OutputAnalyzer;
 39 import jdk.test.lib.util.JarUtils;
 40 import jdk.test.lib.util.ModuleInfoWriter;
 41 
 42 /*
 43  * @test
 44  * @bug 8078813 8183310
 45  * @summary Test custom JAAS login module with all possible modular option.
 46  * @enablePreview
 47  * @modules java.base/jdk.internal.module
 48  * @library /test/lib
 49  * @build jdk.test.lib.util.JarUtils jdk.test.lib.util.ModuleInfoWriter
 50  * @build TestLoginModule JaasClient
 51  * @run main JaasModularClientTest false
 52  * @run main JaasModularClientTest true
 53  */
 54 public class JaasModularClientTest {
 55 
 56     private static final Path SRC = Paths.get(System.getProperty("test.src"));
 57     private static final Path TEST_CLASSES
 58             = Paths.get(System.getProperty("test.classes"));
 59     private static final Path ARTIFACT_DIR = Paths.get("jars");
 60     private static final String PS = File.pathSeparator;
 61     private static final String L_TYPE = "login.TestLoginModule";
 62     private static final String C_TYPE = "client.JaasClient";
 63 
 64     /**
 65      * Here is the naming convention followed.
 66      * l.jar    - Unnamed login module jar.
 67      * ml.jar   - Modular login module jar.
 68      * msl.jar  - Modular login module jar provides login module service
 69      *            through module-info

 29 import java.util.LinkedList;
 30 import java.util.List;
 31 import java.util.Arrays;
 32 import java.io.File;
 33 import java.io.OutputStream;
 34 import java.lang.module.ModuleDescriptor;
 35 import java.lang.module.ModuleDescriptor.Builder;
 36 import java.util.stream.Stream;
 37 import jdk.test.lib.process.ProcessTools;
 38 import jdk.test.lib.process.OutputAnalyzer;
 39 import jdk.test.lib.util.JarUtils;
 40 import jdk.test.lib.util.ModuleInfoWriter;
 41 
 42 /*
 43  * @test
 44  * @bug 8078813 8183310
 45  * @summary Test custom JAAS login module with all possible modular option.
 46  * @enablePreview
 47  * @modules java.base/jdk.internal.module
 48  * @library /test/lib
 49  * @build jdk.test.lib.util.JarUtils
 50  * @build TestLoginModule JaasClient
 51  * @run main JaasModularClientTest false
 52  * @run main JaasModularClientTest true
 53  */
 54 public class JaasModularClientTest {
 55 
 56     private static final Path SRC = Paths.get(System.getProperty("test.src"));
 57     private static final Path TEST_CLASSES
 58             = Paths.get(System.getProperty("test.classes"));
 59     private static final Path ARTIFACT_DIR = Paths.get("jars");
 60     private static final String PS = File.pathSeparator;
 61     private static final String L_TYPE = "login.TestLoginModule";
 62     private static final String C_TYPE = "client.JaasClient";
 63 
 64     /**
 65      * Here is the naming convention followed.
 66      * l.jar    - Unnamed login module jar.
 67      * ml.jar   - Modular login module jar.
 68      * msl.jar  - Modular login module jar provides login module service
 69      *            through module-info
< prev index next >