MCPcopy Create free account
hub / github.com/TrsstProject/trsst / writeEncryptionKeyPair

Method writeEncryptionKeyPair

src/main/java/com/trsst/Command.java:1084–1089  ·  view source on GitHub ↗
(KeyPair keyPair, String id,
            File file, char[] pwd)

Source from the content-addressed store, hash-verified

1082 }
1083
1084 public static final void writeEncryptionKeyPair(KeyPair keyPair, String id,
1085 File file, char[] pwd) {
1086 writeKeyPairToFile(keyPair,
1087 createCertificate(keyPair, "SHA1withECDSA"), id + '-'
1088 + Common.ENCRYPT, file, pwd);
1089 }
1090
1091 public static final KeyPair readKeyPairFromFile(String alias, File file,
1092 char[] pwd) {

Callers 2

testAppMethod · 0.95
doPostMethod · 0.95

Calls 2

writeKeyPairToFileMethod · 0.95
createCertificateMethod · 0.95

Tested by 1

testAppMethod · 0.76