public class TimeStampValidatorImpl extends Object implements TimeStampValidator, ConfigurableImplementation
TimeStampValidator by retrieving the configured keystore
and validating the timestamp signature against all available aliases.ALIASLIST, KEYSTORE| Constructor and Description |
|---|
TimeStampValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters.
|
void |
validateTimeStampToken(byte[] bs,
org.bouncycastle.tsp.TimeStampToken tsToken)
Validates a
TimeStampToken against a specific byte array, checking:
The message imprint digest matches bs
Exactly one signing certificate attribute (V1 or V2) is present
The token signature is valid against a trusted TSA certificate
|
void |
validateTimeStampToken(org.bouncycastle.tsp.TimeStampToken tsToken)
Validates the token signature against all TSA certificates in the configured keystore.
|
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
ConfigurableImplementationinitialize in interface ConfigurableImplementationparameterMap - Map with for each propertyString ,the input parameter as Object.TechnicalConnectorException - if the parameterMap is not correct.public void validateTimeStampToken(byte[] bs,
org.bouncycastle.tsp.TimeStampToken tsToken)
throws InvalidTimeStampException,
TechnicalConnectorException
TimeStampToken against a specific byte array, checking:
bsvalidateTimeStampToken in interface TimeStampValidatorbs - the original bytes that were timestampedtsToken - the timestamp token to validateInvalidTimeStampException - if any validation check failsTechnicalConnectorException - if a non-validation technical error occurspublic void validateTimeStampToken(org.bouncycastle.tsp.TimeStampToken tsToken)
throws InvalidTimeStampException,
TechnicalConnectorException
validateTimeStampToken in interface TimeStampValidatortsToken - the timestamp token to validateInvalidTimeStampException - if no trusted certificate validates the tokenTechnicalConnectorException - if a non-validation technical error occurs
Connector Packaging PERSDIETICIAN 4.9.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.