Interface OutputValidator<T extends Parameters>

Type Parameters:
T - the parameters type for the verifier.
All Known Subinterfaces:
OutputValidatorWithMessageRecovery<T>
All Known Implementing Classes:
FipsOutputValidator

public interface OutputValidator<T extends Parameters>
Base interface for an output validator which can be used to verify a data stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the parameters for this output verifier.
    Returns a stream that will accept data for the purpose of verifying a previously calculated signature.
    boolean
    Return true if the data written to the validating stream validates against the underlying implementation.
  • Method Details

    • getParameters

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

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

      boolean isValidated()
      Return true if the data written to the validating stream validates against the underlying implementation.
      Returns:
      true if the data validates, false otherwise.