@@ -196,7 +196,7 @@ public void testLoadPEMTrustStore() throws Exception {
196
196
X509Util .createTrustManager (
197
197
x509TestContext .getTrustStoreFile (KeyStoreFileType .PEM ).getAbsolutePath (),
198
198
x509TestContext .getTrustStorePassword (), KeyStoreFileType .PEM .getPropertyValue (), false ,
199
- false );
199
+ false , true , true );
200
200
}
201
201
202
202
@ Test
@@ -205,7 +205,7 @@ public void testLoadPEMTrustStoreNullPassword() throws Exception {
205
205
// Make sure that empty password and null password are treated the same
206
206
X509Util .createTrustManager (
207
207
x509TestContext .getTrustStoreFile (KeyStoreFileType .PEM ).getAbsolutePath (), null ,
208
- KeyStoreFileType .PEM .getPropertyValue (), false , false );
208
+ KeyStoreFileType .PEM .getPropertyValue (), false , false , true , true );
209
209
}
210
210
211
211
@ Test
@@ -215,7 +215,7 @@ public void testLoadPEMTrustStoreAutodetectStoreFileType() throws Exception {
215
215
x509TestContext .getTrustStoreFile (KeyStoreFileType .PEM ).getAbsolutePath (),
216
216
x509TestContext .getTrustStorePassword (), null , // null StoreFileType means 'autodetect from
217
217
// file extension'
218
- false , false );
218
+ false , false , true , true );
219
219
}
220
220
221
221
@ Test
@@ -288,7 +288,8 @@ public void testLoadJKSTrustStoreWithWrongPassword() {
288
288
// Attempting to load with the wrong key password should fail
289
289
X509Util .createTrustManager (
290
290
x509TestContext .getTrustStoreFile (KeyStoreFileType .JKS ).getAbsolutePath (),
291
- "wrong password" .toCharArray (), KeyStoreFileType .JKS .getPropertyValue (), true , true , true , true );
291
+ "wrong password" .toCharArray (), KeyStoreFileType .JKS .getPropertyValue (), true , true , true ,
292
+ true );
292
293
});
293
294
}
294
295
@@ -353,7 +354,7 @@ public void testLoadPKCS12TrustStoreAutodetectStoreFileType() throws Exception {
353
354
x509TestContext .getTrustStoreFile (KeyStoreFileType .PKCS12 ).getAbsolutePath (),
354
355
x509TestContext .getTrustStorePassword (), null , // null StoreFileType means 'autodetect from
355
356
// file extension'
356
- true , true );
357
+ true , true , true , true );
357
358
}
358
359
359
360
@ Test
@@ -362,7 +363,8 @@ public void testLoadPKCS12TrustStoreWithWrongPassword() {
362
363
// Attempting to load with the wrong key password should fail
363
364
X509Util .createTrustManager (
364
365
x509TestContext .getTrustStoreFile (KeyStoreFileType .PKCS12 ).getAbsolutePath (),
365
- "wrong password" .toCharArray (), KeyStoreFileType .PKCS12 .getPropertyValue (), true , true , true , true );
366
+ "wrong password" .toCharArray (), KeyStoreFileType .PKCS12 .getPropertyValue (), true , true ,
367
+ true , true );
366
368
});
367
369
}
368
370
0 commit comments