Class QWACUtils
java.lang.Object
eu.europa.esig.dss.validation.qwac.QWACUtils
Contains utility methods for performing QWAC validation process
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CertificateWrapper> getIdentifiedTLSCertificates(SignatureWrapper signature, List<CertificateWrapper> certificates) Gets TLS Binding Certificates identified from the binding signaturestatic StringgetTLSCertificateBindingUrl(Map<String, List<String>> headers) Loops over theheadersand returns the tls-certificate-binding URL value from a "Link" header if found.
-
Method Details
-
getTLSCertificateBindingUrl
Loops over theheadersand returns the tls-certificate-binding URL value from a "Link" header if found. If no matching value found, the method returns NULL.- Parameters:
headers- a map of header name and values- Returns:
StringTSL Certificate Binding URL
-
getIdentifiedTLSCertificates
public static List<CertificateWrapper> getIdentifiedTLSCertificates(SignatureWrapper signature, List<CertificateWrapper> certificates) Gets TLS Binding Certificates identified from the binding signature- Parameters:
signature-SignatureWrappercertificates- a list ofCertificateWrappercandidates- Returns:
- a list of
CertificateWrapperidentified TLS/SSL certificates
-