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 Summary

    Modifier and Type
    Method
    Description
    static eu.europa.esig.dss.model.x509.CertificateToken
    toCertificateToken(eu.europa.esig.dss.ws.dto.RemoteCertificate remoteCertificate)
    Converts the given remoteCertificate to a CertificateToken
    static List<eu.europa.esig.dss.model.x509.CertificateToken>
    toCertificateTokens(List<eu.europa.esig.dss.ws.dto.RemoteCertificate> remoteCertificates)
    Converts the given list of remoteCertificates to a list of CertificateTokens
    static eu.europa.esig.dss.ws.dto.RemoteCertificate
    toRemoteCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate)
    Converts the given certificate to a RemoteCertificate

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toCertificateToken

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

      public static eu.europa.esig.dss.ws.dto.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<eu.europa.esig.dss.ws.dto.RemoteCertificate> remoteCertificates)
      Converts the given list of remoteCertificates to a list of CertificateTokens
      Parameters:
      remoteCertificates - list of RemoteCertificates
      Returns:
      list of CertificateTokens