Interface OutputSigner<T extends Parameters>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getParameters()
      Return the parameters for this output signer.
      byte[] getSignature()
      Return the signature calculated on what has been written to the calculator's output stream.
      int getSignature​(byte[] output, int off)
      Output the signature value for what has been written to the signer's output stream.
      UpdateOutputStream getSigningStream()
      Returns a stream that will accept data for the purpose of calculating a signature.
    • Method Detail

      • getParameters

        T getParameters()
        Return the parameters for this output signer.
        Returns:
        the signer's parameters.
      • getSigningStream

        UpdateOutputStream getSigningStream()
        Returns a stream that will accept data for the purpose of calculating a signature. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
        Returns:
        an UpdateOutputStream
      • getSignature

        int getSignature​(byte[] output,
                         int off)
                  throws PlainInputProcessingException
        Output the signature value for what has been written to the signer's output stream.
        Parameters:
        output - output array to write the signature to.
        off - offset to start writing the signature at.
        Returns:
        the number of bytes output.
        Throws:
        PlainInputProcessingException - if the input provided cannot be processed.