33
33
public class ActiveDirectoryLdapsTest extends AbstractActiveDirectoryIntegrationTest {
34
34
private static final ActiveDirectoryContainer ACTIVE_DIRECTORY = new ActiveDirectoryContainer (true );
35
35
36
- private static File CERT_PEM = null ;
37
- private static File PRIVATE_KEY_PEM = null ;
36
+ private static File certPem = null ;
37
+ private static File privateKeyPem = null ;
38
38
39
39
@ BeforeAll
40
40
public static void setup () throws Exception {
41
41
generateCerts ();
42
42
43
- ACTIVE_DIRECTORY .withCopyFileToContainer (forHostPath (CERT_PEM .getAbsolutePath ()), CONTAINER_CERT_PATH );
44
- ACTIVE_DIRECTORY .withCopyFileToContainer (forHostPath (PRIVATE_KEY_PEM .getAbsolutePath ()), CONTAINER_KEY_PATH );
43
+ ACTIVE_DIRECTORY .withCopyFileToContainer (forHostPath (certPem .getAbsolutePath ()), CONTAINER_CERT_PATH );
44
+ ACTIVE_DIRECTORY .withCopyFileToContainer (forHostPath (privateKeyPem .getAbsolutePath ()), CONTAINER_KEY_PATH );
45
45
46
46
ACTIVE_DIRECTORY .start ();
47
47
}
@@ -66,13 +66,13 @@ private static void generateCerts() throws Exception {
66
66
67
67
TestSslUtils .createTrustStore (truststore .getPath (), new Password (PASSWORD ), Map .of ("client" , clientCert ));
68
68
69
- CERT_PEM = File .createTempFile ("cert" , ".pem" );
70
- try (FileWriter fw = new FileWriter (CERT_PEM )) {
69
+ certPem = File .createTempFile ("cert" , ".pem" );
70
+ try (FileWriter fw = new FileWriter (certPem )) {
71
71
fw .write (certOrKeyToString (clientCert ));
72
72
}
73
73
74
- PRIVATE_KEY_PEM = File .createTempFile ("key" , ".pem" );
75
- try (FileWriter fw = new FileWriter (PRIVATE_KEY_PEM )) {
74
+ privateKeyPem = File .createTempFile ("key" , ".pem" );
75
+ try (FileWriter fw = new FileWriter (privateKeyPem )) {
76
76
fw .write (certOrKeyToString (clientKeyPair .getPrivate ()));
77
77
}
78
78
}
0 commit comments