Package org.ejbca.core.protocol.xkms

Examples of org.ejbca.core.protocol.xkms.XKMSService


   *
   * @param serviceURL the url to the web service.
   * @param cacerts a collection of trusted CA signing responses. Use null if signed responses are not required.
   */
  public XKMSInvoker(String serviceURL, Collection<Certificate> cacerts){
    XKMSService xkmsService;
    try {
      xkmsService = new XKMSService(new URL(serviceURL + "?wsdl"),new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSService"));
      sourceDispatch = xkmsService.createDispatch(new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), Source.class, Service.Mode.PAYLOAD);
    } catch (MalformedURLException e) {
      log.error("Error creating XKMS Service instance",e);
    }      
    this.cacerts = cacerts; // null if signed responses are not required.
  }
View Full Code Here

TOP

Related Classes of org.ejbca.core.protocol.xkms.XKMSService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.