Package javaforce
Class KeyMgmt
java.lang.Object
javaforce.KeyMgmt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfingerprintSHA256(byte[] key) char[]booleanhasCRT(InputStream certStream) static booleanExecutes keytool directlybooleanloadCRT(String alias, InputStream certStream) booleanloadKEYandCRT(String alias, InputStream keyStream, InputStream certStream, char[] pwd) booleanopen(InputStream is, char[] pwd) Open an existing keystore (Note: use null for InputStream to create a blank keystore)booleansave(OutputStream os, char[] pwd)
-
Constructor Details
-
KeyMgmt
public KeyMgmt()
-
-
Method Details
-
keytool
Executes keytool directly -
open
Open an existing keystore (Note: use null for InputStream to create a blank keystore) -
save
-
loadKEYandCRT
public boolean loadKEYandCRT(String alias, InputStream keyStream, InputStream certStream, char[] pwd) -
loadCRT
-
hasCRT
-
getCRT
-
getKEY
-
fingerprintSHA256
-
getKeyStore
-
getPassword
public char[] getPassword()
-