Package eu.europa.esig.dss.validation
Class SignatureCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.validation.SignatureCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
- Direct Known Subclasses:
CMSCertificateSource
,XAdESCertificateSource
public abstract class SignatureCertificateSource extends CommonCertificateSource
The advanced signature contains a list of certificate that was needed to validate the signature. This class is a
basic skeleton that is able to retrieve the needed certificate from a list. The child need to retrieve the list of
wrapped certificates.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protected
SignatureCertificateSource(CertificatePool certPool)
The default constructor with mandatory certificates pool. -
Method Summary
Modifier and Type Method Description List<CertificateToken>
findTokensFromRefs(List<CertificateRef> certificateRefs)
Returns list ofCertificateToken
s for the providedCertificateRef
sList<CertificateRef>
getAllCertificateRefs()
abstract List<CertificateToken>
getAttrAuthoritiesCertValues()
Retrieves the list of all certificates from the AttrAuthoritiesCertValues (XAdES)abstract List<CertificateRef>
getAttributeCertificateRefs()
Retrieves the list ofCertificateRef
s included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)List<CertificateToken>
getAttributeCertificates()
Retrieves the list ofCertificateToken
s according to references included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)CertificateRef
getCertificateRefByDigest(Digest digest)
Returns a containedCertificateRef
with the givendigest
CertificateSourceType
getCertificateSourceType()
This method returns the certificate source type associated to the implementation class.abstract List<CertificateToken>
getCertificateValues()
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)abstract List<CertificateRef>
getCompleteCertificateRefs()
Retrieves the list ofCertificateRef
s included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)List<CertificateToken>
getCompleteCertificates()
Retrieves the list ofCertificateToken
s according references to included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)List<CertificateToken>
getDSSDictionaryCertValues()
Retrieves the list of all certificates from the DSS dictionary (PAdES)protected IssuerSerialInfo
getIssuerInfo(org.bouncycastle.asn1.x509.IssuerSerial issuerAndSerial)
abstract List<CertificateToken>
getKeyInfoCertificates()
Retrieves the list of all certificates present in the KeyInfosList<CertificateRef>
getOrphanCertificateRefs()
Returns a list of orphan certificate refsList<CertificateRef>
getReferencesForCertificateToken(CertificateToken certificateToken)
Returns list ofCertificateRef
s found for the givencertificateToken
List<CertificateToken>
getSigningCertificates()
Retrieves the list ofCertificateToken
s for the signing certificate (V1/V2)abstract List<CertificateRef>
getSigningCertificateValues()
Retrieves the list ofCertificateRef
s for the signing certificate (V1/V2)abstract List<CertificateToken>
getTimeStampValidationDataCertValues()
Retrieves the list of all certificates from the TimeStampValidationData (XAdES)List<CertificateToken>
getVRIDictionaryCertValues()
Retrieves the list of all certificates from the VRI dictionary (PAdES)Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getCertificatePool, getCertificates, getCertificateTokenByDigest, getNumberOfCertificates, isTrusted, removeCertificate
-
Constructor Details
-
SignatureCertificateSource
The default constructor with mandatory certificates pool.- Parameters:
certPool
- the certificate pool
-
-
Method Details
-
getKeyInfoCertificates
Retrieves the list of all certificates present in the KeyInfos- Returns:
- list of all certificates present in B level
-
getCertificateValues
Retrieves the list of all certificates from CertificateValues (XAdES/CAdES)- Returns:
- the list of all certificates present in the CertificateValues
-
getAttrAuthoritiesCertValues
Retrieves the list of all certificates from the AttrAuthoritiesCertValues (XAdES)- Returns:
- the list of all certificates present in the AttrAuthoritiesCertValues
-
getTimeStampValidationDataCertValues
Retrieves the list of all certificates from the TimeStampValidationData (XAdES)- Returns:
- the list of all certificates present in the TimeStampValidationData
-
getDSSDictionaryCertValues
Retrieves the list of all certificates from the DSS dictionary (PAdES)- Returns:
- the list of all certificates present in the DSS dictionary
-
getVRIDictionaryCertValues
Retrieves the list of all certificates from the VRI dictionary (PAdES)- Returns:
- the list of all certificates present in the VRI dictionary
-
getSigningCertificateValues
Retrieves the list ofCertificateRef
s for the signing certificate (V1/V2)- Returns:
- the list of references to the signing certificate
-
getSigningCertificates
Retrieves the list ofCertificateToken
s for the signing certificate (V1/V2)- Returns:
- list of
CertificateToken
s
-
getCompleteCertificateRefs
Retrieves the list ofCertificateRef
s included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Returns:
- the list of certificate references
-
getCompleteCertificates
Retrieves the list ofCertificateToken
s according references to included in the attribute complete-certificate-references (CAdES) or the CompleteCertificateRefs/CompleteCertificateRefsV2 (XAdES)- Returns:
- list of
CertificateToken
s
-
getAttributeCertificateRefs
Retrieves the list ofCertificateRef
s included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)- Returns:
- the list of certificate references
-
getAttributeCertificates
Retrieves the list ofCertificateToken
s according to references included in the attribute attribute-certificate-references (CAdES) or the AttributeCertificateRefs/AttributeCertificateRefsV2 (XAdES)- Returns:
- list of
CertificateToken
s
-
getCertificateSourceType
Description copied from interface:CertificateSource
This method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceType
in interfaceCertificateSource
- Overrides:
getCertificateSourceType
in classCommonCertificateSource
- Returns:
- the certificate origin
-
getReferencesForCertificateToken
Returns list ofCertificateRef
s found for the givencertificateToken
- Parameters:
certificateToken
-CertificateToken
to find references for- Returns:
- list of
CertificateRef
s
-
findTokensFromRefs
Returns list ofCertificateToken
s for the providedCertificateRef
s- Parameters:
certificateRefs
- list ofCertificateRef
s- Returns:
- list of
CertificateToken
s
-
getAllCertificateRefs
-
getCertificateRefByDigest
Returns a containedCertificateRef
with the givendigest
- Parameters:
digest
-Digest
to find aCertificateRef
with- Returns:
CertificateRef
-
getOrphanCertificateRefs
Returns a list of orphan certificate refs- Returns:
- list of
CertificateRef
s
-
getIssuerInfo
-