Package javaforce

Class KeyMgmt

java.lang.Object
javaforce.KeyMgmt

public class KeyMgmt extends Object
  • Constructor Details

    • KeyMgmt

      public KeyMgmt()
  • Method Details

    • keytool

      public static boolean keytool(String[] args)
      Executes keytool directly
    • open

      public boolean open(InputStream is, char[] pwd)
      Open an existing keystore (Note: use null for InputStream to create a blank keystore)
    • save

      public boolean save(OutputStream os, char[] pwd)
    • loadKEYandCRT

      public boolean loadKEYandCRT(String alias, InputStream keyStream, InputStream certStream, char[] pwd)
    • loadCRT

      public boolean loadCRT(String alias, InputStream certStream)
    • hasCRT

      public boolean hasCRT(InputStream certStream)
    • getCRT

      public Certificate getCRT(String alias)
    • getKEY

      public Key getKEY(String alias, char[] password)
    • fingerprintSHA256

      public static String fingerprintSHA256(byte[] key)
    • getKeyStore

      public KeyStore getKeyStore()
    • getPassword

      public char[] getPassword()