Class ASN1EvidenceRecord
java.lang.Object
eu.europa.esig.dss.evidencerecord.common.validation.DefaultEvidenceRecord
eu.europa.esig.dss.evidencerecord.asn1.validation.ASN1EvidenceRecord
- All Implemented Interfaces:
IdentifierBasedObject
,EvidenceRecord
ASN.1 Evidence Record implementations (RFC 4998)
-
Field Summary
Fields inherited from class eu.europa.esig.dss.evidencerecord.common.validation.DefaultEvidenceRecord
referenceValidations, structureValidationMessages
-
Constructor Summary
ConstructorDescriptionASN1EvidenceRecord
(DSSDocument document) Constructor to instantiate an ASN.1 Evidence Record from aDSSDocument
ASN1EvidenceRecord
(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord) Default constructor to instantiate an ASN.1 Evidence Record -
Method Summary
Modifier and TypeMethodDescriptionprotected EvidenceRecordTimeStampSequenceVerifier
Builds an instance ofEvidenceRecordTimeStampSequenceVerifier
to perform a cryptographic validation of an evidence recordprotected EvidenceRecordParser
Builds anEvidenceRecordParser
parsing the Evidence Record to a list of DSS DTOsprotected EvidenceRecordTimestampSource
<?> Builds a new instance of anEvidenceRecordTimestampSource
byte[]
Returns binaries of the evidence record documentorg.bouncycastle.asn1.tsp.EvidenceRecord
Gets the BouncyCastle EvidenceRecord objectReturns type of the evidence recordMethods inherited from class eu.europa.esig.dss.evidencerecord.common.validation.DefaultEvidenceRecord
addExternalEvidenceRecord, buildArchiveTimeStampSequence, getArchiveTimeStampSequence, getCertificateSource, getCRLSource, getDetachedContents, getDetachedEvidenceRecords, getDSSId, getEvidenceRecordScopes, getFilename, getId, getManifestFile, getOCSPSource, getReferenceValidation, getStructureValidationResult, getTimestampedReferences, getTimestamps, getTimestampSource, setDetachedContents, setEvidenceRecordScopes, setFilename, setManifestFile, setTimestampedReferences, validate, validateStructure
-
Constructor Details
-
ASN1EvidenceRecord
Constructor to instantiate an ASN.1 Evidence Record from aDSSDocument
- Parameters:
document
-DSSDocument
containing the evidence record
-
ASN1EvidenceRecord
public ASN1EvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord) Default constructor to instantiate an ASN.1 Evidence Record- Parameters:
evidenceRecord
-EvidenceRecord
representing the evidence record document
-
-
Method Details
-
getEvidenceRecord
public org.bouncycastle.asn1.tsp.EvidenceRecord getEvidenceRecord()Gets the BouncyCastle EvidenceRecord object- Returns:
EvidenceRecord
-
getReferenceRecordType
Description copied from interface:EvidenceRecord
Returns type of the evidence record- Returns:
EvidenceRecordTypeEnum
-
buildEvidenceRecordParser
Description copied from class:DefaultEvidenceRecord
Builds anEvidenceRecordParser
parsing the Evidence Record to a list of DSS DTOs- Specified by:
buildEvidenceRecordParser
in classDefaultEvidenceRecord
- Returns:
EvidenceRecordParser
-
buildCryptographicEvidenceRecordVerifier
Description copied from class:DefaultEvidenceRecord
Builds an instance ofEvidenceRecordTimeStampSequenceVerifier
to perform a cryptographic validation of an evidence record- Specified by:
buildCryptographicEvidenceRecordVerifier
in classDefaultEvidenceRecord
- Returns:
EvidenceRecordTimeStampSequenceVerifier
-
buildTimestampSource
Description copied from class:DefaultEvidenceRecord
Builds a new instance of anEvidenceRecordTimestampSource
- Specified by:
buildTimestampSource
in classDefaultEvidenceRecord
- Returns:
EvidenceRecordTimestampSource
-
getEncoded
public byte[] getEncoded()Description copied from interface:EvidenceRecord
Returns binaries of the evidence record document- Returns:
- byte array
-