Package org.bouncycastle.crypto.fips
Class FipsOutputValidator<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsOutputValidator<T>
- Type Parameters:
T
- The parameters class for this verifier.
- All Implemented Interfaces:
OutputValidator<T>
public abstract class FipsOutputValidator<T extends Parameters>
extends Object
implements OutputValidator<T>
Base class for a FIPS signature verifier.
-
Method Summary
Modifier and TypeMethodDescriptionabstract T
Return the parameters for this output verifier.abstract UpdateOutputStream
Returns a stream that will accept data for the purpose of verifying a previously calculated signature.abstract boolean
Return true if the data written to the validating stream validates against the underlying implementation.
-
Method Details
-
getParameters
Description copied from interface:OutputValidator
Return the parameters for this output verifier.- Specified by:
getParameters
in interfaceOutputValidator<T extends Parameters>
- Returns:
- the verifier's parameters.
-
getValidatingStream
Description copied from interface:OutputValidator
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.- Specified by:
getValidatingStream
in interfaceOutputValidator<T extends Parameters>
- Returns:
- an UpdateOutputStream
-
isValidated
public abstract boolean isValidated()Description copied from interface:OutputValidator
Return true if the data written to the validating stream validates against the underlying implementation.- Specified by:
isValidated
in interfaceOutputValidator<T extends Parameters>
- Returns:
- true if the data validates, false otherwise.
-