Class KabKeySet

java.lang.Object
com.tccc.kos.commons.kab.keys.KabKeySet
All Implemented Interfaces:
KeySet

public class KabKeySet extends Object implements KeySet
KetSet that loads key and cert from a STUIDO_KEY_SET kab file.
Version:
2022-08-19
  • Constructor Details

    • KabKeySet

      public KabKeySet(File file) throws IOException
      Create a new KeySet from the specified KAB file.
      Parameters:
      file - the kab that contains the key / cert
      Throws:
      IOException
    • KabKeySet

      public KabKeySet(KabFile kab) throws IOException
      Create a new KetSet from the specified kab.
      Parameters:
      kab - the KAB file that contains the key / cert
      Throws:
      IOException
  • Method Details

    • getPrivateKey

      public PrivateKey getPrivateKey()
      Description copied from interface: KeySet
      Return the private key
      Specified by:
      getPrivateKey in interface KeySet
    • getCertPath

      public CertPath getCertPath()
      Description copied from interface: KeySet
      Return the cert path
      Specified by:
      getCertPath in interface KeySet
    • getMode

      public Mode getMode()
      Description copied from interface: KeySet
      Get the mode of the keySet
      Specified by:
      getMode in interface KeySet
    • getKab

      public KabFile getKab()