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 TReturn the parameters for this output verifier.abstract UpdateOutputStreamReturns a stream that will accept data for the purpose of verifying a previously calculated signature.abstract booleanReturn true if the data written to the validating stream validates against the underlying implementation.
-
Method Details
-
getParameters
Description copied from interface:OutputValidatorReturn the parameters for this output verifier.- Specified by:
getParametersin interfaceOutputValidator<T extends Parameters>- Returns:
- the verifier's parameters.
-
getValidatingStream
Description copied from interface:OutputValidatorReturns 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:
getValidatingStreamin interfaceOutputValidator<T extends Parameters>- Returns:
- an UpdateOutputStream
-
isValidated
public abstract boolean isValidated()Description copied from interface:OutputValidatorReturn true if the data written to the validating stream validates against the underlying implementation.- Specified by:
isValidatedin interfaceOutputValidator<T extends Parameters>- Returns:
- true if the data validates, false otherwise.
-