Interface PackageEncryptor

    • Method Detail

      • checkSignature

        boolean checkSignature​(Package sourcePackage)
                        throws ActionException
        Verifies the signature of a package with the public key specified in the implementation constructor
        Parameters:
        sourcePackage - the package which signature to check
        Returns:
        true if the signature can be confirmed with the current set of key pairs
        Throws:
        ActionException - in case an error has occurred while checking the signature of the message
      • getKeystoreAliases

        String[] getKeystoreAliases​(String keystoreType)
                             throws ActionException
        Get all aliases in a keystore with specified type
        Parameters:
        keystoreType - the keystore type ( JKS, PKCS12, ... )
        Returns:
        array of all aliases in the keystore
        Throws:
        ActionException - in case an error has occurred while reading the keystore