(final InputStream stream, final char[] passphrase)
| 370 | } |
| 371 | |
| 372 | public static KeyStore loadKeyStore(final InputStream stream, final char[] passphrase) throws GeneralSecurityException, IOException { |
| 373 | final KeyStore ks = KeyStore.getInstance("JKS"); |
| 374 | ks.load(stream, passphrase); |
| 375 | return ks; |
| 376 | } |
| 377 | |
| 378 | public static SSLEngine initServerSSLEngine(final CAService caService, final String clientAddress) throws GeneralSecurityException, IOException { |
| 379 | final SSLContext sslContext = SSLUtils.getSSLContext(); |
no test coverage detected