Module jpms_dss_common_converter
Package eu.europa.esig.dss.ws.converter
Class RemoteCertificateConverter
java.lang.Object
eu.europa.esig.dss.ws.converter.RemoteCertificateConverter
Contains utils to convert
CertificateToken to RemoteCertificate and vice versa-
Method Summary
Modifier and TypeMethodDescriptionstatic eu.europa.esig.dss.model.x509.CertificateTokentoCertificateToken(eu.europa.esig.dss.ws.dto.RemoteCertificate remoteCertificate) Converts the givenremoteCertificateto aCertificateTokenstatic List<eu.europa.esig.dss.model.x509.CertificateToken> toCertificateTokens(List<eu.europa.esig.dss.ws.dto.RemoteCertificate> remoteCertificates) Converts the given list ofremoteCertificatesto a list ofCertificateTokensstatic eu.europa.esig.dss.ws.dto.RemoteCertificatetoRemoteCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate) Converts the givencertificateto aRemoteCertificate
-
Method Details
-
toCertificateToken
public static eu.europa.esig.dss.model.x509.CertificateToken toCertificateToken(eu.europa.esig.dss.ws.dto.RemoteCertificate remoteCertificate) Converts the givenremoteCertificateto aCertificateToken- Parameters:
remoteCertificate-RemoteDocumentto convert- Returns:
CertificateToken
-
toRemoteCertificate
public static eu.europa.esig.dss.ws.dto.RemoteCertificate toRemoteCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate) Converts the givencertificateto aRemoteCertificate- Parameters:
certificate-CertificateTokento convert- Returns:
RemoteCertificate
-
toCertificateTokens
public static List<eu.europa.esig.dss.model.x509.CertificateToken> toCertificateTokens(List<eu.europa.esig.dss.ws.dto.RemoteCertificate> remoteCertificates) Converts the given list ofremoteCertificatesto a list ofCertificateTokens- Parameters:
remoteCertificates- list ofRemoteCertificates- Returns:
- list of
CertificateTokens
-