Module jpms_dss_jades
Class CommonX509URLCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.jades.validation.CommonX509URLCertificateSource
- All Implemented Interfaces:
X509URLCertificateSource,eu.europa.esig.dss.spi.x509.CertificateSource,Serializable
public class CommonX509URLCertificateSource
extends eu.europa.esig.dss.spi.x509.CommonCertificateSource
implements X509URLCertificateSource
The common implementation of
X509URLCertificateSource retrieving X.509 certificates by the given URI- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.x509.CertificateTokenaddCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToAdd) eu.europa.esig.dss.model.x509.CertificateTokenaddCertificate(String uri, eu.europa.esig.dss.model.x509.CertificateToken certificate) Adds a certificate for a given 'x5u' URL (JWS/JAdES)Collection<eu.europa.esig.dss.model.x509.CertificateToken> addCertificates(String uri, Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates) Adds a collection of certificates for a given 'x5u' URL (JWS/JAdES)Collection<eu.europa.esig.dss.model.x509.CertificateToken> Gets a collection ofCertificateTokens retrieved from the given URIprotected voidreset()Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByEntityKey, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, isTrustedAtTime, removeCertificateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.spi.x509.CertificateSource
findTokensFromCertRef, getByCertificateDigest, getByEntityKey, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getCertificateSourceType, getEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, isTrustedAtTime
-
Constructor Details
-
CommonX509URLCertificateSource
public CommonX509URLCertificateSource()Default constructor
-
-
Method Details
-
addCertificate
public eu.europa.esig.dss.model.x509.CertificateToken addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToAdd) - Specified by:
addCertificatein interfaceeu.europa.esig.dss.spi.x509.CertificateSource- Overrides:
addCertificatein classeu.europa.esig.dss.spi.x509.CommonCertificateSource
-
addCertificate
public eu.europa.esig.dss.model.x509.CertificateToken addCertificate(String uri, eu.europa.esig.dss.model.x509.CertificateToken certificate) Adds a certificate for a given 'x5u' URL (JWS/JAdES)- Parameters:
uri- the used URI in the JWS/JAdEScertificate- the related certificate token- Returns:
- the certificate
-
addCertificates
public Collection<eu.europa.esig.dss.model.x509.CertificateToken> addCertificates(String uri, Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates) Adds a collection of certificates for a given 'x5u' URL (JWS/JAdES)- Parameters:
uri- the used URI in the JWS/JAdEScertificates- a collection ofCertificateTokens- Returns:
- the certificate
-
getCertificatesByUrl
Description copied from interface:X509URLCertificateSourceGets a collection ofCertificateTokens retrieved from the given URI- Specified by:
getCertificatesByUrlin interfaceX509URLCertificateSource- Parameters:
uri-Stringto get a certificate tokens from- Returns:
- a collection of
CertificateTokens
-
reset
protected void reset()- Overrides:
resetin classeu.europa.esig.dss.spi.x509.CommonCertificateSource
-