Class CAdESSignatureIdentifierBuilder
java.lang.Object
eu.europa.esig.dss.validation.AbstractSignatureIdentifierBuilder
eu.europa.esig.dss.cades.validation.CAdESSignatureIdentifierBuilder
- All Implemented Interfaces:
SignatureIdentifierBuilder
Builds a SignatureIdentifier for CAdES signature
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.AbstractSignatureIdentifierBuilder
signature
-
Constructor Summary
ConstructorDescriptionCAdESSignatureIdentifierBuilder
(CAdESSignature signature) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Integer
getCounterSignaturePosition
(AdvancedSignature masterSignature) Returns a current counter signature position in its master signatureprotected Integer
Returns a position of a signature in the provided fileprotected void
Write signed properties of a signature to the givenByteArrayOutputStream
Methods inherited from class eu.europa.esig.dss.validation.AbstractSignatureIdentifierBuilder
build, buildBinaries, getPositionId, getSignatureFilePosition, writeSignaturePosition, writeString
-
Constructor Details
-
CAdESSignatureIdentifierBuilder
The default constructor- Parameters:
signature
-CAdESSignature
-
-
Method Details
-
writeSignedProperties
Description copied from class:AbstractSignatureIdentifierBuilder
Write signed properties of a signature to the givenByteArrayOutputStream
- Overrides:
writeSignedProperties
in classAbstractSignatureIdentifierBuilder
- Parameters:
baos
-ByteArrayOutputStream
to enrich with the basic signature parameters- Throws:
IOException
- if in exception has been thrown
-
getCounterSignaturePosition
Description copied from class:AbstractSignatureIdentifierBuilder
Returns a current counter signature position in its master signature- Specified by:
getCounterSignaturePosition
in classAbstractSignatureIdentifierBuilder
- Parameters:
masterSignature
-AdvancedSignature
to analyze- Returns:
- counter signature position
-
getSignaturePosition
Description copied from class:AbstractSignatureIdentifierBuilder
Returns a position of a signature in the provided file- Specified by:
getSignaturePosition
in classAbstractSignatureIdentifierBuilder
- Returns:
- signature position in a file
-