Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1024326 // keyManagerFromKeyStore

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1695L/11K).

1  
import javax.net.ssl.*;
2  
3  
static KeyManager keyManagerFromKeyStore(File keystoreFile, char[] passphrase) ctex {
4  
  KeyStore keystore = keyStoreFromFile(keystoreFile, passphrase);
5  
  KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
6  
  keyManagerFactory.init(keystore, passphrase);
7  
  ret getSingleton(keyManagerFactory.getKeyManagers());
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024326
Snippet name: keyManagerFromKeyStore
Eternal ID of this version: #1024326/6
Text MD5: 6a74d7de2bf78338a0e3ac11b9652dae
Transpilation MD5: bf6c79f58a52a891b673ff097222155b
Author: stefan
Category: javax / https
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-02 14:52:22
Source code size: 401 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 338
Version history: 5 change(s)
Referenced in: [show references]