Class RemoteCertificateConverter

java.lang.Object
eu.europa.esig.dss.ws.converter.RemoteCertificateConverter

public class RemoteCertificateConverter extends Object
Contains utils to convert CertificateToken to RemoteCertificate and vice versa
  • Method Details

    • toCertificateToken

      public static eu.europa.esig.dss.model.x509.CertificateToken toCertificateToken(RemoteCertificate remoteCertificate)
      Converts the given remoteCertificate to a CertificateToken
      Parameters:
      remoteCertificate - RemoteDocument to convert
      Returns:
      CertificateToken
    • toRemoteCertificate

      public static RemoteCertificate toRemoteCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate)
      Converts the given certificate to a RemoteCertificate
      Parameters:
      certificate - CertificateToken to convert
      Returns:
      RemoteCertificate
    • toCertificateTokens

      public static List<eu.europa.esig.dss.model.x509.CertificateToken> toCertificateTokens(List<RemoteCertificate> remoteCertificates)
      Converts the given list of remoteCertificates to a list of CertificateTokens
      Parameters:
      remoteCertificates - list of RemoteCertificates
      Returns:
      list of CertificateTokens