Class SimpleKeySet

java.lang.Object
com.tccc.kos.commons.util.keys.SimpleKeySet
All Implemented Interfaces:
KeySet

public class SimpleKeySet extends Object implements KeySet
KeySet that is manually created from key and cert.
Version:
2022-07-02
  • Constructor Details

    • SimpleKeySet

      public SimpleKeySet(PrivateKey privateKey, CertPath certPath)
      Create a KeySet by specifying the key and cert.
      Parameters:
      privateKey - the private key to use
      certPath - the certPath to use
  • 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