KeyStore (SslConfig sslConfig) Exception { String keyStoreType = sslConfig.getKeyStoreType()String keyStore = sslConfig.getKeyStore()String keyStorePassword = sslConfig.getKeyStorePassword()InputStream stream = .getClassLoader().getResourceAsStream(keyStore)(stream == ) { stream = Files.(Paths.(keyStore))} (stream == ) { RuntimeException()} (InputStream is = stream) { KeyStore ret(keyStoreType != ) { ret = KeyStore.(keyStoreType)} { ret = KeyStore.(KeyStore.())} ret.load(is(keyStorePassword != ) ? keyStorePassword.trim().toCharArray() : )ret} }
项目:JFinal