@@ -265,22 +265,22 @@ private static void writeUTF8Line(OutputStream output, String line)
265265 System .out .println (">>> " + line );
266266 }
267267
268- private static KeyStore createKeyStore () throws Exception
268+ static KeyStore createKeyStore () throws Exception
269269 {
270270// KeyStore keyStore = KeyStore.getInstance("PKCS12");
271271 KeyStore keyStore = KeyStore .getInstance ("PKCS12" , ProviderUtils .PROVIDER_NAME_BC );
272272 keyStore .load (null , null );
273273 return keyStore ;
274274 }
275275
276- private static X509Certificate loadCertificate (String certPath ) throws Exception
276+ static X509Certificate loadCertificate (String certPath ) throws Exception
277277 {
278278 byte [] certEncoding = loadPEMContents (certPath , "CERTIFICATE" );
279279 CertificateFactory cf = CertificateFactory .getInstance ("X.509" );
280280 return (X509Certificate )cf .generateCertificate (new ByteArrayInputStream (certEncoding ));
281281 }
282282
283- private static PrivateKey loadKey (String keyPath ) throws Exception
283+ static PrivateKey loadKey (String keyPath ) throws Exception
284284 {
285285 byte [] keyEncoding = loadPEMContents (keyPath , "PRIVATE KEY" );
286286
@@ -305,7 +305,7 @@ private static PrivateKey loadKey(String keyPath) throws Exception
305305// }
306306 }
307307
308- private static KeyStore loadKeyStore (String alias , String certPath , String keyPath ) throws Exception
308+ static KeyStore loadKeyStore (String alias , String certPath , String keyPath ) throws Exception
309309 {
310310 X509Certificate cert = loadCertificate (certPath );
311311 PrivateKey key = loadKey (keyPath );
@@ -315,7 +315,7 @@ private static KeyStore loadKeyStore(String alias, String certPath, String keyPa
315315 return keyStore ;
316316 }
317317
318- private static KeyStore loadTrustStore (String caPath ) throws Exception
318+ static KeyStore loadTrustStore (String caPath ) throws Exception
319319 {
320320 X509Certificate caCert = loadCertificate (caPath );
321321
@@ -325,7 +325,7 @@ private static KeyStore loadTrustStore(String caPath) throws Exception
325325 return trustStore ;
326326 }
327327
328- private static byte [] loadPEMContents (String path , String type ) throws IOException
328+ static byte [] loadPEMContents (String path , String type ) throws IOException
329329 {
330330 InputStream s = new FileInputStream (path );
331331 PemReader p = new PemReader (new InputStreamReader (s ));
0 commit comments