Interface SignerFactory


  • @Role
    public interface SignerFactory
    Factory creating signer for signing and verifying data integrity.
    Since:
    5.4RC1
    Version:
    $Id: 1660521353dfc632f8a4efd5df8e04ccee656ae8 $
    • Method Detail

      • getInstance

        Signer getInstance​(boolean forSigning,
                           CipherParameters parameters)
        Create a new initialized signer from parameters.
        Parameters:
        forSigning - if true the signer is initialised for signing, if false for verifying.
        parameters - the key and other data required by the cipher used by the signer.
        Returns:
        an initialized signer ready to process data.
      • getInstance

        Signer getInstance​(boolean forSigning,
                           CipherParameters parameters,
                           byte[] encoded)
        Create a new initialized signer from encoded parameters.
        Parameters:
        forSigning - if true the signer is initialised for signing, if false for verifying.
        parameters - the key and other data required by the cipher used by the signer.
        encoded - the signature algorithm identifier and parameters in ASN.1 encoded form.
        Returns:
        an initialized signer ready to process data.