Interface OutputSigner<T extends Parameters>

Type Parameters:
T - the parameters type for the signer.
All Known Subinterfaces:
OutputSignerUsingSecureRandom<T>, OutputSignerWithMessageRecovery<T>
All Known Implementing Classes:
FipsOutputSigner, FipsOutputSignerUsingSecureRandom

public interface OutputSigner<T extends Parameters>
Base interface for an output signer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the parameters for this output signer.
    byte[]
    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.
    Returns a stream that will accept data for the purpose of calculating a signature.
  • Method Details

    • 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

      byte[] getSignature() throws PlainInputProcessingException
      Return the signature calculated on what has been written to the calculator's output stream.
      Returns:
      a signature.
      Throws:
      PlainInputProcessingException - if the input provided cannot be processed.
    • 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.