public final class TimestampUtil extends Object
| Constructor and Description |
|---|
TimestampUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.tsp.TimeStampToken |
getTimestamp(byte[] tsTokenResponse)
Returns a
TimeStampToken from either an unwrapped CMS token or a
wrapped RFC 3161 response, trying the unwrapped form first. |
static org.bouncycastle.tsp.TimeStampResponse |
getTimestampResponse(byte[] tsTokenResponse)
Parses a (possibly base64-encoded) RFC 3161 TimeStampResponse.
|
static org.bouncycastle.tsp.TimeStampToken |
getTimeStampToken(byte[] tsToken)
Parses a (possibly base64-encoded) raw CMS
TimeStampToken. |
public static org.bouncycastle.tsp.TimeStampResponse getTimestampResponse(byte[] tsTokenResponse)
throws TechnicalConnectorException
tsTokenResponse - raw or base64-encoded TSP response bytesTimeStampResponseTechnicalConnectorException - if the bytes cannot be parsed or contain no tokenpublic static org.bouncycastle.tsp.TimeStampToken getTimestamp(byte[] tsTokenResponse)
throws TechnicalConnectorException
TimeStampToken from either an unwrapped CMS token or a
wrapped RFC 3161 response, trying the unwrapped form first.tsTokenResponse - raw or base64-encoded bytesTechnicalConnectorException - if neither form can be parsedpublic static org.bouncycastle.tsp.TimeStampToken getTimeStampToken(byte[] tsToken)
throws TechnicalConnectorException
TimeStampToken.tsToken - raw or base64-encoded CMS token bytesTimeStampTokenTechnicalConnectorException - if the bytes cannot be parsed
Connector Packaging TECHNICAL 4.9.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.