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).

import javax.net.ssl.*;

static KeyManager keyManagerFromKeyStore(File keystoreFile, char[] passphrase) ctex {
  KeyStore keystore = keyStoreFromFile(keystoreFile, passphrase);
  KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
  keyManagerFactory.init(keystore, passphrase);
  ret getSingleton(keyManagerFactory.getKeyManagers());
}

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: 214 / 336
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024327 - keyStoreFromFile