Package eu.europa.esig.dss.validation
Interface AdvancedSignature
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CAdESSignature,DefaultAdvancedSignature,PAdESSignature,XAdESSignature
public interface AdvancedSignature extends Serializable
Provides an abstraction for an Advanced Electronic Signature. This ease the validation process. Every signature format : XAdES, CAdES and PAdES are treated the same.
-
-
Method Summary
Modifier and Type Method Description voidaddExternalTimestamp(TimestampToken timestamp)This method allows to add an external timestamp.voidcheckSignatureIntegrity()Verifies the signature integrity; checks if the signed content has not been tampered with.voidcheckSignaturePolicy(SignaturePolicyProvider signaturePolicyDetector)voidcheckSigningCertificate()This method checks the protection of the certificates included within the signature (XAdES: KeyInfo) against the substitution attack.List<RevocationRef>findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)Retrieves a list of foundRevocationRefs for the givenrevocationIdentifierList<RevocationRef>findRefsForRevocationToken(RevocationToken revocationToken)Retrieves a list of foundRevocationRefs for the givenrevocationTokenvoidfindSignatureScope(SignatureScopeFinder signatureScopeFinder)List<EncapsulatedRevocationTokenIdentifier>getAllFoundRevocationIdentifiers()Returns a list of allEncapsulatedRevocationTokenIdentifiers found in CRL and OCSP sourcesList<RevocationRef>getAllFoundRevocationRefs()Retrieves a list of all foundRevocationRefs present in the signatureSet<RevocationToken>getAllRevocationTokens()Retrieves the set of allRevocationTokens in the signatureList<TimestampToken>getAllTimestamps()Returns a list of all timestamps found in the signatureList<TimestampToken>getArchiveTimestamps()Returns the archive TimestampsList<CRLRef>getAttributeRevocationCRLReferences()Retrieves a list of allCRLRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>getAttributeRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getAttributeRevocationTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getAttributeRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation sourceCandidatesForSigningCertificategetCandidatesForSigningCertificate()Gets an object containing the signing certificate or information indicating why it is impossible to extract it from the signature.List<CertificateToken>getCertificateListWithinSignatureAndTimestamps()Returns a list of all certificates found into signature and timestampsList<CertificateRef>getCertificateRefs()Retrieve list of certificate refList<CertificateToken>getCertificates()Get certificates embedded in the signatureSignatureCertificateSourcegetCertificateSource()Gets a certificate source which contains ALL certificates embedded in the signature.List<SignerRole>getCertifiedSignerRoles()Returns the certified roles of the signer.List<SignerRole>getClaimedSignerRoles()Returns the claimed roles of the signer.CommitmentTypegetCommitmentTypeIndication()This method obtains the information concerning commitment type indication linked to the signatureListCRLSourcegetCompleteCRLSource()Gets a ListCRLSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objectsListOCSPSourcegetCompleteOCSPSource()Gets a ListOCSPSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objectsList<CRLRef>getCompleteRevocationCRLReferences()Retrieves a list of allCRLRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>getCompleteRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getCompleteRevocationTokens()Retrieves the list of allRevocationTokens present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesStringgetContactInfo()List<DSSDocument>getContainerContents()StringgetContentHints()StringgetContentIdentifier()List<TimestampToken>getContentTimestamps()Returns the content timestampsStringgetContentType()Returns the value of the signed attribute content-typeList<AdvancedSignature>getCounterSignatures()Returns a list of counter signatures applied to this signatureSignatureCRLSourcegetCRLSource()Gets a CRL source which contains ALL CRLs embedded in the signature.StringgetDAIdentifier()This method returns an identifier provided by the Driving Application (DA) Note: used only for XAdESSignatureLevelgetDataFoundUpToLevel()List<DSSDocument>getDetachedContents()DigestAlgorithmgetDigestAlgorithm()Retrieves the digest algorithm used for generating the signature.List<TimestampToken>getDocumentTimestamps()Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdESList<RevocationToken>getDSSDictionaryRevocationTokens()Retrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation sourceSignatureIdentifiergetDSSId()This method returns theSignatureIdentifier.EncryptionAlgorithmgetEncryptionAlgorithm()Retrieves the encryption algorithm used for generating the signature.StringgetFilter()StringgetId()This method returns the DSS unique signature id.List<DSSDocument>getManifestedDocuments()MaskGenerationFunctiongetMaskGenerationFunction()Retrieves the mask generation function used for generating the signature.AdvancedSignaturegetMasterSignature()byte[]getMessageDigestValue()StringgetMimeType()Returns the value of the signed attribute mime-typeSignatureOCSPSourcegetOCSPSource()Gets an OCSP source which contains ALL OCSP responses embedded in the signature.List<CertificateRef>getOrphanCertificateRefs()Returns a list of orphan certificate refs, that are not associated to anyCertificateTokenList<RevocationRef>getOrphanRevocationRefs()Returns a list of all orphanRevocationRefs found into the signatureSignaturePolicygetPolicyId()Returns the Signature Policy OID from the signature.CertificateTokengetProvidedSigningCertificateToken()StringgetReason()List<ReferenceValidation>getReferenceValidations()Returns individual validation foreach reference (XAdES) or for the message-imprint (CAdES)List<RevocationToken>getRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sourcesSignatureAlgorithmgetSignatureAlgorithm()Retrieves the signature algorithm (or cipher) used for generating the signature.int[]getSignatureByteRange()SignatureCryptographicVerificationgetSignatureCryptographicVerification()SignatureDigestReferencegetSignatureDigestReference(DigestAlgorithm digestAlgorithm)Returns a signature reference element as defined in TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch.StringgetSignatureFieldName()StringgetSignatureFilename()This method returns the signature filename (useful for ASiC and multiple signature files)SignatureFormgetSignatureForm()Specifies the format of the signatureSignatureLevel[]getSignatureLevels()SignatureProductionPlacegetSignatureProductionPlace()Returns information about the place where the signature was generatedList<SignatureScope>getSignatureScopes()List<TimestampToken>getSignatureTimestamps()Returns the signature timestampsbyte[]getSignatureValue()Returns the digital signature valueStringgetSignerName()List<SignerRole>getSignerRoles()Returns the list of roles of the signer.CertificateTokengetSigningCertificateToken()This method returns the signing certificate token or null if there is no valid signing certificate.DategetSigningTime()Returns the signing time included within the signature.StringgetStructureValidationResult()StringgetSubFilter()List<CRLRef>getTimestampRevocationCRLReferences()Retrieves a list of allCRLRefs present in a timestamp element NOTE: Applicable only for CAdES revocation sourceList<OCSPRef>getTimestampRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in a timestamp element NOTE: Applicable only for CAdES revocation sourceSignatureTimestampSourcegetTimestampSource()Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.List<TimestampToken>getTimestampsX1()Returns the time-stamp which is placed on the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.List<TimestampToken>getTimestampsX2()Returns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).List<RevocationToken>getTimestampValidationDataTokens()Retrieves the list of allRevocationTokens present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation sourceList<RevocationToken>getVRIDictionaryRevocationTokens()Retrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation sourcebooleanisDataForSignatureLevelPresent(SignatureLevel signatureLevel)booleanisDocHashOnlyValidation()Returns true if the validation of the signature has been performed only on Signer's Document Representation (SDR).booleanisHashOnlyValidation()Returns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR).voidpopulateCRLTokenLists(SignatureCRLSource signatureCRLSource)Fills all the missingCRLTokens from the givensignatureCRLSourcevoidpopulateOCSPTokenLists(SignatureOCSPSource signatureOCSPSource)Fills all the missingOCSPTokens from the givensignatureOCSPSourcevoidprepareTimestamps(ValidationContext validationContext)voidsetContainerContents(List<DSSDocument> containerContents)This method allows to set the container contents in the case of ASiC signature.voidsetDetachedContents(List<DSSDocument> detachedContents)This method allows to set the signed contents in the case of the detached signature.voidsetManifestFiles(List<ManifestFile> manifestFiles)This method allows to set the manifest files in the case of ASiC-E signature.voidsetMasterSignature(AdvancedSignature masterSignature)This setter allows to indicate the master signature.voidsetProvidedSigningCertificateToken(CertificateToken certificateToken)This method allows to provide a signing certificate to be used in the validation process.voidsetSignatureFilename(String signatureFilename)This method allows to set the signature filename (useful in case of ASiC)voidvalidateStructure()This method allows the structure validation of the signature.
-
-
-
Method Detail
-
getSignatureFilename
String getSignatureFilename()
This method returns the signature filename (useful for ASiC and multiple signature files)- Returns:
- the signature filename
-
setSignatureFilename
void setSignatureFilename(String signatureFilename)
This method allows to set the signature filename (useful in case of ASiC)
-
getDetachedContents
List<DSSDocument> getDetachedContents()
- Returns:
- in the case of the detached signature this is the
Listof signed contents.
-
setDetachedContents
void setDetachedContents(List<DSSDocument> detachedContents)
This method allows to set the signed contents in the case of the detached signature.- Parameters:
detachedContents-ListofDSSDocumentrepresenting the signed detached contents.
-
getContainerContents
List<DSSDocument> getContainerContents()
- Returns:
- in case of ASiC signature returns a list of container documents
-
setContainerContents
void setContainerContents(List<DSSDocument> containerContents)
This method allows to set the container contents in the case of ASiC signature.- Parameters:
containerContents-ListofDSSDocumentrepresenting the container contents.
-
setManifestFiles
void setManifestFiles(List<ManifestFile> manifestFiles)
This method allows to set the manifest files in the case of ASiC-E signature.- Parameters:
manifestFiles-ListofManifestFiles
-
getManifestedDocuments
List<DSSDocument> getManifestedDocuments()
- Returns:
- in case of ASiC-E signature returns a list of
DSSDocuments contained in the related signature manifest
-
getProvidedSigningCertificateToken
CertificateToken getProvidedSigningCertificateToken()
- Returns:
- This method returns the provided signing certificate or
null
-
setProvidedSigningCertificateToken
void setProvidedSigningCertificateToken(CertificateToken certificateToken)
This method allows to provide a signing certificate to be used in the validation process. It can happen in the case of a non-AdES signature without the signing certificate within the signature.- Parameters:
certificateToken-CertificateTokenrepresenting the signing certificate token.
-
getSignatureForm
SignatureForm getSignatureForm()
Specifies the format of the signature
-
getSignatureAlgorithm
SignatureAlgorithm getSignatureAlgorithm()
Retrieves the signature algorithm (or cipher) used for generating the signature.- Returns:
SignatureAlgorithm
-
getEncryptionAlgorithm
EncryptionAlgorithm getEncryptionAlgorithm()
Retrieves the encryption algorithm used for generating the signature.- Returns:
EncryptionAlgorithm
-
getDigestAlgorithm
DigestAlgorithm getDigestAlgorithm()
Retrieves the digest algorithm used for generating the signature.- Returns:
DigestAlgorithm
-
getMaskGenerationFunction
MaskGenerationFunction getMaskGenerationFunction()
Retrieves the mask generation function used for generating the signature.- Returns:
MaskGenerationFunction
-
getSigningTime
Date getSigningTime()
Returns the signing time included within the signature.- Returns:
Daterepresenting the signing time or null
-
getCertificateSource
SignatureCertificateSource getCertificateSource()
Gets a certificate source which contains ALL certificates embedded in the signature.- Returns:
-
getCRLSource
SignatureCRLSource getCRLSource()
Gets a CRL source which contains ALL CRLs embedded in the signature.- Returns:
SignatureCRLSource
-
getOCSPSource
SignatureOCSPSource getOCSPSource()
Gets an OCSP source which contains ALL OCSP responses embedded in the signature.- Returns:
SignatureOCSPSource
-
getCompleteCRLSource
ListCRLSource getCompleteCRLSource()
Gets a ListCRLSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objects- Returns:
ListCRLSource
-
getCompleteOCSPSource
ListOCSPSource getCompleteOCSPSource()
Gets a ListOCSPSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objects- Returns:
ListOCSPSource
-
getTimestampSource
SignatureTimestampSource getTimestampSource()
Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.- Returns:
SignatureTimestampSource
-
getCandidatesForSigningCertificate
CandidatesForSigningCertificate getCandidatesForSigningCertificate()
Gets an object containing the signing certificate or information indicating why it is impossible to extract it from the signature. If the signing certificate is identified then it is cached and the subsequent calls to this method will return this cached value. This method never returns null.- Returns:
-
setMasterSignature
void setMasterSignature(AdvancedSignature masterSignature)
This setter allows to indicate the master signature. It means that this is a countersignature.- Parameters:
masterSignature-AdvancedSignature
-
getMasterSignature
AdvancedSignature getMasterSignature()
- Returns:
AdvancedSignature
-
getSigningCertificateToken
CertificateToken getSigningCertificateToken()
This method returns the signing certificate token or null if there is no valid signing certificate. Note that to determinate the signing certificate the signature must be validated: the methodcheckSignatureIntegritymust be called.- Returns:
-
checkSignatureIntegrity
void checkSignatureIntegrity()
Verifies the signature integrity; checks if the signed content has not been tampered with. In the case of a non-AdES signature no including the signing certificate then the latter must be provided by callingsetProvidedSigningCertificateTokenIn the case of a detached signature the signed content must be provided by callingsetProvidedSigningCertificateToken
-
getSignatureCryptographicVerification
SignatureCryptographicVerification getSignatureCryptographicVerification()
- Returns:
- SignatureCryptographicVerification with all the information collected during the validation process.
-
checkSigningCertificate
void checkSigningCertificate()
This method checks the protection of the certificates included within the signature (XAdES: KeyInfo) against the substitution attack.
-
getPolicyId
SignaturePolicy getPolicyId()
Returns the Signature Policy OID from the signature.- Returns:
SignaturePolicy
-
getSignatureProductionPlace
SignatureProductionPlace getSignatureProductionPlace()
Returns information about the place where the signature was generated- Returns:
SignatureProductionPlace
-
getCommitmentTypeIndication
CommitmentType getCommitmentTypeIndication()
This method obtains the information concerning commitment type indication linked to the signature- Returns:
CommitmentType
-
getContentType
String getContentType()
Returns the value of the signed attribute content-type- Returns:
- content type as
String
-
getMimeType
String getMimeType()
Returns the value of the signed attribute mime-type- Returns:
- mime type as
String
-
getContentIdentifier
String getContentIdentifier()
- Returns:
- content identifier as
String
-
getContentHints
String getContentHints()
- Returns:
- content hints as
String
-
getSignerRoles
List<SignerRole> getSignerRoles()
Returns the list of roles of the signer.- Returns:
- list of the
SignerRoles
-
getClaimedSignerRoles
List<SignerRole> getClaimedSignerRoles()
Returns the claimed roles of the signer.- Returns:
- list of the
SignerRoles
-
getCertifiedSignerRoles
List<SignerRole> getCertifiedSignerRoles()
Returns the certified roles of the signer.- Returns:
- list of the
SignerRoles
-
getCertificates
List<CertificateToken> getCertificates()
Get certificates embedded in the signature- Returns:
- a list of certificate contained within the signature
-
getCertificateListWithinSignatureAndTimestamps
List<CertificateToken> getCertificateListWithinSignatureAndTimestamps()
Returns a list of all certificates found into signature and timestamps- Returns:
- list of
CertificateTokens
-
getContentTimestamps
List<TimestampToken> getContentTimestamps()
Returns the content timestamps- Returns:
ListofTimestampToken
-
getSignatureTimestamps
List<TimestampToken> getSignatureTimestamps()
Returns the signature timestamps- Returns:
ListofTimestampToken
-
getTimestampsX1
List<TimestampToken> getTimestampsX1()
Returns the time-stamp which is placed on the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.- Returns:
ListofTimestampToken
-
getTimestampsX2
List<TimestampToken> getTimestampsX2()
Returns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Returns:
ListofTimestampToken
-
getArchiveTimestamps
List<TimestampToken> getArchiveTimestamps()
Returns the archive Timestamps- Returns:
ListofTimestampTokens
-
getDocumentTimestamps
List<TimestampToken> getDocumentTimestamps()
Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdES- Returns:
ListofTimestampTokens
-
getAllTimestamps
List<TimestampToken> getAllTimestamps()
Returns a list of all timestamps found in the signature- Returns:
ListofTimestampTokens
-
addExternalTimestamp
void addExternalTimestamp(TimestampToken timestamp)
This method allows to add an external timestamp. The given timestamp must be processed before.- Parameters:
timestamp- the timestamp token
-
getCounterSignatures
List<AdvancedSignature> getCounterSignatures()
Returns a list of counter signatures applied to this signature- Returns:
- a
ListofAdvancedSignaturesrepresenting the counter signatures
-
getCertificateRefs
List<CertificateRef> getCertificateRefs()
Retrieve list of certificate ref- Returns:
ListofCertificateRef
-
getOrphanCertificateRefs
List<CertificateRef> getOrphanCertificateRefs()
Returns a list of orphan certificate refs, that are not associated to anyCertificateToken- Returns:
- list of found
CertificateRefs
-
getDSSId
SignatureIdentifier getDSSId()
This method returns theSignatureIdentifier.- Returns:
- unique
SignatureIdentifier
-
getId
String getId()
This method returns the DSS unique signature id. It allows to unambiguously identify each signature.- Returns:
- The signature unique Id
-
getDAIdentifier
String getDAIdentifier()
This method returns an identifier provided by the Driving Application (DA) Note: used only for XAdES- Returns:
- The signature identifier
-
isDataForSignatureLevelPresent
boolean isDataForSignatureLevelPresent(SignatureLevel signatureLevel)
- Parameters:
signatureLevel-SignatureLevelto be checked- Returns:
- true if the signature contains the data needed for this
SignatureLevel. Doesn't mean any validity of the data found.
-
getDataFoundUpToLevel
SignatureLevel getDataFoundUpToLevel()
-
getSignatureLevels
SignatureLevel[] getSignatureLevels()
- Returns:
- the list of signature levels for this type of signature, in the simple to complete order. Example: B,T,LT,LTA
-
prepareTimestamps
void prepareTimestamps(ValidationContext validationContext)
-
validateStructure
void validateStructure()
This method allows the structure validation of the signature.
-
populateCRLTokenLists
void populateCRLTokenLists(SignatureCRLSource signatureCRLSource)
Fills all the missingCRLTokens from the givensignatureCRLSource
-
populateOCSPTokenLists
void populateOCSPTokenLists(SignatureOCSPSource signatureOCSPSource)
Fills all the missingOCSPTokens from the givensignatureOCSPSource
-
getStructureValidationResult
String getStructureValidationResult()
-
checkSignaturePolicy
void checkSignaturePolicy(SignaturePolicyProvider signaturePolicyDetector)
-
findSignatureScope
void findSignatureScope(SignatureScopeFinder signatureScopeFinder)
-
getSignatureScopes
List<SignatureScope> getSignatureScopes()
-
isDocHashOnlyValidation
boolean isDocHashOnlyValidation()
Returns true if the validation of the signature has been performed only on Signer's Document Representation (SDR). (An SDR typically is built on a cryptographic hash of the Signer's Document)- Returns:
- true of it is DocHashOnly validation, false otherwise
-
isHashOnlyValidation
boolean isHashOnlyValidation()
Returns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR). EN 319 102-1 v1.1.1 (4.2.8 Data to be signed representation (DTBSR)): The DTBS preparation component shall take the DTBSF and hash it according to the hash algorithm specified in the cryptographic suite. The result of this process is the DTBSR, which is then used to create the signature. NOTE: In order for the produced hash to be representative of the DTBSF, the hashing function has the property that it is computationally infeasible to find collisions for the expected signature lifetime. Should the hash function become weak in the future, additional security measures, such as applying time-stamp tokens, can be taken.- Returns:
- true of it is HashOnly validation, false otherwise
-
getSignatureValue
byte[] getSignatureValue()
Returns the digital signature value- Returns:
- digital signature value byte array
-
getReferenceValidations
List<ReferenceValidation> getReferenceValidations()
Returns individual validation foreach reference (XAdES) or for the message-imprint (CAdES)- Returns:
- a list with one or more
ReferenceValidation
-
getSignatureDigestReference
SignatureDigestReference getSignatureDigestReference(DigestAlgorithm digestAlgorithm)
Returns a signature reference element as defined in TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch. 5.1.4.2.1.3 XML component- Parameters:
digestAlgorithm-DigestAlgorithmto use- Returns:
SignatureDigestReference
-
getAllRevocationTokens
Set<RevocationToken> getAllRevocationTokens()
Retrieves the set of allRevocationTokens in the signature- Returns:
- list of
RevocationTokens
-
getRevocationValuesTokens
List<RevocationToken> getRevocationValuesTokens()
Retrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sources- Returns:
- list of
RevocationTokens
-
getAttributeRevocationValuesTokens
List<RevocationToken> getAttributeRevocationValuesTokens()
Retrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation source- Returns:
- list of
RevocationTokens
-
getTimestampValidationDataTokens
List<RevocationToken> getTimestampValidationDataTokens()
Retrieves the list of allRevocationTokens present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation source- Returns:
- list of
RevocationTokens
-
getDSSDictionaryRevocationTokens
List<RevocationToken> getDSSDictionaryRevocationTokens()
Retrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation source- Returns:
- list of
RevocationTokens
-
getVRIDictionaryRevocationTokens
List<RevocationToken> getVRIDictionaryRevocationTokens()
Retrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation source- Returns:
- list of
RevocationTokens
-
getCompleteRevocationTokens
List<RevocationToken> getCompleteRevocationTokens()
Retrieves the list of allRevocationTokens present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
RevocationTokens
-
getAttributeRevocationTokens
List<RevocationToken> getAttributeRevocationTokens()
Retrieves the list of allRevocationTokens present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
RevocationTokens
-
getCompleteRevocationCRLReferences
List<CRLRef> getCompleteRevocationCRLReferences()
Retrieves a list of allCRLRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
CRLRefs
-
getAttributeRevocationCRLReferences
List<CRLRef> getAttributeRevocationCRLReferences()
Retrieves a list of allCRLRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
CRLRefs
-
getTimestampRevocationCRLReferences
List<CRLRef> getTimestampRevocationCRLReferences()
Retrieves a list of allCRLRefs present in a timestamp element NOTE: Applicable only for CAdES revocation source- Returns:
- list of
CRLRefs
-
getCompleteRevocationOCSPReferences
List<OCSPRef> getCompleteRevocationOCSPReferences()
Retrieves a list of allOCSPRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
OCSPRefs
-
getAttributeRevocationOCSPReferences
List<OCSPRef> getAttributeRevocationOCSPReferences()
Retrieves a list of allOCSPRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
OCSPRefs
-
getTimestampRevocationOCSPReferences
List<OCSPRef> getTimestampRevocationOCSPReferences()
Retrieves a list of allOCSPRefs present in a timestamp element NOTE: Applicable only for CAdES revocation source- Returns:
- list of
OCSPRefs
-
getAllFoundRevocationIdentifiers
List<EncapsulatedRevocationTokenIdentifier> getAllFoundRevocationIdentifiers()
Returns a list of allEncapsulatedRevocationTokenIdentifiers found in CRL and OCSP sources- Returns:
- list of all
EncapsulatedRevocationTokenIdentifiers
-
getAllFoundRevocationRefs
List<RevocationRef> getAllFoundRevocationRefs()
Retrieves a list of all foundRevocationRefs present in the signature- Returns:
- list of
RevocationRefs
-
getOrphanRevocationRefs
List<RevocationRef> getOrphanRevocationRefs()
Returns a list of all orphanRevocationRefs found into the signature- Returns:
- list of
RevocationRefs
-
findRefsForRevocationToken
List<RevocationRef> findRefsForRevocationToken(RevocationToken revocationToken)
Retrieves a list of foundRevocationRefs for the givenrevocationToken- Parameters:
revocationToken-RevocationTokento get references for- Returns:
- list of
RevocationRefs
-
findRefsForRevocationIdentifier
List<RevocationRef> findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)
Retrieves a list of foundRevocationRefs for the givenrevocationIdentifier- Parameters:
revocationIdentifier-EncapsulatedRevocationTokenIdentifierto get references for- Returns:
- list of
RevocationRefs
-
getMessageDigestValue
byte[] getMessageDigestValue()
-
getSignatureFieldName
String getSignatureFieldName()
-
getSignerName
String getSignerName()
-
getFilter
String getFilter()
-
getSubFilter
String getSubFilter()
-
getContactInfo
String getContactInfo()
-
getReason
String getReason()
-
getSignatureByteRange
int[] getSignatureByteRange()
-
-