|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.tsp.cms.CMSTimeStampedData
public class CMSTimeStampedData
| Constructor Summary | |
|---|---|
CMSTimeStampedData(byte[] baseData)
|
|
CMSTimeStampedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
|
|
CMSTimeStampedData(java.io.InputStream in)
|
|
| Method Summary | |
|---|---|
CMSTimeStampedData |
addTimeStamp(TimeStampToken token)
Return a new timeStampedData object with the additional token attached. |
byte[] |
calculateNextHash(org.bouncycastle.operator.DigestCalculator calculator)
|
byte[] |
getContent()
|
java.net.URI |
getDataUri()
|
byte[] |
getEncoded()
|
java.lang.String |
getFileName()
|
java.lang.String |
getMediaType()
|
org.bouncycastle.operator.DigestCalculator |
getMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider)
Returns an appropriately initialised digest calculator based on the message imprint algorithm described in the first time stamp in the TemporalData for this message. |
org.bouncycastle.asn1.cms.AttributeTable |
getOtherMetaData()
|
TimeStampToken[] |
getTimeStampTokens()
|
void |
initialiseMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculator calculator)
Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation. |
void |
validate(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider,
byte[] dataDigest)
Validate the digests present in the TimeStampTokens contained in the CMSTimeStampedData. |
void |
validate(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider,
byte[] dataDigest,
TimeStampToken timeStampToken)
Validate the passed in timestamp token against the tokens and data present in the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMSTimeStampedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
public CMSTimeStampedData(java.io.InputStream in)
throws java.io.IOException
java.io.IOException
public CMSTimeStampedData(byte[] baseData)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public byte[] calculateNextHash(org.bouncycastle.operator.DigestCalculator calculator)
throws CMSException
CMSException
public CMSTimeStampedData addTimeStamp(TimeStampToken token)
throws CMSException
CMSExceptionpublic byte[] getContent()
public java.net.URI getDataUri()
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic java.lang.String getFileName()
public java.lang.String getMediaType()
public org.bouncycastle.asn1.cms.AttributeTable getOtherMetaData()
public TimeStampToken[] getTimeStampTokens()
throws CMSException
CMSException
public void initialiseMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculator calculator)
throws CMSException
calculator - the digest calculator to be initialised.
CMSException - if the MetaData is required and cannot be processed
public org.bouncycastle.operator.DigestCalculator getMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider)
throws org.bouncycastle.operator.OperatorCreationException
calculatorProvider - a provider of DigestCalculator objects.
org.bouncycastle.operator.OperatorCreationException - if the provider is unable to create the calculator.
public void validate(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider,
byte[] dataDigest)
throws ImprintDigestInvalidException,
CMSException
calculatorProvider - provider for digest calculatorsdataDigest - the calculated data digest for the message
ImprintDigestInvalidException - if an imprint digest fails to compare
CMSException - if an exception occurs processing the message.
public void validate(org.bouncycastle.operator.DigestCalculatorProvider calculatorProvider,
byte[] dataDigest,
TimeStampToken timeStampToken)
throws ImprintDigestInvalidException,
CMSException
calculatorProvider - provider for digest calculatorsdataDigest - the calculated data digest for the message.timeStampToken - the timestamp token of interest.
ImprintDigestInvalidException - if the token is not present in the message, or an imprint digest fails to compare.
CMSException - if an exception occurs processing the message.
public byte[] getEncoded()
throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||