diff options
| author | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-08-29 12:11:34 +0000 | 
|---|---|---|
| committer | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-08-29 12:11:34 +0000 | 
| commit | 32d17447a258188b2d534bcb0bf65a659ba7b7d0 (patch) | |
| tree | 4ad8bb267eb29f7091a7da283f6d7eec1e2188e1 /bkucommon/src/test/java | |
| download | mocca-32d17447a258188b2d534bcb0bf65a659ba7b7d0.tar.gz mocca-32d17447a258188b2d534bcb0bf65a659ba7b7d0.tar.bz2 mocca-32d17447a258188b2d534bcb0bf65a659ba7b7d0.zip | |
Initial import.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/test/java')
84 files changed, 11302 insertions, 0 deletions
| diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/BindingProcessorManagerTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/BindingProcessorManagerTest.java new file mode 100644 index 00000000..16d5451a --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/BindingProcessorManagerTest.java @@ -0,0 +1,46 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import static org.junit.Assert.*;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +public class BindingProcessorManagerTest {
 +  
 +  @Before
 +  public void setUp() {
 +    IdFactory.getInstance().setNumberOfBits(24*10);
 +  }
 +
 +  
 +  @Test(expected = UnsupportedOperationException.class)
 +  public void basicCreationTest() {
 +   BindingProcessorManager manager = new BindingProcessorManagerImpl(new DummyStalFactory(), new SLCommandInvokerImpl());
 +   BindingProcessor bp = manager.createBindingProcessor("http", null);
 +   assertNotNull(bp.getId().toString());
 +   assertEquals(40, bp.getId().toString().length());
 +   String hansi = "Hansi";
 +   bp = manager.createBindingProcessor("http",hansi);
 +   assertEquals(hansi, bp.getId().toString()); 
 +   bp = manager.createBindingProcessor("HtTp", null);
 +   assertNotNull(bp);
 +   manager.createBindingProcessor("seppl", null);
 +  }
 +  
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/DataUrlConnectionTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/DataUrlConnectionTest.java new file mode 100644 index 00000000..d9995fdd --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/DataUrlConnectionTest.java @@ -0,0 +1,186 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package at.gv.egiz.bku.binding; + +import at.gv.egiz.bku.slcommands.SLCommandFactory; +import at.gv.egiz.bku.slcommands.SLResult; + +import com.sun.net.httpserver.Headers; +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpHandler; +import com.sun.net.httpserver.HttpServer; +import java.io.BufferedReader; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.net.InetSocketAddress; +import java.net.URL; +import java.net.URLConnection; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.junit.After; +import static org.junit.Assert.*; + +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + *  + * @author clemens + */ +public class DataUrlConnectionTest { + +  public static final String REQUEST_RESOURCE = "at/gv/egiz/bku/binding/NOPMultipartDataUrl.txt"; + +  private static final Log log = LogFactory.getLog(DataUrlConnectionTest.class); + +  static HttpServer server; +  static BindingProcessor bindingProcessor; +  static BindingProcessorManager manager; + +  protected InputStream requestStream; + +  @BeforeClass +  public static void setUpHTTPServer() throws IOException { +    log.debug("setting up HTTPServer"); +    InetSocketAddress addr = new InetSocketAddress("localhost", 8081); +    server = HttpServer.create(addr, 0); +    server.createContext("/", new DataUrlHandler()); +    server.start(); + +    log.debug("setting up HTTPBindingProcessor"); +    manager = new BindingProcessorManagerImpl(new DummyStalFactory(), +        new SLCommandInvokerImpl()); +    bindingProcessor = (HTTPBindingProcessor) manager.createBindingProcessor( +        "http", null); +    Map<String, String> headers = new HashMap<String, String>(); +    headers.put("Content-Type", InputDecoderFactory.MULTIPART_FORMDATA +        + ";boundary=---------------------------2330864292941"); +    ((HTTPBindingProcessor) bindingProcessor).setHTTPHeaders(headers); +  } + +  @Before +  public void setUp() { +    requestStream = getClass().getClassLoader().getResourceAsStream( +        REQUEST_RESOURCE); +  } + +  @AfterClass +  public static void stopServer() { +    if (server != null) { +      log.debug("stopping HTTPServer"); +      server.stop(0); +    } +  } + +  @Test +  public void testBasicNop() { +    bindingProcessor.consumeRequestStream(requestStream); +    // manager.process(bindingProcessor); +    bindingProcessor.run(); +  } + +//  @Test +  public void openConnectionTest() throws Exception { + +    URL dataUrl = new URL("http://localhost:8081/"); + +    log.debug("creating DataUrlConnection " + dataUrl.toString()); +    DataUrlConnectionImpl c = new DataUrlConnectionImpl(); +    c.init(dataUrl); + +    c.setHTTPHeader("httpHeader_1", "001"); +    ByteArrayInputStream bais = new ByteArrayInputStream("Hello, world!" +        .getBytes()); +    c.setHTTPFormParameter("formParam_1", bais, "text/plain", "UTF-8", null); + +    log.debug("open dataUrl connection"); +    c.connect(); +    //TODO mock SLResult and c.transmit(result); +  } + +  static class DataUrlHandler implements HttpHandler { + +    public DataUrlHandler() { +      log.debug("setting up DataUrlHandler"); +    } + +    @Override +    public void handle(HttpExchange exchange) throws IOException { +      log.debug("handling incoming request"); +      logHTTPHeaders(exchange.getRequestHeaders()); +      logRequest(exchange.getRequestBody()); + +      log.debug("sending dummy response"); +      exchange.getResponseHeaders().add("Content-type", "text/html"); +      String response = "<b>" + new Date() + "</b> for " +          + exchange.getRequestURI(); +      exchange.sendResponseHeaders(200, response.length()); + +      OutputStream os = exchange.getResponseBody(); +      os.write(response.getBytes()); +      os.close(); +    } + +    private void logRequest(InputStream in) throws IOException { +      StringBuilder reqLogMsg = new StringBuilder("HTTP request: \n"); +      int c = 0; +      while ((c = in.read()) != -1) { +        reqLogMsg.append((char) c); +      } +      log.debug(reqLogMsg.toString()); +      in.close(); +    } + +    private void logHTTPHeaders(Headers headers) { +      StringBuilder headersLogMsg = new StringBuilder("HTTP headers: \n"); +      Set<String> keys = headers.keySet(); +      Iterator<String> keysIt = keys.iterator(); +      while (keysIt.hasNext()) { +        String key = keysIt.next(); +        List<String> values = headers.get(key); +        Iterator<String> valuesIt = values.iterator(); +        headersLogMsg.append(' '); +        headersLogMsg.append(key); +        headersLogMsg.append(": "); +        while (valuesIt.hasNext()) { +          headersLogMsg.append(valuesIt.next()); +          headersLogMsg.append(' '); +        } +        headersLogMsg.append('\n'); +      } +      log.debug(headersLogMsg.toString()); +    } +  } +} diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/DummyStalFactory.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/DummyStalFactory.java new file mode 100644 index 00000000..45dcdc3a --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/DummyStalFactory.java @@ -0,0 +1,30 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import at.gv.egiz.stal.STAL;
 +import at.gv.egiz.stal.STALFactory;
 +
 +public class DummyStalFactory implements STALFactory {
 +
 +  @Override
 +  public STAL createSTAL() {
 +    // TODO Auto-generated method stub
 +    return new at.gv.egiz.stal.dummy.DummySTAL();
 +  }
 +  
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/ExpiryRemoverTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/ExpiryRemoverTest.java new file mode 100644 index 00000000..41c69a1d --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/ExpiryRemoverTest.java @@ -0,0 +1,65 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import org.junit.Test;
 +import static org.junit.Assert.*;
 +
 +public class ExpiryRemoverTest {
 +  
 +  @Test
 +  public void testMe() throws InterruptedException {
 +    BindingProcessorManager manager = new BindingProcessorManagerImpl(new DummyStalFactory(),
 +        new SLCommandInvokerImpl());
 +    BindingProcessor bp = manager.createBindingProcessor("http", null);
 +    ExpiryRemover remover = new ExpiryRemover();
 +    remover.setBindingProcessorManager(manager);
 +    remover.execute();
 +    manager.process(bp);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 1);
 +    remover.setMaxAcceptedAge(1000);
 +    Thread.sleep(500);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 1);
 +    Thread.sleep(510);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 0);
 +  }
 +  
 +  @Test
 +  public void testMe2() throws InterruptedException {
 +    BindingProcessorManager manager = new BindingProcessorManagerImpl(new DummyStalFactory(),
 +        new SLCommandInvokerImpl());
 +    BindingProcessor bp = manager.createBindingProcessor("http", null);
 +    ExpiryRemover remover = new ExpiryRemover();
 +    remover.setBindingProcessorManager(manager);
 +    remover.execute();
 +    manager.process(bp);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 1);
 +    remover.setMaxAcceptedAge(1000);
 +    Thread.sleep(500);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 1);
 +    bp.updateLastAccessTime();
 +    Thread.sleep(510);
 +    remover.execute();
 +    assertTrue(manager.getManagedIds().size() == 1);
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/HttpBindingProcessorTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/HttpBindingProcessorTest.java new file mode 100644 index 00000000..38f61aa2 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/HttpBindingProcessorTest.java @@ -0,0 +1,315 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import static org.junit.Assert.assertEquals;
 +import static org.junit.Assert.assertTrue;
 +
 +import java.io.ByteArrayOutputStream;
 +import java.io.IOException;
 +import java.util.ArrayList;
 +import java.util.HashMap;
 +import java.util.List;
 +import java.util.Map;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +import at.gv.egiz.bku.binding.MultiTestDataUrlConnection.DataSourceProvider;
 +import at.gv.egiz.bku.utils.StreamUtil;
 +
 +public class HttpBindingProcessorTest {
 +
 +  public static class TestDataSource implements DataSourceProvider {
 +
 +    private List<Integer> responseCodes = new ArrayList<Integer>();
 +    private List<String> content = new ArrayList<String>();
 +    private List<Map<String, String>> responseHeaders = new ArrayList<Map<String, String>>();
 +    private int counter = -1;
 +
 +    public void resetCounter() {
 +      counter = -1;
 +    }
 +
 +    public void addResponse(int responseCode, String content,
 +        Map<String, String> headerMap) {
 +      responseCodes.add(new Integer(responseCode));
 +      this.content.add(content);
 +      this.responseHeaders.add(headerMap);
 +    }
 +
 +    @Override
 +    public int getResponseCode() {
 +      return responseCodes.get(counter);
 +    }
 +
 +    @Override
 +    public String getResponseContent() {
 +      return content.get(counter);
 +    }
 +
 +    @Override
 +    public Map<String, String> getResponseHeaders() {
 +      return responseHeaders.get(counter);
 +    }
 +
 +    @Override
 +    public void nextEvent() {
 +      if (++counter >= responseCodes.size()) {
 +        counter = 0;
 +      }
 +    }
 +  }
 +
 +  protected BindingProcessorManager manager;
 +  protected HTTPBindingProcessor bindingProcessor;
 +  protected Map<String, String> serverHeaderMap;
 +  protected Map<String, String> clientHeaderMap;
 +  protected TestDataUrlConnection server;
 +
 +  @Before
 +  public void setUp() throws IOException {
 +    server = new TestDataUrlConnection();
 +    DataUrl.setDataUrlConnectionClass(server);
 +    serverHeaderMap = new HashMap<String, String>();
 +    serverHeaderMap.put("Content-Type", HttpUtil.TXT_XML);
 +    server.setResponseCode(200);
 +    server.setResponseContent("<ok/>");
 +    server.setResponseHeaders(serverHeaderMap);
 +    manager = new BindingProcessorManagerImpl(new DummyStalFactory(),
 +        new SLCommandInvokerImpl());
 +    bindingProcessor = (HTTPBindingProcessor) manager.createBindingProcessor(
 +        "http", null);
 +    clientHeaderMap = new HashMap<String, String>();
 +    clientHeaderMap.put("Content-Type",
 +        "application/x-www-form-urlencoded;charset=utf8");
 +    bindingProcessor.setHTTPHeaders(clientHeaderMap);
 +  }
 +
 +  protected String resultAsString(String encoding) throws IOException {
 +    ByteArrayOutputStream baos = new ByteArrayOutputStream();
 +    bindingProcessor.writeResultTo(baos, encoding);
 +    return new String(baos.toByteArray(), encoding);
 +  }
 +
 +  @Test
 +  public void testWithoutDataUrlWithoutStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm("Haßnsi", "Wüurzel");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationResponse") != -1);
 +    assertEquals(200, bindingProcessor.getResponseCode());
 +    assertEquals(0, bindingProcessor.getResponseHeaders().size());
 +  }
 +
 +  @Test
 +  public void testWithoutDataUrlWithStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm("Hansi", "Wurzel");
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_HTML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullKommaJosef") != -1);
 +    assertEquals(200, bindingProcessor.getResponseCode());
 +    assertEquals(0, bindingProcessor.getResponseHeaders().size());
 +  }
 +
 +  @Test
 +  public void testWithDataUrl301WithStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(301);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationRequest") != -1);
 +    assertEquals(301, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() > 0);
 +  }
 +
 +  @Test
 +  public void testWithDataUrl302WithStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(302);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationRequest") != -1);
 +    assertEquals(302, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() > 0);
 +  }
 +
 +  @Test
 +  public void testWithDataUrl303WithStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(303);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationRequest") != -1);
 +    assertEquals(303, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() > 0);
 +  }
 +
 +  @Test
 +  public void testWithDataUrl306WithStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(306);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("ErrorResponse") != -1);
 +    assertEquals(200, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() == 0);
 +  }
 +
 +  @Test
 +  public void testWithDataUrl307NonXML() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(307);
 +    serverHeaderMap.put("Content-Type", HttpUtil.TXT_PLAIN);
 +    server.setResponseHeaders(serverHeaderMap);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit");
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_PLAIN, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationRequest") != -1);
 +    assertEquals(307, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() > 0);
 +  }
 +
 +  @Test
 +  public void testWithInvalidDataUrl307XML() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(307);
 +    serverHeaderMap.put("Content-Type", HttpUtil.TXT_XML);
 +    serverHeaderMap.put("Location", "noUrl");
 +    server.setResponseHeaders(serverHeaderMap);
 +    rf = new RequestFactory();
 +    server.setResponseContent(rf.getNullOperationXML());
 +    bindingProcessor.run();
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("ErrorResponse") != -1);
 +    assertEquals(200, bindingProcessor.getResponseCode());
 +    assertTrue(bindingProcessor.getResponseHeaders().size() == 0);
 +  }
 +  
 +  @Test
 +  public void testWithValidDataUrl307XML() throws IOException, InterruptedException {
 +    server = new MultiTestDataUrlConnection();
 +    DataUrl.setDataUrlConnectionClass(server);
 +    TestDataSource tds = new TestDataSource();
 +    ((MultiTestDataUrlConnection)server).setDataSource(tds);
 +    
 +    // first server response with 307 xml and location 
 +    RequestFactory rf = new RequestFactory();
 +    serverHeaderMap = new HashMap<String, String>();
 +    serverHeaderMap.put("Location", "http://localhost:8080");
 +    serverHeaderMap.put("Content-Type", HttpUtil.TXT_XML);
 +    tds.addResponse(307, rf.getNullOperationXML(), serverHeaderMap);
 +    
 +    // 2nd response with 200 text/plain and != <ok/>
 +    String testString = "CheckMe";
 +    serverHeaderMap = new HashMap<String, String>();
 +    serverHeaderMap.put("Content-Type", HttpUtil.TXT_PLAIN);
 +    String testHeader ="DummyHeader";
 +    String testHeaderVal ="DummyHeaderVal";
 +    serverHeaderMap.put(testHeader, testHeaderVal);
 +    tds.addResponse(200, testString, serverHeaderMap);
 +    
 +    rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    bindingProcessor.run();
 +    
 +    assertTrue(bindingProcessor.getResponseHeaders().size()>0);
 +    assertEquals(testHeaderVal, bindingProcessor.getResponseHeaders().get(testHeader));
 +    assertEquals(200,bindingProcessor.getResponseCode());
 +    assertEquals(HttpUtil.TXT_PLAIN, bindingProcessor.getResultContentType());
 +    assertEquals(testString ,resultAsString("UTF-8"));
 +  }
 +  
 +  @Test
 +  public void testWithValidDataUrl200Urlencoded() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(200);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    serverHeaderMap.put("Content-Type", HttpUtil.APPLICATION_URL_ENCODED);
 +    server.setResponseHeaders(serverHeaderMap);
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertTrue(bindingProcessor.getResponseHeaders().size()==0);
 +    assertEquals(200,bindingProcessor.getResponseCode());
 +    assertEquals(HttpUtil.TXT_XML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullOperationResponse") != -1);
 +  }
 +  
 +  @Test
 +  public void testWithValidDataUrl200UrlencodedAndStylesheet() throws IOException {
 +    RequestFactory rf = new RequestFactory();
 +    rf = new RequestFactory();
 +    rf.addForm(RequestFactory.DATAURL, "http://localhost:8080");
 +    bindingProcessor.consumeRequestStream(rf.getURLencoded());
 +    server.setResponseCode(200);
 +    rf = new RequestFactory();
 +    rf.addFormAsResource("Styleshit", "at/gv/egiz/bku/binding/stylesheet.xslt");
 +    rf.addForm(RequestFactory.STYLESHEETURL, "formdata:Styleshit"); 
 +    serverHeaderMap.put("Content-Type", HttpUtil.APPLICATION_URL_ENCODED);
 +    server.setResponseHeaders(serverHeaderMap);
 +    server.setResponseContent(rf.getURLencodedAsString());
 +    bindingProcessor.run();
 +    assertTrue(bindingProcessor.getResponseHeaders().size()==0);
 +    assertEquals(200,bindingProcessor.getResponseCode());
 +    assertEquals(HttpUtil.TXT_HTML, bindingProcessor.getResultContentType());
 +    assertTrue(resultAsString("UTF-8").indexOf("NullKommaJosef") != -1);
 +  }
 +  
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/IdFactoryTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/IdFactoryTest.java new file mode 100644 index 00000000..cd75ec38 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/IdFactoryTest.java @@ -0,0 +1,63 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import static org.junit.Assert.*;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +public class IdFactoryTest {
 +  
 +  @Before
 +  public void setUp() {
 +    IdFactory.getInstance().setNumberOfBits(168);
 +    
 +  }
 +  
 +  @Test
 +  public void testWithString() {
 +    String testString = "Hansi";
 +    Id hansi = IdFactory.getInstance().createId(testString);
 +    assertEquals(hansi.toString(), testString);
 +  }
 +
 +  @Test(expected = NullPointerException.class)
 +  public void testFactory() {
 +    IdFactory.getInstance().setSecureRandom(null);
 +  }
 +  
 +  @Test
 +  public void testRandom() {
 +    IdFactory fab = IdFactory.getInstance();
 +    Id id = fab.createId();
 +    assertEquals(id.toString().length(), 28);
 +    fab.setNumberOfBits(24);
 +    id = fab.createId();
 +    assertEquals(id.toString().length(), 4);
 +  }
 +  
 +  @Test
 +  public void testEquals() {
 +    String idString = "Hansi";
 +    IdFactory fab = IdFactory.getInstance();
 +    Id id1 = fab.createId(idString);
 +    Id id2 = fab.createId(idString);
 +    assertEquals(id1, id2);
 +    assertEquals(id1.hashCode(), id2.hashCode());
 +  }
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/InputDecoderFactoryTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/InputDecoderFactoryTest.java new file mode 100644 index 00000000..7d79889d --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/InputDecoderFactoryTest.java @@ -0,0 +1,96 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import static org.junit.Assert.assertEquals;
 +import static org.junit.Assert.assertNotNull;
 +import static org.junit.Assert.assertTrue;
 +
 +import java.io.ByteArrayInputStream;
 +import java.io.ByteArrayOutputStream;
 +import java.io.IOException;
 +import java.io.InputStream;
 +import java.util.Iterator;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +import at.gv.egiz.bku.utils.StreamUtil;
 +
 +public class InputDecoderFactoryTest {
 +
 +  protected String resourceName = "at/gv/egiz/bku/binding/Multipart.txt.bin";
 +  protected byte[] data;
 +
 +  @Before
 +  public void setUp() throws IOException {
 +    InputStream is = getClass().getClassLoader().getResourceAsStream(
 +        resourceName);
 +    ByteArrayOutputStream bos = new ByteArrayOutputStream();
 +    byte[] buffer = new byte[1024];
 +    int i;
 +
 +    while ((i = is.read(buffer)) != -1) {
 +      bos.write(buffer, 0, i);
 +    }
 +    is.close();
 +    data = bos.toByteArray();
 +  }
 +
 +  @Test
 +  public void testPrefix() {
 +    InputDecoder dec = InputDecoderFactory.getDecoder(
 +        "multipart/form-data; boundary=AaB03x", null);
 +    assertTrue(dec instanceof MultiPartFormDataInputDecoder);
 +  }
 +
 +  @Test
 +  public void testMultipart() throws IOException {
 +    InputDecoder dec = InputDecoderFactory
 +        .getDecoder(
 +            "multipart/form-data; boundary=---------------------------15671293698853",
 +            new ByteArrayInputStream(data));
 +    assertNotNull(dec);
 +    for (Iterator<FormParameter> fpi = dec.getFormParameterIterator(); fpi
 +        .hasNext();) {
 +      FormParameter fp = fpi.next();
 +      if (fp.getFormParameterName().equals("XMLRequest")) {
 +        assertEquals("text/xml", fp.getFormParameterContentType());
 +        return;
 +      }
 +    }
 +    assertTrue(false);
 +  }
 +
 +  @Test
 +  public void testUrlEncoded() throws IOException {
 +    InputDecoder dec = InputDecoderFactory.getDecoder(
 +        "application/x-www-form-urlencoded", null);
 +    assertTrue(dec instanceof XWWWFormUrlInputDecoder);
 +    dec = InputDecoderFactory.getDecoder(
 +        "application/x-WWW-form-urlencoded;charset=UTF-8",
 +        new ByteArrayInputStream(
 +            "your_name=hansi+wurzel&userid=123&form_name=wasinet".getBytes()));
 +    assertTrue(dec instanceof XWWWFormUrlInputDecoder);
 +    Iterator<FormParameter> fpi = dec.getFormParameterIterator();
 +    FormParameter fp = fpi.next();
 +    ByteArrayOutputStream os = new ByteArrayOutputStream();
 +    StreamUtil.copyStream(fp.getFormParameterValue(), os);
 +    String value = new String(os.toByteArray(), "UTF-8");
 +    assertEquals("hansi wurzel", value);
 +  }
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultiTestDataUrlConnection.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultiTestDataUrlConnection.java new file mode 100644 index 00000000..5d2a7544 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultiTestDataUrlConnection.java @@ -0,0 +1,49 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import java.io.IOException;
 +import java.util.Map;
 +
 +public class MultiTestDataUrlConnection extends TestDataUrlConnection {
 +  
 +  public static interface DataSourceProvider {
 +    public Map<String, String> getResponseHeaders();
 +    public String getResponseContent();
 +    public int getResponseCode();
 +    public void nextEvent();
 +  }
 +  
 +  
 +  protected DataSourceProvider dataSource;
 +  
 +  public void setDataSource(DataSourceProvider dataSource) {
 +    this.dataSource = dataSource;
 +  }
 +  
 +  public DataUrlResponse getResponse() throws IOException {
 +    if (dataSource == null) {
 +      return super.getResponse();
 +    }
 +    dataSource.nextEvent();
 +    responseHeaders = dataSource.getResponseHeaders();
 +    responseCode = dataSource.getResponseCode();
 +    responseContent = dataSource.getResponseContent();
 +    return super.getResponse();
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultipartSLRequestTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultipartSLRequestTest.java new file mode 100644 index 00000000..7ef1a9bf --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/MultipartSLRequestTest.java @@ -0,0 +1,57 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import java.io.InputStream;
 +import java.util.HashMap;
 +import java.util.LinkedList;
 +import java.util.List;
 +import java.util.Map;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +public class MultipartSLRequestTest {
 +
 +  protected String resourceName = "at/gv/egiz/bku/binding/MultipartFromTutorial.txt";
 +
 +  protected BindingProcessor bindingProcessor;
 +  protected InputStream dataStream;
 +  protected BindingProcessorManager manager;
 +
 +  @Before
 +  public void setUp() {
 +    manager = new BindingProcessorManagerImpl(new DummyStalFactory(),
 +        new SLCommandInvokerImpl());
 +    HTTPBindingProcessor http = (HTTPBindingProcessor) manager
 +        .createBindingProcessor("http", null);
 +    Map<String, String> headers = new HashMap<String, String>();
 +    headers.put("Content-Type", InputDecoderFactory.MULTIPART_FORMDATA
 +        + ";boundary=---------------------------2330864292941");
 +    http.setHTTPHeaders(headers);
 +    dataStream = getClass().getClassLoader().getResourceAsStream(resourceName);
 +    bindingProcessor = http;
 +  }
 +
 +  @Test
 +  public void testBasicNop() {
 +    bindingProcessor.consumeRequestStream(dataStream);
 +    // manager.process(bindingProcessor);
 +    bindingProcessor.run();
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/NullOperationTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/NullOperationTest.java new file mode 100644 index 00000000..66b9dffb --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/NullOperationTest.java @@ -0,0 +1,52 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import java.io.InputStream;
 +import java.util.HashMap;
 +import java.util.Map;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +public class NullOperationTest {
 +  
 +  protected String resourceName = "at/gv/egiz/bku/binding/NulloperationRequest.txt.bin";
 +  
 +  protected BindingProcessor bindingProcessor;
 +  protected InputStream dataStream;
 +  protected BindingProcessorManager manager;
 +  
 +  @Before
 +  public void setUp() {
 +    manager = new BindingProcessorManagerImpl(new DummyStalFactory(), new SLCommandInvokerImpl());
 +    HTTPBindingProcessor http =   (HTTPBindingProcessor) manager.createBindingProcessor("http", null);
 +    Map<String, String> headers = new HashMap<String, String>();
 +    headers.put("Content-Type", "application/x-www-form-urlencoded");
 +    http.setHTTPHeaders(headers);
 +    dataStream = getClass().getClassLoader().getResourceAsStream(resourceName);
 +    bindingProcessor = http;
 +  }
 +
 +  @Test
 +  public void testBasicNop() {
 +    bindingProcessor.consumeRequestStream(dataStream);
 +    //manager.process(bindingProcessor);
 +    bindingProcessor.run();
 +  }
 +  
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/RequestFactory.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/RequestFactory.java new file mode 100644 index 00000000..77157a41 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/RequestFactory.java @@ -0,0 +1,116 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import java.io.ByteArrayInputStream;
 +import java.io.IOException;
 +import java.io.InputStream;
 +import java.net.URLEncoder;
 +import java.util.HashMap;
 +import java.util.Iterator;
 +import java.util.Map;
 +
 +import at.gv.egiz.bku.utils.StreamUtil;
 +
 +public class RequestFactory implements FixedFormParameters {
 +
 +  protected String requestResourceName = "at/gv/egiz/bku/binding/Nulloperation.xml";
 +
 +  protected Map<String, String> formString = new HashMap<String, String>();
 +  protected Map<String, String> formResources = new HashMap<String, String>();
 +
 +  public RequestFactory() {
 +    formResources.put(XMLREQUEST, requestResourceName);
 +  }
 +
 +  public void addForm(String formName, String content) {
 +    formString.put(formName, content);
 +  }
 +
 +  public void addFormAsResource(String formName, String resourceName) {
 +    formResources.put(formName, resourceName);
 +  }
 +
 +  public InputStream getURLencoded() throws IOException {
 +    StringBuffer sb = new StringBuffer();
 +    for (Iterator<String> si = formString.keySet().iterator(); si.hasNext();) {
 +      String formName = si.next();
 +      String formVal = formString.get(formName);
 +      sb.append(URLEncoder.encode(formName, "UTF-8"));
 +      sb.append("=");
 +      sb.append(URLEncoder.encode(formVal, "UTF-8"));
 +      if (si.hasNext()) {
 +        sb.append("&");
 +      } else {
 +        if (formResources.keySet().iterator().hasNext()) {
 +          sb.append("&");
 +        }
 +      }
 +    }
 +
 +    for (Iterator<String> si = formResources.keySet().iterator(); si.hasNext();) {
 +      String formName = si.next();
 +      String formVal = URLEncoder.encode(StreamUtil.asString(getClass()
 +          .getClassLoader().getResourceAsStream(formResources.get(formName)),
 +          "UTF-8"), "UTF-8");
 +      sb.append(URLEncoder.encode(formName, "UTF-8"));
 +      sb.append("=");
 +      sb.append(formVal);
 +      if (si.hasNext()) {
 +        sb.append("&");
 +      }
 +    }
 +    return new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
 +  }
 +  
 +  public String getURLencodedAsString() throws IOException {
 +    StringBuffer sb = new StringBuffer();
 +    for (Iterator<String> si = formString.keySet().iterator(); si.hasNext();) {
 +      String formName = si.next();
 +      String formVal = formString.get(formName);
 +      sb.append(URLEncoder.encode(formName, "UTF-8"));
 +      sb.append("=");
 +      sb.append(URLEncoder.encode(formVal, "UTF-8"));
 +      if (si.hasNext()) {
 +        sb.append("&");
 +      } else {
 +        if (formResources.keySet().iterator().hasNext()) {
 +          sb.append("&");
 +        }
 +      }
 +    }
 +
 +    for (Iterator<String> si = formResources.keySet().iterator(); si.hasNext();) {
 +      String formName = si.next();
 +      String formVal = URLEncoder.encode(StreamUtil.asString(getClass()
 +          .getClassLoader().getResourceAsStream(formResources.get(formName)),
 +          "UTF-8"), "UTF-8");
 +      sb.append(URLEncoder.encode(formName, "UTF-8"));
 +      sb.append("=");
 +      sb.append(formVal);
 +      if (si.hasNext()) {
 +        sb.append("&");
 +      }
 +    }
 +    return sb.toString();
 +  }
 +
 +  public String getNullOperationXML() throws IOException {
 +    return StreamUtil.asString(getClass().getClassLoader().getResourceAsStream(
 +        requestResourceName), "UTF-8");
 +  }
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/SSLDataUrlConnectionTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/SSLDataUrlConnectionTest.java new file mode 100644 index 00000000..407a556a --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/SSLDataUrlConnectionTest.java @@ -0,0 +1,39 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import static org.junit.Assert.assertNotNull;
 +
 +import java.io.IOException;
 +import java.net.URL;
 +
 +import org.junit.Test;
 +
 +
 +public class SSLDataUrlConnectionTest {
 +  
 +  @Test
 +  public void testVerisign() throws IOException {
 +    URL url = new URL("https://www.verisign.com:443");
 +    DataUrlConnectionImpl uc = new DataUrlConnectionImpl();
 +    uc.init(url);
 +    uc.connect();
 +    assertNotNull(uc.getServerCertificate());
 +    //uc.transmit(null);
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/binding/TestDataUrlConnection.java b/bkucommon/src/test/java/at/gv/egiz/bku/binding/TestDataUrlConnection.java new file mode 100644 index 00000000..e644f964 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/binding/TestDataUrlConnection.java @@ -0,0 +1,123 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.binding;
 +
 +import java.io.ByteArrayInputStream;
 +import java.io.IOException;
 +import java.io.InputStream;
 +import java.net.SocketTimeoutException;
 +import java.net.URL;
 +import java.security.cert.X509Certificate;
 +import java.util.Collections;
 +import java.util.HashMap;
 +import java.util.Map;
 +
 +import org.apache.commons.logging.Log;
 +import org.apache.commons.logging.LogFactory;
 +import org.junit.Ignore;
 +
 +import at.gv.egiz.bku.slcommands.SLResult;
 +
 +@Ignore
 +public class TestDataUrlConnection implements DataUrlConnectionSPI {
 +  
 +
 +  protected Log log = LogFactory.getLog(TestDataUrlConnection.class);
 +  protected X509Certificate serverCertificate;
 +  protected Map<String, String> responseHeaders = Collections.EMPTY_MAP;
 +  protected Map<String, String> requestHeaders = new HashMap<String, String>();
 +  protected String responseContent = "";
 +  protected int responseCode = 200;
 +    
 +  protected URL url;
 +  
 +  @Override
 +  public void init(URL url) {
 +    log.debug("Init Testdataurlconnection to url: " + url);
 +    this.url = url;
 +  }
 +
 +  @Override
 +  public void connect() throws SocketTimeoutException, IOException {
 +    log.debug("Dummy connect to Testdataurlconnection to url: " + url);
 +
 +  }
 +
 +  @Override
 +  public String getProtocol() {
 +    return url.getProtocol();
 +  }
 +
 +  @Override
 +  public DataUrlResponse getResponse() throws IOException {
 +    String ct = responseHeaders.get(HttpUtil.HTTP_HEADER_CONTENT_TYPE);
 +    if (ct != null) {
 +      ct = HttpUtil.getCharset(ct, true);
 +    } else {
 +      ct = HttpUtil.DEFAULT_CHARSET;
 +    }
 +    DataUrlResponse response = new DataUrlResponse(url.toString(), responseCode, new ByteArrayInputStream(responseContent.getBytes(ct)));
 +    response.setResponseHttpHeaders(responseHeaders);
 +    return response;
 +  }
 +
 +  @Override
 +  public X509Certificate getServerCertificate() {
 +    return serverCertificate;
 +  }
 +
 +  @Override
 +  public void setHTTPFormParameter(String name, InputStream data,
 +      String contentType, String charSet, String transferEncoding) {
 +    // TODO Auto-generated method stub
 +  }
 +
 +  @Override
 +  public void setHTTPHeader(String key, String value) {
 +    requestHeaders.put(key, value);
 +  }
 +
 +  @Override
 +  public void transmit(SLResult slResult) throws IOException {
 +    log.debug("Dummy transmit to url: " + url);
 +  }
 +
 +  public void setServerCertificate(X509Certificate serverCertificate) {
 +    this.serverCertificate = serverCertificate;
 +  }
 +
 +  public void setResponseHeaders(Map<String, String> responseHeaders) {
 +    this.responseHeaders = responseHeaders;
 +  }
 +
 +  public void setResponseContent(String responseContent) {
 +    this.responseContent = responseContent;
 +  }
 +
 +  public void setResponseCode(int responseCode) {
 +    this.responseCode = responseCode;
 +  }
 +
 +  public Map<String, String> getRequestHeaders() {
 +    return requestHeaders;
 +  }
 +
 +  @Override
 +  public DataUrlConnectionSPI newInstance() {
 +    return this;
 +  }
 + }
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/SLCommandFactoryTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/SLCommandFactoryTest.java new file mode 100644 index 00000000..7b35723d --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/SLCommandFactoryTest.java @@ -0,0 +1,78 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands; + +import static org.junit.Assert.assertTrue; + +import java.io.Reader; +import java.io.StringReader; + +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; + +import org.junit.Before; +import org.junit.Test; + +import at.gv.egiz.bku.slexceptions.SLCommandException; +import at.gv.egiz.bku.slexceptions.SLRequestException; +import at.gv.egiz.bku.slexceptions.SLRuntimeException; + +public class SLCommandFactoryTest { +   +  SLCommandFactory factory; +  SLCommandContext context; +   +  @Before +  public void setUp() { +    factory = SLCommandFactory.getInstance(); +    context = new SLCommandContext(); +  } +   +  @Test +  public void createNullOperationCommand() throws SLCommandException, SLRuntimeException, SLRequestException { +    Reader requestReader = new StringReader( +        "<NullOperationRequest xmlns=\"http://www.buergerkarte.at/namespaces/securitylayer/1.2#\"/>"); +    Source source = new StreamSource(requestReader); +     +    SLCommand slCommand = factory.createSLCommand(source, context); +     +    assertTrue(slCommand instanceof NullOperationCommand); +  } + +  @Test(expected=SLCommandException.class) +  public void createUnsupportedCommand() throws SLCommandException, SLRuntimeException, SLRequestException { +    Reader requestReader = new StringReader( +      "<CreateCMSSignatureRequest xmlns=\"http://www.buergerkarte.at/namespaces/securitylayer/1.2#\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.buergerkarte.at/namespaces/securitylayer/1.2# file:/home/clemens/IAIK/BKU2/svn/bku/utils/src/main/schema/Core-1.2.xsd\" Structure=\"detached\"><KeyboxIdentifier></KeyboxIdentifier><DataObject><MetaInfo><MimeType></MimeType></MetaInfo><Content><Base64Content></Base64Content></Content></DataObject></CreateCMSSignatureRequest>"); +    Source source = new StreamSource(requestReader); +     +    factory.createSLCommand(source, context); +     +  } +   +  @Test(expected=SLRequestException.class) +  public void createMalformedCommand() throws SLCommandException, SLRuntimeException, SLRequestException { +    Reader requestReader = new StringReader( +        "<NullOperationRequest xmlns=\"http://www.buergerkarte.at/namespaces/securitylayer/1.2#\">" + +          "missplacedContent" + +        "</NullOperationRequest>"); +    Source source = new StreamSource(requestReader); +     +    factory.createSLCommand(source, context); +     +  } +   +} diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java new file mode 100644 index 00000000..e97b732e --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java @@ -0,0 +1,100 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands.impl;
 +
 +import static org.junit.Assert.*;
 +
 +import iaik.xml.crypto.XSecProvider;
 +
 +import java.io.InputStream;
 +import java.security.Security;
 +
 +import javax.xml.transform.stream.StreamResult;
 +import javax.xml.transform.stream.StreamSource;
 +
 +import org.junit.Before;
 +import org.junit.BeforeClass;
 +import org.junit.Test;
 +
 +import at.gv.egiz.bku.slcommands.CreateXMLSignatureCommand;
 +import at.gv.egiz.bku.slcommands.InfoboxReadCommand;
 +import at.gv.egiz.bku.slcommands.SLCommand;
 +import at.gv.egiz.bku.slcommands.SLCommandContext;
 +import at.gv.egiz.bku.slcommands.SLCommandFactory;
 +import at.gv.egiz.bku.slcommands.SLResult;
 +import at.gv.egiz.bku.slcommands.impl.xsect.STALProvider;
 +import at.gv.egiz.bku.slexceptions.SLCommandException;
 +import at.gv.egiz.bku.slexceptions.SLRequestException;
 +import at.gv.egiz.bku.slexceptions.SLRuntimeException;
 +import at.gv.egiz.stal.STAL;
 +import at.gv.egiz.stal.dummy.DummySTAL;
 +
 +public class CreateXMLSignatureComandImplTest {
 +
 +  private SLCommandFactory factory;
 +  
 +  private STAL stal;
 +
 +  @BeforeClass
 +  public static void setUpClass() {
 +    
 +    
 +    Security.addProvider(new STALProvider());
 +    XSecProvider.addAsProvider(true);
 +  }
 +  
 +  @Before
 +  public void setUp() {
 +    factory = SLCommandFactory.getInstance();
 +    stal = new DummySTAL();
 +  }
 +  
 +  @Test
 +  public void testCreateXMLSignatureRequest() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/createxmlsignaturerequest/CreateXMLSignatureRequest.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    context.setSTAL(stal);
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof CreateXMLSignatureCommand);
 +    
 +    SLResult result = command.execute();
 +    result.writeTo(new StreamResult(System.out));
 +  }
 +  
 +//  @Test(expected=SLCommandException.class)
 +  public void testInfboxReadRequestInvalid1() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-1.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof InfoboxReadCommand);
 +  }
 +
 +//  @Test(expected=SLCommandException.class)
 +  public void testInfboxReadRequestInvalid2() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-2.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof InfoboxReadCommand);
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/ErrorResultImplTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/ErrorResultImplTest.java new file mode 100644 index 00000000..8455e934 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/ErrorResultImplTest.java @@ -0,0 +1,45 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands.impl; + +import java.io.ByteArrayOutputStream; + +import javax.xml.transform.stream.StreamResult; + +import org.junit.Test; + +import at.gv.egiz.bku.slcommands.ErrorResult; +import at.gv.egiz.bku.slexceptions.SLException; + +public class ErrorResultImplTest { + +  @Test +  public void writeTo() { +     +    SLException slException = new SLException(0,"test.noerror", null); +    ErrorResult errorResult = new ErrorResultImpl(slException); +     +    ByteArrayOutputStream stream = new ByteArrayOutputStream(); +    StreamResult result = new StreamResult(stream); +    errorResult.writeTo(result); +     +    System.out.println(stream.toString()); +     +  } + +   +} diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadComandImplTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadComandImplTest.java new file mode 100644 index 00000000..aadf8d54 --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadComandImplTest.java @@ -0,0 +1,86 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands.impl;
 +
 +import static org.junit.Assert.*;
 +
 +import java.io.InputStream;
 +
 +import javax.xml.transform.stream.StreamResult;
 +import javax.xml.transform.stream.StreamSource;
 +
 +import org.junit.Before;
 +import org.junit.Test;
 +
 +import at.gv.egiz.bku.slcommands.InfoboxReadCommand;
 +import at.gv.egiz.bku.slcommands.SLCommand;
 +import at.gv.egiz.bku.slcommands.SLCommandContext;
 +import at.gv.egiz.bku.slcommands.SLCommandFactory;
 +import at.gv.egiz.bku.slcommands.SLResult;
 +import at.gv.egiz.bku.slexceptions.SLCommandException;
 +import at.gv.egiz.bku.slexceptions.SLRequestException;
 +import at.gv.egiz.bku.slexceptions.SLRuntimeException;
 +import at.gv.egiz.stal.STAL;
 +import at.gv.egiz.stal.dummy.DummySTAL;
 +
 +public class InfoboxReadComandImplTest {
 +
 +  private SLCommandFactory factory;
 +  
 +  private STAL stal;
 +  
 +  @Before
 +  public void setUp() {
 +    factory = SLCommandFactory.getInstance();
 +    stal = new DummySTAL();
 +  }
 +  
 +  @Test
 +  public void testInfboxReadRequest() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    context.setSTAL(stal);
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof InfoboxReadCommand);
 +    
 +    SLResult result = command.execute();
 +    result.writeTo(new StreamResult(System.out));
 +  }
 +  
 +  @Test(expected=SLCommandException.class)
 +  public void testInfboxReadRequestInvalid1() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-1.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof InfoboxReadCommand);
 +  }
 +
 +  @Test(expected=SLCommandException.class)
 +  public void testInfboxReadRequestInvalid2() throws SLCommandException, SLRuntimeException, SLRequestException {
 +    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-2.xml");
 +    assertNotNull(inputStream);
 +    
 +    SLCommandContext context = new SLCommandContext();
 +    SLCommand command = factory.createSLCommand(new StreamSource(inputStream), context);
 +    assertTrue(command instanceof InfoboxReadCommand);
 +  }
 +
 +}
 diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/NullOperationResultImplTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/NullOperationResultImplTest.java new file mode 100644 index 00000000..8632b67c --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/NullOperationResultImplTest.java @@ -0,0 +1,42 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands.impl; + +import java.io.ByteArrayOutputStream; + +import javax.xml.transform.stream.StreamResult; + +import org.junit.Test; + +import at.gv.egiz.bku.slcommands.NullOperationResult; + +public class NullOperationResultImplTest { + +  @Test +  public void writeTo() { +     +    NullOperationResult nullOperationResult = new NullOperationResultImpl(); +     +    ByteArrayOutputStream stream = new ByteArrayOutputStream(); +    StreamResult result = new StreamResult(stream); +    nullOperationResult.writeTo(result); +     +    System.out.println(stream.toString()); +     +  } +   +} diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java new file mode 100644 index 00000000..a650d67f --- /dev/null +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java @@ -0,0 +1,747 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package at.gv.egiz.bku.slcommands.impl.xsect;
 +
 +import static org.junit.Assert.assertNotNull;
 +import static org.junit.Assert.assertNull;
 +import static org.junit.Assert.assertTrue;
 +
 +import iaik.xml.crypto.XSecProvider;
 +
 +import java.io.IOException;
 +import java.io.InputStream;
 +import java.security.KeyStore;
 +import java.security.KeyStoreException;
 +import java.security.NoSuchAlgorithmException;
 +import java.security.PrivateKey;
 +import java.security.UnrecoverableKeyException;
 +import java.security.cert.CertificateException;
 +import java.security.cert.X509Certificate;
 +import java.util.List;
 +
 +import javax.xml.bind.JAXBContext;
 +import javax.xml.bind.JAXBElement;
 +import javax.xml.bind.JAXBException;
 +import javax.xml.bind.Unmarshaller;
 +import javax.xml.crypto.MarshalException;
 +import javax.xml.crypto.dsig.CanonicalizationMethod;
 +import javax.xml.crypto.dsig.DigestMethod;
 +import javax.xml.crypto.dsig.Reference;
 +import javax.xml.crypto.dsig.SignatureMethod;
 +import javax.xml.crypto.dsig.Transform;
 +import javax.xml.crypto.dsig.XMLObject;
 +import javax.xml.crypto.dsig.XMLSignatureException;
 +import javax.xml.crypto.dsig.XMLSignatureFactory;
 +import javax.xml.crypto.dsig.dom.DOMSignContext;
 +import javax.xml.crypto.dsig.spec.C14NMethodParameterSpec;
 +import javax.xml.crypto.dsig.spec.DigestMethodParameterSpec;
 +import javax.xml.crypto.dsig.spec.SignatureMethodParameterSpec;
 +import javax.xml.stream.XMLEventReader;
 +import javax.xml.stream.XMLInputFactory;
 +import javax.xml.stream.XMLStreamException;
 +
 +import org.junit.BeforeClass;
 +import org.junit.Test;
 +import org.w3c.dom.Document;
 +import org.w3c.dom.Node;
 +import org.w3c.dom.ls.DOMImplementationLS;
 +import org.w3c.dom.ls.LSOutput;
 +import org.w3c.dom.ls.LSSerializer;
 +
 +import at.buergerkarte.namespaces.securitylayer._1.CreateXMLSignatureRequestType;
 +import at.buergerkarte.namespaces.securitylayer._1.DataObjectInfoType;
 +import at.buergerkarte.namespaces.securitylayer._1.ObjectFactory;
 +import at.buergerkarte.namespaces.securitylayer._1.SignatureInfoCreationType;
 +import at.gv.egiz.bku.slexceptions.SLCommandException;
 +import at.gv.egiz.bku.slexceptions.SLRequestException;
 +import at.gv.egiz.bku.utils.urldereferencer.StreamData;
 +import at.gv.egiz.bku.utils.urldereferencer.URLDereferencer;
 +import at.gv.egiz.bku.utils.urldereferencer.URLDereferencerContext;
 +import at.gv.egiz.bku.utils.urldereferencer.URLProtocolHandler;
 +import at.gv.egiz.dom.DOMUtils;
 +import at.gv.egiz.slbinding.RedirectEventFilter;
 +import at.gv.egiz.slbinding.RedirectUnmarshallerListener;
 +
 +public class SignatureTest {
 +
 +  private class AlgorithmMethodFactoryImpl implements AlgorithmMethodFactory {
 +  
 +    @Override
 +    public CanonicalizationMethod createCanonicalizationMethod(
 +        SignatureContext signatureContext) {
 +      
 +      XMLSignatureFactory signatureFactory = signatureContext.getSignatureFactory();
 +      
 +      try {
 +        return signatureFactory.newCanonicalizationMethod(CanonicalizationMethod.EXCLUSIVE, (C14NMethodParameterSpec) null);
 +      } catch (Exception e) {
 +        throw new RuntimeException(e);
 +      } 
 +    }
 +  
 +    @Override
 +    public DigestMethod createDigestMethod(SignatureContext signatureContext) {
 +  
 +      XMLSignatureFactory signatureFactory = signatureContext.getSignatureFactory();
 +  
 +      try {
 +        return signatureFactory.newDigestMethod(DigestMethod.SHA1, (DigestMethodParameterSpec) null);
 +      } catch (Exception e) {
 +        throw new RuntimeException(e);
 +      } 
 +    }
 +  
 +    @Override
 +    public SignatureMethod createSignatureMethod(
 +        SignatureContext signatureContext) {
 +  
 +      XMLSignatureFactory signatureFactory = signatureContext.getSignatureFactory();
 +  
 +      try {
 +        return signatureFactory.newSignatureMethod(SignatureMethod.RSA_SHA1, (SignatureMethodParameterSpec) null);
 +      } catch (Exception e) {
 +        throw new RuntimeException(e);
 +      } 
 +  
 +    }
 +    
 +  }
 +
 +  private static final String RESOURCE_PREFIX = "at/gv/egiz/bku/slcommands/impl/";
 +  
 +  private static Unmarshaller unmarshaller;
 +  
 +  private static PrivateKey privateKey;
 +
 +  private static X509Certificate certificate;
 +  
 +  @BeforeClass
 +  public static void setUpClass() throws JAXBException, NoSuchAlgorithmException, KeyStoreException, CertificateException, IOException, UnrecoverableKeyException {
 +    
 +    XSecProvider.addAsProvider(true);
 +    
 +    String packageName = ObjectFactory.class.getPackage().getName();
 +    packageName += ":"
 +        + org.w3._2000._09.xmldsig_.ObjectFactory.class.getPackage().getName();
 +    JAXBContext jaxbContext = JAXBContext.newInstance(packageName);
 +
 +    unmarshaller = jaxbContext.createUnmarshaller();
 +    
 +    initURLDereferencer();
 +    
 +    ClassLoader classLoader = SignatureTest.class.getClassLoader();
 +    InputStream certStream = classLoader.getResourceAsStream(RESOURCE_PREFIX + "Cert.p12");
 +    assertNotNull("Certificate not found.", certStream);
 +        
 +    char[] passwd = "1622".toCharArray();
 +    
 +    KeyStore keystore = KeyStore.getInstance("PKCS12");
 +    keystore.load(certStream, passwd);
 +    String firstAlias = keystore.aliases().nextElement();
 +    certificate = (X509Certificate) keystore.getCertificate(firstAlias);
 +    privateKey = (PrivateKey) keystore.getKey(firstAlias, passwd);
 +    
 +  }
 +
 +  private static void initURLDereferencer() {
 +    
 +    URLDereferencer.getInstance().registerHandler("testlocal", new URLProtocolHandler() {
 +      
 +      @Override
 +      public StreamData dereference(String url, URLDereferencerContext context)
 +          throws IOException {
 +
 +        ClassLoader classLoader = SignatureTest.class.getClassLoader();
 +        
 +        String filename = url.split(":", 2)[1];
 +
 +        InputStream stream = classLoader.getResourceAsStream(RESOURCE_PREFIX + filename);
 +        
 +        if (stream == null) {
 +
 +          throw new IOException("Failed to resolve resource '" + url + "'.");
 +
 +        } else {
 +
 +          String contentType;
 +          if (filename.endsWith(".xml")) {
 +            contentType = "text/xml";
 +          } else if (filename.endsWith(".txt")) {
 +            contentType = "text/plain";
 +          } else {
 +            contentType = "";
 +          }
 +          
 +          return new StreamData(url, contentType, stream);
 +          
 +        }
 +        
 +      }
 +      
 +    });
 +    
 +  }
 +  
 +  private Object unmarshal(String file) throws XMLStreamException, JAXBException {
 +
 +    ClassLoader classLoader = SignatureTest.class.getClassLoader();
 +    InputStream resourceStream = classLoader.getResourceAsStream(RESOURCE_PREFIX + file);
 +    assertNotNull(resourceStream);
 +
 +    XMLInputFactory inputFactory = XMLInputFactory.newInstance();
 +    XMLEventReader eventReader = inputFactory.createXMLEventReader(resourceStream);
 +    RedirectEventFilter redirectEventFilter = new RedirectEventFilter();
 +    XMLEventReader filteredReader = inputFactory.createFilteredReader(eventReader, redirectEventFilter);
 +
 +    unmarshaller.setListener(new RedirectUnmarshallerListener(redirectEventFilter));
 +
 +    return unmarshaller.unmarshal(filteredReader);
 +    
 +  }
 +  
 +  //
 +  //
 +  // SignatureInfo
 +  //
 +  //
 +  
 +  @SuppressWarnings("unchecked")
 +  private SignatureInfoCreationType unmarshalSignatureInfo(String file) throws JAXBException, XMLStreamException {
 +
 +    Object object = unmarshal(file);
 +
 +    Object requestType = ((JAXBElement) object).getValue();
 +    
 +    assertTrue(requestType instanceof CreateXMLSignatureRequestType);
 +    
 +    SignatureInfoCreationType signatureInfo = ((CreateXMLSignatureRequestType) requestType).getSignatureInfo(); 
 +    
 +    assertNotNull(signatureInfo);
 +    
 +    return signatureInfo;
 +    
 +  }
 +
 +  @Test
 +  public void testSetSignatureInfo_Base64_1() throws JAXBException, SLCommandException, XMLStreamException {
 +
 +    SignatureInfoCreationType signatureInfo = unmarshalSignatureInfo("SignatureInfo_Base64_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), null);
 +    
 +    signature.setSignatureInfo(signatureInfo);
 +    
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +
 +    assertNotNull(parent);
 +    assertTrue("urn:document".equals(parent.getNamespaceURI()));
 +    assertTrue("XMLDocument".equals(parent.getLocalName()));
 +    
 +    assertNotNull(nextSibling);
 +    assertTrue("urn:document".equals(nextSibling.getNamespaceURI()));
 +    assertTrue("Paragraph".equals(nextSibling.getLocalName()));
 +    
 +  }
 +
 +  @Test
 +  public void testSetSignature_Base64_2() throws JAXBException, SLCommandException, XMLStreamException {
 +
 +    SignatureInfoCreationType signatureInfo = unmarshalSignatureInfo("SignatureInfo_Base64_2.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), null);
 +    
 +    signature.setSignatureInfo(signatureInfo);
 +    
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +
 +    assertNotNull(parent);
 +    assertTrue("XMLDocument".equals(parent.getLocalName()));
 +    
 +    assertNotNull(nextSibling);
 +    assertTrue("Paragraph".equals(nextSibling.getLocalName()));
 +    
 +  }
 +
 +  @Test
 +  public void testSetSignature_Base64_3() throws JAXBException, SLCommandException, XMLStreamException {
 +
 +    SignatureInfoCreationType signatureInfo = unmarshalSignatureInfo("SignatureInfo_Base64_3.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), null);
 +    
 +    signature.setSignatureInfo(signatureInfo);
 +    
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +
 +    assertNotNull(parent);
 +    assertTrue("XMLDocument".equals(parent.getLocalName()));
 +    
 +    assertNotNull(nextSibling);
 +    assertTrue("Paragraph".equals(nextSibling.getLocalName()));
 +    
 +  }
 +
 +  @Test
 +  public void testSetSignatureInfo_XMLContent_1() throws JAXBException, SLCommandException, XMLStreamException {
 +
 +    SignatureInfoCreationType signatureInfo = unmarshalSignatureInfo("SignatureInfo_XMLContent_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), null);
 +    
 +    signature.setSignatureInfo(signatureInfo);
 +    
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +    
 +    assertNotNull(parent);
 +    assertTrue("urn:document".equals(parent.getNamespaceURI()));
 +    assertTrue("Whole".equals(parent.getLocalName()));
 +    
 +    assertNull(nextSibling);
 +    
 +  }
 +
 +  @Test
 +  public void testSetSignature_Reference_1() throws JAXBException, SLCommandException, XMLStreamException {
 +
 +    SignatureInfoCreationType signatureInfo = unmarshalSignatureInfo("SignatureInfo_Reference_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), null);
 +    
 +    signature.setSignatureInfo(signatureInfo);
 +    
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +    
 +    assertNotNull(parent);
 +    assertTrue("urn:document".equals(parent.getNamespaceURI()));
 +    assertTrue("Paragraph".equals(parent.getLocalName()));
 +    
 +    assertNull(nextSibling);
 +    
 +  }
 +
 +  //
 +  //
 +  // DataObject
 +  //
 +  //
 +
 +  @SuppressWarnings("unchecked")
 +  private List<DataObjectInfoType> unmarshalDataObjectInfo(String file) throws JAXBException, XMLStreamException {
 +
 +    Object object = unmarshal(file);
 +
 +    Object requestType = ((JAXBElement) object).getValue();
 +    
 +    assertTrue(requestType instanceof CreateXMLSignatureRequestType);
 +    
 +    List<DataObjectInfoType> dataObjectInfos = ((CreateXMLSignatureRequestType) requestType).getDataObjectInfo();
 +    
 +    assertNotNull(dataObjectInfos);
 +    
 +    return dataObjectInfos;
 +    
 +  }
 +
 +  private void signAndMarshalSignature(Signature signature) throws MarshalException, XMLSignatureException, SLCommandException {
 +
 +    Node parent = signature.getParent();
 +    Node nextSibling = signature.getNextSibling();
 +    
 +    DOMSignContext signContext = (nextSibling == null) 
 +      ? new DOMSignContext(privateKey, parent)
 +      : new DOMSignContext(privateKey, parent, nextSibling);
 +      
 +    signature.sign(signContext);
 +    
 +    Document document = signature.getDocument();
 +    
 +    DOMImplementationLS domImplLS = DOMUtils.getDOMImplementationLS();
 +    LSOutput output = domImplLS.createLSOutput();
 +    output.setByteStream(System.out);
 +    
 +    LSSerializer serializer = domImplLS.createLSSerializer();
 +//    serializer.getDomConfig().setParameter("format-pretty-print", Boolean.TRUE);
 +    serializer.getDomConfig().setParameter("namespaces", Boolean.FALSE);
 +    serializer.write(document, output);
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_Base64Content_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_Base64Content_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.setSignerCeritifcate(certificate);
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 1);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.BASE64.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_XMLContent_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_XMLContent_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.setSignerCeritifcate(certificate);
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 2);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.XPATH2.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_XMLContent_2() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_XMLContent_2.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.setSignerCeritifcate(certificate);
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 2);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.XPATH2.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_LocRefContent_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_LocRefContent_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 2);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.XPATH2.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_LocRefContent_2() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_LocRefContent_2.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 1);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.BASE64.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_Reference_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_Reference_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 1);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.BASE64.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 2.", objects.size() == 2);
 +    
 +    XMLObject object = objects.get(0);
 +    
 +    assertTrue(("#" + object.getId()).equals(reference.getURI()));
 +    
 +  }
 +
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_Detached_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_Detached_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 0);
 +    
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue(objects.size() == 1);
 +    
 +  }
 +  
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testDataObject_Detached_Base64Content() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    List<DataObjectInfoType> dataObjectInfos = unmarshalDataObjectInfo("DataObjectInfo_Detached_Base64Content.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue(transforms.size() == 0);
 +    
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue(objects.size() == 1);
 +    
 +  }
 +  
 +  //
 +  //
 +  // TransformsInfo
 +  //
 +  //
 +  
 +  @SuppressWarnings("unchecked")
 +  private CreateXMLSignatureRequestType unmarshalCreateXMLSignatureRequest(String file) throws JAXBException, XMLStreamException {
 +
 +    Object object = unmarshal(file);
 +
 +    Object requestType = ((JAXBElement) object).getValue();
 +    
 +    assertTrue(requestType instanceof CreateXMLSignatureRequestType);
 +    
 +    return (CreateXMLSignatureRequestType) requestType;
 +    
 +  }
 +
 +  
 +  @SuppressWarnings("unchecked")
 +  @Test
 +  public void testTransformsInfo_1() throws JAXBException, SLCommandException, XMLStreamException, SLRequestException, MarshalException, XMLSignatureException {
 +
 +    CreateXMLSignatureRequestType requestType = unmarshalCreateXMLSignatureRequest("TransformsInfo_1.xml");
 +    
 +    Signature signature = new Signature(null, new IdValueFactoryImpl(), new AlgorithmMethodFactoryImpl());
 +
 +
 +    signature.setSignatureInfo(requestType.getSignatureInfo());
 +    
 +    List<DataObjectInfoType> dataObjectInfos = requestType.getDataObjectInfo();
 +    
 +    for (DataObjectInfoType dataObjectInfo : dataObjectInfos) {
 +      signature.addDataObject(dataObjectInfo);
 +    }
 +    
 +    signature.setSignerCeritifcate(certificate);
 +    
 +    signature.buildXMLSignature();
 +    
 +    signAndMarshalSignature(signature);
 +    
 +    List<Reference> references = signature.getReferences();
 +    assertTrue(references.size() == 2);
 +
 +    Reference reference = references.get(0);
 +    assertNotNull(reference.getId());
 +    
 +    List<Transform> transforms = reference.getTransforms();
 +    assertTrue("Size " + transforms.size() + "", transforms.size() == 3);
 +    
 +    Transform transform = transforms.get(0);
 +    assertTrue(Transform.ENVELOPED.equals(transform.getAlgorithm()));
 +  
 +    List<XMLObject> objects = signature.getXMLObjects();
 +    assertNotNull(objects);
 +    assertTrue("Size " + objects.size() + " but should be 1.", objects.size() == 1);
 +    
 +  }
 +
 +  
 +}
 diff --git a/bkucommon/src/test/java/moaspss/MOASPSSTest.java b/bkucommon/src/test/java/moaspss/MOASPSSTest.java new file mode 100644 index 00000000..21d42176 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/MOASPSSTest.java @@ -0,0 +1,119 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package moaspss; + +import static org.junit.Assert.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.List; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; +import javax.xml.namespace.QName; + +import moaspss.generated.ContentOptionalRefType; +import moaspss.generated.InputDataType; +import moaspss.generated.MOAFault; +import moaspss.generated.ObjectFactory; +import moaspss.generated.SignatureVerificationPortType; +import moaspss.generated.SignatureVerificationService; +import moaspss.generated.VerifyXMLSignatureRequestType; +import moaspss.generated.VerifyXMLSignatureResponseType; +import moaspss.generated.VerifyXMLSignatureRequestType.VerifySignatureInfo; + +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +@Ignore +public class MOASPSSTest { + +  public static final String REQ_FILE = "TODO.xml"; +  private static JAXBContext ctx; +  private static SignatureVerificationPortType port; +   +  @BeforeClass +  public static void setUp() throws JAXBException, MalformedURLException { +    QName serviceName = new QName("http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#", "SignatureVerificationService"); +     +    URL wsdlURL = MOASPSSTest.class.getClassLoader().getResource("MOA-SPSS-1.3.wsdl"); +     +    assertNotNull(wsdlURL); +     +    SignatureVerificationService service = new SignatureVerificationService(wsdlURL, serviceName); +     +    port = service.getSignatureVerificationPort(); +    assertNotNull(port); +    ctx = JAXBContext.newInstance(VerifyXMLSignatureRequestType.class.getPackage().getName()); +  } +   +  @Test +  public void verifySignature() throws JAXBException, IOException { +     +    InputStream stream = MOASPSSTest.class.getClassLoader().getResourceAsStream("Untitled1.xml"); +    assertNotNull(stream); +     +    ByteArrayOutputStream bos = new ByteArrayOutputStream(); +    int b; +    while ((b = stream.read()) != -1) { +      bos.write(b); +    } +    stream.close(); +     +    ObjectFactory factory = new ObjectFactory(); + +    ContentOptionalRefType contentOptionalRefType = factory.createContentOptionalRefType(); +    contentOptionalRefType.setBase64Content(bos.toByteArray()); + +    VerifySignatureInfo verifySignatureInfo = factory.createVerifyXMLSignatureRequestTypeVerifySignatureInfo(); +    verifySignatureInfo.setVerifySignatureEnvironment(contentOptionalRefType); +    verifySignatureInfo.setVerifySignatureLocation("/child::*[1]/child::*[2]"); +     +    VerifyXMLSignatureRequestType verifyXMLSignatureRequestType = factory.createVerifyXMLSignatureRequestType(); +    verifyXMLSignatureRequestType.setVerifySignatureInfo(verifySignatureInfo); +    verifyXMLSignatureRequestType.setTrustProfileID("IdentityLink"); +    verifyXMLSignatureRequestType.setReturnHashInputData(Boolean.TRUE); +     +    VerifyXMLSignatureResponseType resp = null; +    try { +      resp = port.verifyXMLSignature(verifyXMLSignatureRequestType); +    } catch (MOAFault e) { +      e.printStackTrace(); +    } +     +    JAXBElement<VerifyXMLSignatureResponseType> verifyXMLSignatureResponse = factory.createVerifyXMLSignatureResponse(resp); +     +    Marshaller marshaller = ctx.createMarshaller(); +    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); +    marshaller.marshal(verifyXMLSignatureResponse, System.out); +     +    List<InputDataType> hashInputData = resp.getHashInputData(); +    for (InputDataType inputDataType : hashInputData) { +      System.out.println("------------------------------------------"); +      System.out.println("HashInputData: " + inputDataType.getPartOf() + " " + inputDataType.getReferringSigReference()); +      System.out.println("------------------------------------------"); +      System.out.write(inputDataType.getBase64Content()); +      System.out.println(); +    } +  } +} diff --git a/bkucommon/src/test/java/moaspss/generated/AllSignatoriesType.java b/bkucommon/src/test/java/moaspss/generated/AllSignatoriesType.java new file mode 100644 index 00000000..99e28c1a --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/AllSignatoriesType.java @@ -0,0 +1,64 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for AllSignatoriesType. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + * <p> + * <pre> + * <simpleType name="AllSignatoriesType"> + *   <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + *     <enumeration value="all"/> + *   </restriction> + * </simpleType> + * </pre> + *  + */ +@XmlType(name = "AllSignatoriesType") +@XmlEnum +public enum AllSignatoriesType { + +    @XmlEnumValue("all") +    ALL("all"); +    private final String value; + +    AllSignatoriesType(String v) { +        value = v; +    } + +    public String value() { +        return value; +    } + +    public static AllSignatoriesType fromValue(String v) { +        for (AllSignatoriesType c: AllSignatoriesType.values()) { +            if (c.value.equals(v)) { +                return c; +            } +        } +        throw new IllegalArgumentException(v); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/AnyChildrenType.java b/bkucommon/src/test/java/moaspss/generated/AnyChildrenType.java new file mode 100644 index 00000000..81dd4472 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/AnyChildrenType.java @@ -0,0 +1,96 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for AnyChildrenType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="AnyChildrenType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <any/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AnyChildrenType", propOrder = { +    "content" +}) +@XmlSeeAlso({ +    ReferencesCheckResultInfoType.class, +    XMLContentType.class, +    ManifestRefsCheckResultInfoType.class +}) +public class AnyChildrenType { + +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link Object } +     * {@link Element } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CMSContentBaseType.java b/bkucommon/src/test/java/moaspss/generated/CMSContentBaseType.java new file mode 100644 index 00000000..7356b655 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CMSContentBaseType.java @@ -0,0 +1,51 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for CMSContentBaseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CMSContentBaseType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"> + *       <choice minOccurs="0"> + *         <element name="Base64Content" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CMSContentBaseType") +public class CMSContentBaseType +    extends ContentOptionalRefType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CMSDataObjectOptionalMetaType.java b/bkucommon/src/test/java/moaspss/generated/CMSDataObjectOptionalMetaType.java new file mode 100644 index 00000000..887e7de5 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CMSDataObjectOptionalMetaType.java @@ -0,0 +1,106 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for CMSDataObjectOptionalMetaType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CMSDataObjectOptionalMetaType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="MetaInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}MetaInfoType" minOccurs="0"/> + *         <element name="Content" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CMSContentBaseType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CMSDataObjectOptionalMetaType", propOrder = { +    "metaInfo", +    "content" +}) +public class CMSDataObjectOptionalMetaType { + +    @XmlElement(name = "MetaInfo") +    protected MetaInfoType metaInfo; +    @XmlElement(name = "Content", required = true) +    protected CMSContentBaseType content; + +    /** +     * Gets the value of the metaInfo property. +     *  +     * @return +     *     possible object is +     *     {@link MetaInfoType } +     *      +     */ +    public MetaInfoType getMetaInfo() { +        return metaInfo; +    } + +    /** +     * Sets the value of the metaInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link MetaInfoType } +     *      +     */ +    public void setMetaInfo(MetaInfoType value) { +        this.metaInfo = value; +    } + +    /** +     * Gets the value of the content property. +     *  +     * @return +     *     possible object is +     *     {@link CMSContentBaseType } +     *      +     */ +    public CMSContentBaseType getContent() { +        return content; +    } + +    /** +     * Sets the value of the content property. +     *  +     * @param value +     *     allowed object is +     *     {@link CMSContentBaseType } +     *      +     */ +    public void setContent(CMSContentBaseType value) { +        this.content = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CanonicalizationMethodType.java b/bkucommon/src/test/java/moaspss/generated/CanonicalizationMethodType.java new file mode 100644 index 00000000..889419db --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CanonicalizationMethodType.java @@ -0,0 +1,118 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for CanonicalizationMethodType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CanonicalizationMethodType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <any/> + *       </sequence> + *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CanonicalizationMethodType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class CanonicalizationMethodType { + +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Algorithm", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String algorithm; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link Object } +     * {@link String } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the algorithm property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getAlgorithm() { +        return algorithm; +    } + +    /** +     * Sets the value of the algorithm property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setAlgorithm(String value) { +        this.algorithm = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CheckResultType.java b/bkucommon/src/test/java/moaspss/generated/CheckResultType.java new file mode 100644 index 00000000..48f28dac --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CheckResultType.java @@ -0,0 +1,114 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for CheckResultType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CheckResultType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/> + *         <element name="Info" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}AnyChildrenType" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CheckResultType", propOrder = { +    "code", +    "info" +}) +@XmlSeeAlso({ +    ManifestRefsCheckResultType.class, +    ReferencesCheckResultType.class +}) +public class CheckResultType { + +    @XmlElement(name = "Code", required = true) +    @XmlSchemaType(name = "nonNegativeInteger") +    protected BigInteger code; +    @XmlElement(name = "Info") +    protected AnyChildrenType info; + +    /** +     * Gets the value of the code property. +     *  +     * @return +     *     possible object is +     *     {@link BigInteger } +     *      +     */ +    public BigInteger getCode() { +        return code; +    } + +    /** +     * Sets the value of the code property. +     *  +     * @param value +     *     allowed object is +     *     {@link BigInteger } +     *      +     */ +    public void setCode(BigInteger value) { +        this.code = value; +    } + +    /** +     * Gets the value of the info property. +     *  +     * @return +     *     possible object is +     *     {@link AnyChildrenType } +     *      +     */ +    public AnyChildrenType getInfo() { +        return info; +    } + +    /** +     * Sets the value of the info property. +     *  +     * @param value +     *     allowed object is +     *     {@link AnyChildrenType } +     *      +     */ +    public void setInfo(AnyChildrenType value) { +        this.info = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ContentBaseType.java b/bkucommon/src/test/java/moaspss/generated/ContentBaseType.java new file mode 100644 index 00000000..ffd96202 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ContentBaseType.java @@ -0,0 +1,139 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ContentBaseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ContentBaseType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice minOccurs="0"> + *         <element name="Base64Content" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <element name="XMLContent" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}XMLContentType"/> + *         <element name="LocRefContent" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ContentBaseType", propOrder = { +    "base64Content", +    "xmlContent", +    "locRefContent" +}) +@XmlSeeAlso({ +    ContentExLocRefBaseType.class, +    ContentOptionalRefType.class +}) +public class ContentBaseType { + +    @XmlElement(name = "Base64Content") +    protected byte[] base64Content; +    @XmlElement(name = "XMLContent") +    protected XMLContentType xmlContent; +    @XmlElement(name = "LocRefContent") +    @XmlSchemaType(name = "anyURI") +    protected String locRefContent; + +    /** +     * Gets the value of the base64Content property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getBase64Content() { +        return base64Content; +    } + +    /** +     * Sets the value of the base64Content property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setBase64Content(byte[] value) { +        this.base64Content = ((byte[]) value); +    } + +    /** +     * Gets the value of the xmlContent property. +     *  +     * @return +     *     possible object is +     *     {@link XMLContentType } +     *      +     */ +    public XMLContentType getXMLContent() { +        return xmlContent; +    } + +    /** +     * Sets the value of the xmlContent property. +     *  +     * @param value +     *     allowed object is +     *     {@link XMLContentType } +     *      +     */ +    public void setXMLContent(XMLContentType value) { +        this.xmlContent = value; +    } + +    /** +     * Gets the value of the locRefContent property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getLocRefContent() { +        return locRefContent; +    } + +    /** +     * Sets the value of the locRefContent property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setLocRefContent(String value) { +        this.locRefContent = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ContentExLocRefBaseType.java b/bkucommon/src/test/java/moaspss/generated/ContentExLocRefBaseType.java new file mode 100644 index 00000000..00a884f0 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ContentExLocRefBaseType.java @@ -0,0 +1,56 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ContentExLocRefBaseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ContentExLocRefBaseType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentBaseType"> + *       <choice minOccurs="0"> + *         <element name="Base64Content" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <element name="XMLContent" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}XMLContentType"/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ContentExLocRefBaseType") +@XmlSeeAlso({ +    InputDataType.class +}) +public class ContentExLocRefBaseType +    extends ContentBaseType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ContentOptionalRefType.java b/bkucommon/src/test/java/moaspss/generated/ContentOptionalRefType.java new file mode 100644 index 00000000..73cdfcf9 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ContentOptionalRefType.java @@ -0,0 +1,84 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ContentOptionalRefType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ContentOptionalRefType"> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentBaseType"> + *       <attribute name="Reference" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ContentOptionalRefType") +@XmlSeeAlso({ +    CMSContentBaseType.class, +    ContentRequiredRefType.class, +    moaspss.generated.DataObjectInfoType.DataObject.class +}) +public class ContentOptionalRefType +    extends ContentBaseType +{ + +    @XmlAttribute(name = "Reference") +    @XmlSchemaType(name = "anyURI") +    protected String reference; + +    /** +     * Gets the value of the reference property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getReference() { +        return reference; +    } + +    /** +     * Sets the value of the reference property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setReference(String value) { +        this.reference = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ContentRequiredRefType.java b/bkucommon/src/test/java/moaspss/generated/ContentRequiredRefType.java new file mode 100644 index 00000000..4b9f7524 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ContentRequiredRefType.java @@ -0,0 +1,54 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ContentRequiredRefType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ContentRequiredRefType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"> + *       <choice minOccurs="0"> + *         <element name="Base64Content" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <element name="XMLContent" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}XMLContentType"/> + *         <element name="LocRefContent" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> + *       </choice> + *       <attribute name="Reference" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ContentRequiredRefType") +public class ContentRequiredRefType +    extends ContentOptionalRefType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateSignatureEnvironmentProfile.java b/bkucommon/src/test/java/moaspss/generated/CreateSignatureEnvironmentProfile.java new file mode 100644 index 00000000..22d7ef7c --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateSignatureEnvironmentProfile.java @@ -0,0 +1,115 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for anonymous complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="CreateSignatureLocation" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateSignatureLocationType"/> + *         <element name="Supplement" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}XMLDataObjectAssociationType" maxOccurs="unbounded" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { +    "createSignatureLocation", +    "supplement" +}) +@XmlRootElement(name = "CreateSignatureEnvironmentProfile") +public class CreateSignatureEnvironmentProfile { + +    @XmlElement(name = "CreateSignatureLocation", required = true) +    protected CreateSignatureLocationType createSignatureLocation; +    @XmlElement(name = "Supplement") +    protected List<XMLDataObjectAssociationType> supplement; + +    /** +     * Gets the value of the createSignatureLocation property. +     *  +     * @return +     *     possible object is +     *     {@link CreateSignatureLocationType } +     *      +     */ +    public CreateSignatureLocationType getCreateSignatureLocation() { +        return createSignatureLocation; +    } + +    /** +     * Sets the value of the createSignatureLocation property. +     *  +     * @param value +     *     allowed object is +     *     {@link CreateSignatureLocationType } +     *      +     */ +    public void setCreateSignatureLocation(CreateSignatureLocationType value) { +        this.createSignatureLocation = value; +    } + +    /** +     * Gets the value of the supplement property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the supplement property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSupplement().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link XMLDataObjectAssociationType } +     *  +     *  +     */ +    public List<XMLDataObjectAssociationType> getSupplement() { +        if (supplement == null) { +            supplement = new ArrayList<XMLDataObjectAssociationType>(); +        } +        return this.supplement; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateSignatureLocationType.java b/bkucommon/src/test/java/moaspss/generated/CreateSignatureLocationType.java new file mode 100644 index 00000000..f6278d07 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateSignatureLocationType.java @@ -0,0 +1,109 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for CreateSignatureLocationType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CreateSignatureLocationType"> + *   <simpleContent> + *     <extension base="<http://www.w3.org/2001/XMLSchema>token"> + *       <attribute name="Index" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" /> + *     </extension> + *   </simpleContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CreateSignatureLocationType", propOrder = { +    "value" +}) +public class CreateSignatureLocationType { + +    @XmlValue +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlSchemaType(name = "token") +    protected String value; +    @XmlAttribute(name = "Index", required = true) +    protected BigInteger index; + +    /** +     * Gets the value of the value property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getValue() { +        return value; +    } + +    /** +     * Sets the value of the value property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setValue(String value) { +        this.value = value; +    } + +    /** +     * Gets the value of the index property. +     *  +     * @return +     *     possible object is +     *     {@link BigInteger } +     *      +     */ +    public BigInteger getIndex() { +        return index; +    } + +    /** +     * Sets the value of the index property. +     *  +     * @param value +     *     allowed object is +     *     {@link BigInteger } +     *      +     */ +    public void setIndex(BigInteger value) { +        this.index = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateTransformsInfoProfile.java b/bkucommon/src/test/java/moaspss/generated/CreateTransformsInfoProfile.java new file mode 100644 index 00000000..d39c2a63 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateTransformsInfoProfile.java @@ -0,0 +1,115 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for anonymous complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="CreateTransformsInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}TransformsInfoType"/> + *         <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}Supplement" maxOccurs="unbounded" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { +    "createTransformsInfo", +    "supplement" +}) +@XmlRootElement(name = "CreateTransformsInfoProfile") +public class CreateTransformsInfoProfile { + +    @XmlElement(name = "CreateTransformsInfo", required = true) +    protected TransformsInfoType createTransformsInfo; +    @XmlElement(name = "Supplement") +    protected List<XMLDataObjectAssociationType> supplement; + +    /** +     * Gets the value of the createTransformsInfo property. +     *  +     * @return +     *     possible object is +     *     {@link TransformsInfoType } +     *      +     */ +    public TransformsInfoType getCreateTransformsInfo() { +        return createTransformsInfo; +    } + +    /** +     * Sets the value of the createTransformsInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformsInfoType } +     *      +     */ +    public void setCreateTransformsInfo(TransformsInfoType value) { +        this.createTransformsInfo = value; +    } + +    /** +     * Gets the value of the supplement property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the supplement property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSupplement().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link XMLDataObjectAssociationType } +     *  +     *  +     */ +    public List<XMLDataObjectAssociationType> getSupplement() { +        if (supplement == null) { +            supplement = new ArrayList<XMLDataObjectAssociationType>(); +        } +        return this.supplement; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequest.java b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequest.java new file mode 100644 index 00000000..92dc9b4b --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequest.java @@ -0,0 +1,50 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for anonymous complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateXMLSignatureRequestType"> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "CreateXMLSignatureRequest") +public class CreateXMLSignatureRequest +    extends CreateXMLSignatureRequestType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequestType.java b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequestType.java new file mode 100644 index 00000000..aad14567 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureRequestType.java @@ -0,0 +1,466 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for CreateXMLSignatureRequestType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CreateXMLSignatureRequestType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="KeyIdentifier" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}KeyIdentifierType"/> + *         <element name="SingleSignatureInfo" maxOccurs="unbounded"> + *           <complexType> + *             <complexContent> + *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                 <sequence> + *                   <element name="DataObjectInfo" maxOccurs="unbounded"> + *                     <complexType> + *                       <complexContent> + *                         <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}DataObjectInfoType"> + *                           <attribute name="ChildOfManifest" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> + *                         </extension> + *                       </complexContent> + *                     </complexType> + *                   </element> + *                   <element name="CreateSignatureInfo" minOccurs="0"> + *                     <complexType> + *                       <complexContent> + *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                           <sequence> + *                             <element name="CreateSignatureEnvironment" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"/> + *                             <choice> + *                               <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateSignatureEnvironmentProfile"/> + *                               <element name="CreateSignatureEnvironmentProfileID" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ProfileIdentifierType"/> + *                             </choice> + *                           </sequence> + *                         </restriction> + *                       </complexContent> + *                     </complexType> + *                   </element> + *                 </sequence> + *                 <attribute name="SecurityLayerConformity" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> + *               </restriction> + *             </complexContent> + *           </complexType> + *         </element> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CreateXMLSignatureRequestType", propOrder = { +    "keyIdentifier", +    "singleSignatureInfo" +}) +@XmlSeeAlso({ +    CreateXMLSignatureRequest.class +}) +public class CreateXMLSignatureRequestType { + +    @XmlElement(name = "KeyIdentifier", required = true) +    protected String keyIdentifier; +    @XmlElement(name = "SingleSignatureInfo", required = true) +    protected List<CreateXMLSignatureRequestType.SingleSignatureInfo> singleSignatureInfo; + +    /** +     * Gets the value of the keyIdentifier property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getKeyIdentifier() { +        return keyIdentifier; +    } + +    /** +     * Sets the value of the keyIdentifier property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setKeyIdentifier(String value) { +        this.keyIdentifier = value; +    } + +    /** +     * Gets the value of the singleSignatureInfo property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the singleSignatureInfo property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSingleSignatureInfo().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link CreateXMLSignatureRequestType.SingleSignatureInfo } +     *  +     *  +     */ +    public List<CreateXMLSignatureRequestType.SingleSignatureInfo> getSingleSignatureInfo() { +        if (singleSignatureInfo == null) { +            singleSignatureInfo = new ArrayList<CreateXMLSignatureRequestType.SingleSignatureInfo>(); +        } +        return this.singleSignatureInfo; +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *       <sequence> +     *         <element name="DataObjectInfo" maxOccurs="unbounded"> +     *           <complexType> +     *             <complexContent> +     *               <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}DataObjectInfoType"> +     *                 <attribute name="ChildOfManifest" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> +     *               </extension> +     *             </complexContent> +     *           </complexType> +     *         </element> +     *         <element name="CreateSignatureInfo" minOccurs="0"> +     *           <complexType> +     *             <complexContent> +     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *                 <sequence> +     *                   <element name="CreateSignatureEnvironment" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"/> +     *                   <choice> +     *                     <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateSignatureEnvironmentProfile"/> +     *                     <element name="CreateSignatureEnvironmentProfileID" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ProfileIdentifierType"/> +     *                   </choice> +     *                 </sequence> +     *               </restriction> +     *             </complexContent> +     *           </complexType> +     *         </element> +     *       </sequence> +     *       <attribute name="SecurityLayerConformity" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> +     *     </restriction> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "", propOrder = { +        "dataObjectInfo", +        "createSignatureInfo" +    }) +    public static class SingleSignatureInfo { + +        @XmlElement(name = "DataObjectInfo", required = true) +        protected List<CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo> dataObjectInfo; +        @XmlElement(name = "CreateSignatureInfo") +        protected CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo createSignatureInfo; +        @XmlAttribute(name = "SecurityLayerConformity") +        protected Boolean securityLayerConformity; + +        /** +         * Gets the value of the dataObjectInfo property. +         *  +         * <p> +         * This accessor method returns a reference to the live list, +         * not a snapshot. Therefore any modification you make to the +         * returned list will be present inside the JAXB object. +         * This is why there is not a <CODE>set</CODE> method for the dataObjectInfo property. +         *  +         * <p> +         * For example, to add a new item, do as follows: +         * <pre> +         *    getDataObjectInfo().add(newItem); +         * </pre> +         *  +         *  +         * <p> +         * Objects of the following type(s) are allowed in the list +         * {@link CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo } +         *  +         *  +         */ +        public List<CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo> getDataObjectInfo() { +            if (dataObjectInfo == null) { +                dataObjectInfo = new ArrayList<CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo>(); +            } +            return this.dataObjectInfo; +        } + +        /** +         * Gets the value of the createSignatureInfo property. +         *  +         * @return +         *     possible object is +         *     {@link CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo } +         *      +         */ +        public CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo getCreateSignatureInfo() { +            return createSignatureInfo; +        } + +        /** +         * Sets the value of the createSignatureInfo property. +         *  +         * @param value +         *     allowed object is +         *     {@link CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo } +         *      +         */ +        public void setCreateSignatureInfo(CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo value) { +            this.createSignatureInfo = value; +        } + +        /** +         * Gets the value of the securityLayerConformity property. +         *  +         * @return +         *     possible object is +         *     {@link Boolean } +         *      +         */ +        public boolean isSecurityLayerConformity() { +            if (securityLayerConformity == null) { +                return true; +            } else { +                return securityLayerConformity; +            } +        } + +        /** +         * Sets the value of the securityLayerConformity property. +         *  +         * @param value +         *     allowed object is +         *     {@link Boolean } +         *      +         */ +        public void setSecurityLayerConformity(Boolean value) { +            this.securityLayerConformity = value; +        } + + +        /** +         * <p>Java class for anonymous complex type. +         *  +         * <p>The following schema fragment specifies the expected content contained within this class. +         *  +         * <pre> +         * <complexType> +         *   <complexContent> +         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +         *       <sequence> +         *         <element name="CreateSignatureEnvironment" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"/> +         *         <choice> +         *           <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateSignatureEnvironmentProfile"/> +         *           <element name="CreateSignatureEnvironmentProfileID" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ProfileIdentifierType"/> +         *         </choice> +         *       </sequence> +         *     </restriction> +         *   </complexContent> +         * </complexType> +         * </pre> +         *  +         *  +         */ +        @XmlAccessorType(XmlAccessType.FIELD) +        @XmlType(name = "", propOrder = { +            "createSignatureEnvironment", +            "createSignatureEnvironmentProfile", +            "createSignatureEnvironmentProfileID" +        }) +        public static class CreateSignatureInfo { + +            @XmlElement(name = "CreateSignatureEnvironment", required = true) +            protected ContentOptionalRefType createSignatureEnvironment; +            @XmlElement(name = "CreateSignatureEnvironmentProfile") +            protected CreateSignatureEnvironmentProfile createSignatureEnvironmentProfile; +            @XmlElement(name = "CreateSignatureEnvironmentProfileID") +            @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +            protected String createSignatureEnvironmentProfileID; + +            /** +             * Gets the value of the createSignatureEnvironment property. +             *  +             * @return +             *     possible object is +             *     {@link ContentOptionalRefType } +             *      +             */ +            public ContentOptionalRefType getCreateSignatureEnvironment() { +                return createSignatureEnvironment; +            } + +            /** +             * Sets the value of the createSignatureEnvironment property. +             *  +             * @param value +             *     allowed object is +             *     {@link ContentOptionalRefType } +             *      +             */ +            public void setCreateSignatureEnvironment(ContentOptionalRefType value) { +                this.createSignatureEnvironment = value; +            } + +            /** +             * Gets the value of the createSignatureEnvironmentProfile property. +             *  +             * @return +             *     possible object is +             *     {@link CreateSignatureEnvironmentProfile } +             *      +             */ +            public CreateSignatureEnvironmentProfile getCreateSignatureEnvironmentProfile() { +                return createSignatureEnvironmentProfile; +            } + +            /** +             * Sets the value of the createSignatureEnvironmentProfile property. +             *  +             * @param value +             *     allowed object is +             *     {@link CreateSignatureEnvironmentProfile } +             *      +             */ +            public void setCreateSignatureEnvironmentProfile(CreateSignatureEnvironmentProfile value) { +                this.createSignatureEnvironmentProfile = value; +            } + +            /** +             * Gets the value of the createSignatureEnvironmentProfileID property. +             *  +             * @return +             *     possible object is +             *     {@link String } +             *      +             */ +            public String getCreateSignatureEnvironmentProfileID() { +                return createSignatureEnvironmentProfileID; +            } + +            /** +             * Sets the value of the createSignatureEnvironmentProfileID property. +             *  +             * @param value +             *     allowed object is +             *     {@link String } +             *      +             */ +            public void setCreateSignatureEnvironmentProfileID(String value) { +                this.createSignatureEnvironmentProfileID = value; +            } + +        } + + +        /** +         * <p>Java class for anonymous complex type. +         *  +         * <p>The following schema fragment specifies the expected content contained within this class. +         *  +         * <pre> +         * <complexType> +         *   <complexContent> +         *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}DataObjectInfoType"> +         *       <attribute name="ChildOfManifest" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> +         *     </extension> +         *   </complexContent> +         * </complexType> +         * </pre> +         *  +         *  +         */ +        @XmlAccessorType(XmlAccessType.FIELD) +        @XmlType(name = "") +        public static class DataObjectInfo +            extends DataObjectInfoType +        { + +            @XmlAttribute(name = "ChildOfManifest") +            protected Boolean childOfManifest; + +            /** +             * Gets the value of the childOfManifest property. +             *  +             * @return +             *     possible object is +             *     {@link Boolean } +             *      +             */ +            public boolean isChildOfManifest() { +                if (childOfManifest == null) { +                    return false; +                } else { +                    return childOfManifest; +                } +            } + +            /** +             * Sets the value of the childOfManifest property. +             *  +             * @param value +             *     allowed object is +             *     {@link Boolean } +             *      +             */ +            public void setChildOfManifest(Boolean value) { +                this.childOfManifest = value; +            } + +        } + +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureResponseType.java b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureResponseType.java new file mode 100644 index 00000000..1b320998 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/CreateXMLSignatureResponseType.java @@ -0,0 +1,160 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for CreateXMLSignatureResponseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="CreateXMLSignatureResponseType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice maxOccurs="unbounded"> + *         <element name="SignatureEnvironment"> + *           <complexType> + *             <complexContent> + *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                 <sequence> + *                   <any/> + *                 </sequence> + *               </restriction> + *             </complexContent> + *           </complexType> + *         </element> + *         <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}ErrorResponse"/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CreateXMLSignatureResponseType", propOrder = { +    "signatureEnvironmentOrErrorResponse" +}) +public class CreateXMLSignatureResponseType { + +    @XmlElements({ +        @XmlElement(name = "ErrorResponse", type = ErrorResponseType.class), +        @XmlElement(name = "SignatureEnvironment", type = CreateXMLSignatureResponseType.SignatureEnvironment.class) +    }) +    protected List<Object> signatureEnvironmentOrErrorResponse; + +    /** +     * Gets the value of the signatureEnvironmentOrErrorResponse property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the signatureEnvironmentOrErrorResponse property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSignatureEnvironmentOrErrorResponse().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link ErrorResponseType } +     * {@link CreateXMLSignatureResponseType.SignatureEnvironment } +     *  +     *  +     */ +    public List<Object> getSignatureEnvironmentOrErrorResponse() { +        if (signatureEnvironmentOrErrorResponse == null) { +            signatureEnvironmentOrErrorResponse = new ArrayList<Object>(); +        } +        return this.signatureEnvironmentOrErrorResponse; +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *       <sequence> +     *         <any/> +     *       </sequence> +     *     </restriction> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "", propOrder = { +        "any" +    }) +    public static class SignatureEnvironment { + +        @XmlAnyElement(lax = true) +        protected Object any; + +        /** +         * Gets the value of the any property. +         *  +         * @return +         *     possible object is +         *     {@link Object } +         *     {@link Element } +         *      +         */ +        public Object getAny() { +            return any; +        } + +        /** +         * Sets the value of the any property. +         *  +         * @param value +         *     allowed object is +         *     {@link Object } +         *     {@link Element } +         *      +         */ +        public void setAny(Object value) { +            this.any = value; +        } + +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/DSAKeyValueType.java b/bkucommon/src/test/java/moaspss/generated/DSAKeyValueType.java new file mode 100644 index 00000000..085452f4 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/DSAKeyValueType.java @@ -0,0 +1,236 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for DSAKeyValueType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="DSAKeyValueType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <sequence minOccurs="0"> + *           <element name="P" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *           <element name="Q" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *         </sequence> + *         <element name="G" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary" minOccurs="0"/> + *         <element name="Y" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *         <element name="J" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary" minOccurs="0"/> + *         <sequence minOccurs="0"> + *           <element name="Seed" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *           <element name="PgenCounter" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *         </sequence> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DSAKeyValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "p", +    "q", +    "g", +    "y", +    "j", +    "seed", +    "pgenCounter" +}) +public class DSAKeyValueType { + +    @XmlElement(name = "P") +    protected byte[] p; +    @XmlElement(name = "Q") +    protected byte[] q; +    @XmlElement(name = "G") +    protected byte[] g; +    @XmlElement(name = "Y", required = true) +    protected byte[] y; +    @XmlElement(name = "J") +    protected byte[] j; +    @XmlElement(name = "Seed") +    protected byte[] seed; +    @XmlElement(name = "PgenCounter") +    protected byte[] pgenCounter; + +    /** +     * Gets the value of the p property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getP() { +        return p; +    } + +    /** +     * Sets the value of the p property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setP(byte[] value) { +        this.p = ((byte[]) value); +    } + +    /** +     * Gets the value of the q property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getQ() { +        return q; +    } + +    /** +     * Sets the value of the q property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setQ(byte[] value) { +        this.q = ((byte[]) value); +    } + +    /** +     * Gets the value of the g property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getG() { +        return g; +    } + +    /** +     * Sets the value of the g property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setG(byte[] value) { +        this.g = ((byte[]) value); +    } + +    /** +     * Gets the value of the y property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getY() { +        return y; +    } + +    /** +     * Sets the value of the y property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setY(byte[] value) { +        this.y = ((byte[]) value); +    } + +    /** +     * Gets the value of the j property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getJ() { +        return j; +    } + +    /** +     * Sets the value of the j property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setJ(byte[] value) { +        this.j = ((byte[]) value); +    } + +    /** +     * Gets the value of the seed property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getSeed() { +        return seed; +    } + +    /** +     * Sets the value of the seed property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setSeed(byte[] value) { +        this.seed = ((byte[]) value); +    } + +    /** +     * Gets the value of the pgenCounter property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getPgenCounter() { +        return pgenCounter; +    } + +    /** +     * Sets the value of the pgenCounter property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setPgenCounter(byte[] value) { +        this.pgenCounter = ((byte[]) value); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/DataObjectInfoType.java b/bkucommon/src/test/java/moaspss/generated/DataObjectInfoType.java new file mode 100644 index 00000000..b5f6fe27 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/DataObjectInfoType.java @@ -0,0 +1,211 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for DataObjectInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="DataObjectInfoType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="DataObject"> + *           <complexType> + *             <complexContent> + *               <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"> + *               </extension> + *             </complexContent> + *           </complexType> + *         </element> + *         <choice> + *           <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}CreateTransformsInfoProfile"/> + *           <element name="CreateTransformsInfoProfileID" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ProfileIdentifierType"/> + *         </choice> + *       </sequence> + *       <attribute name="Structure" use="required"> + *         <simpleType> + *           <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + *             <enumeration value="detached"/> + *             <enumeration value="enveloping"/> + *           </restriction> + *         </simpleType> + *       </attribute> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DataObjectInfoType", propOrder = { +    "dataObject", +    "createTransformsInfoProfile", +    "createTransformsInfoProfileID" +}) +@XmlSeeAlso({ +    moaspss.generated.CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo.class +}) +public class DataObjectInfoType { + +    @XmlElement(name = "DataObject", required = true) +    protected DataObjectInfoType.DataObject dataObject; +    @XmlElement(name = "CreateTransformsInfoProfile") +    protected CreateTransformsInfoProfile createTransformsInfoProfile; +    @XmlElement(name = "CreateTransformsInfoProfileID") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    protected String createTransformsInfoProfileID; +    @XmlAttribute(name = "Structure", required = true) +    protected String structure; + +    /** +     * Gets the value of the dataObject property. +     *  +     * @return +     *     possible object is +     *     {@link DataObjectInfoType.DataObject } +     *      +     */ +    public DataObjectInfoType.DataObject getDataObject() { +        return dataObject; +    } + +    /** +     * Sets the value of the dataObject property. +     *  +     * @param value +     *     allowed object is +     *     {@link DataObjectInfoType.DataObject } +     *      +     */ +    public void setDataObject(DataObjectInfoType.DataObject value) { +        this.dataObject = value; +    } + +    /** +     * Gets the value of the createTransformsInfoProfile property. +     *  +     * @return +     *     possible object is +     *     {@link CreateTransformsInfoProfile } +     *      +     */ +    public CreateTransformsInfoProfile getCreateTransformsInfoProfile() { +        return createTransformsInfoProfile; +    } + +    /** +     * Sets the value of the createTransformsInfoProfile property. +     *  +     * @param value +     *     allowed object is +     *     {@link CreateTransformsInfoProfile } +     *      +     */ +    public void setCreateTransformsInfoProfile(CreateTransformsInfoProfile value) { +        this.createTransformsInfoProfile = value; +    } + +    /** +     * Gets the value of the createTransformsInfoProfileID property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getCreateTransformsInfoProfileID() { +        return createTransformsInfoProfileID; +    } + +    /** +     * Sets the value of the createTransformsInfoProfileID property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setCreateTransformsInfoProfileID(String value) { +        this.createTransformsInfoProfileID = value; +    } + +    /** +     * Gets the value of the structure property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getStructure() { +        return structure; +    } + +    /** +     * Sets the value of the structure property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setStructure(String value) { +        this.structure = value; +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"> +     *     </extension> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "") +    public static class DataObject +        extends ContentOptionalRefType +    { + + +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/DigestMethodType.java b/bkucommon/src/test/java/moaspss/generated/DigestMethodType.java new file mode 100644 index 00000000..7abbc50f --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/DigestMethodType.java @@ -0,0 +1,120 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for DigestMethodType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="DigestMethodType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <any/> + *       </sequence> + *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DigestMethodType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class DigestMethodType { + +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Algorithm", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String algorithm; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link Object } +     * {@link Element } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the algorithm property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getAlgorithm() { +        return algorithm; +    } + +    /** +     * Sets the value of the algorithm property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setAlgorithm(String value) { +        this.algorithm = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ErrorResponseType.java b/bkucommon/src/test/java/moaspss/generated/ErrorResponseType.java new file mode 100644 index 00000000..e39bcf55 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ErrorResponseType.java @@ -0,0 +1,107 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ErrorResponseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ErrorResponseType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}integer"/> + *         <element name="Info" type="{http://www.w3.org/2001/XMLSchema}string"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ErrorResponseType", propOrder = { +    "errorCode", +    "info" +}) +public class ErrorResponseType { + +    @XmlElement(name = "ErrorCode", required = true) +    protected BigInteger errorCode; +    @XmlElement(name = "Info", required = true) +    protected String info; + +    /** +     * Gets the value of the errorCode property. +     *  +     * @return +     *     possible object is +     *     {@link BigInteger } +     *      +     */ +    public BigInteger getErrorCode() { +        return errorCode; +    } + +    /** +     * Sets the value of the errorCode property. +     *  +     * @param value +     *     allowed object is +     *     {@link BigInteger } +     *      +     */ +    public void setErrorCode(BigInteger value) { +        this.errorCode = value; +    } + +    /** +     * Gets the value of the info property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getInfo() { +        return info; +    } + +    /** +     * Sets the value of the info property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setInfo(String value) { +        this.info = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/FinalDataMetaInfoType.java b/bkucommon/src/test/java/moaspss/generated/FinalDataMetaInfoType.java new file mode 100644 index 00000000..64fff8ed --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/FinalDataMetaInfoType.java @@ -0,0 +1,82 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for FinalDataMetaInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="FinalDataMetaInfoType"> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}MetaInfoType"> + *       <sequence> + *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> + *       </sequence> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "FinalDataMetaInfoType", propOrder = { +    "type" +}) +public class FinalDataMetaInfoType +    extends MetaInfoType +{ + +    @XmlElement(name = "Type") +    @XmlSchemaType(name = "anyURI") +    protected String type; + +    /** +     * Gets the value of the type property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getType() { +        return type; +    } + +    /** +     * Sets the value of the type property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setType(String value) { +        this.type = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/InputDataType.java b/bkucommon/src/test/java/moaspss/generated/InputDataType.java new file mode 100644 index 00000000..a95bdce9 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/InputDataType.java @@ -0,0 +1,120 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for InputDataType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="InputDataType"> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentExLocRefBaseType"> + *       <attribute name="PartOf" default="SignedInfo"> + *         <simpleType> + *           <restriction base="{http://www.w3.org/2001/XMLSchema}token"> + *             <enumeration value="SignedInfo"/> + *             <enumeration value="XMLDSIGManifest"/> + *           </restriction> + *         </simpleType> + *       </attribute> + *       <attribute name="ReferringSigReference" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" /> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "InputDataType") +public class InputDataType +    extends ContentExLocRefBaseType +{ + +    @XmlAttribute(name = "PartOf") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    protected String partOf; +    @XmlAttribute(name = "ReferringSigReference") +    @XmlSchemaType(name = "nonNegativeInteger") +    protected BigInteger referringSigReference; + +    /** +     * Gets the value of the partOf property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getPartOf() { +        if (partOf == null) { +            return "SignedInfo"; +        } else { +            return partOf; +        } +    } + +    /** +     * Sets the value of the partOf property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setPartOf(String value) { +        this.partOf = value; +    } + +    /** +     * Gets the value of the referringSigReference property. +     *  +     * @return +     *     possible object is +     *     {@link BigInteger } +     *      +     */ +    public BigInteger getReferringSigReference() { +        return referringSigReference; +    } + +    /** +     * Sets the value of the referringSigReference property. +     *  +     * @param value +     *     allowed object is +     *     {@link BigInteger } +     *      +     */ +    public void setReferringSigReference(BigInteger value) { +        this.referringSigReference = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/KeyInfoType.java b/bkucommon/src/test/java/moaspss/generated/KeyInfoType.java new file mode 100644 index 00000000..d12ac599 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/KeyInfoType.java @@ -0,0 +1,151 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.w3c.dom.Element; + + +/** + * <p>Java class for KeyInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="KeyInfoType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice maxOccurs="unbounded"> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyName"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyValue"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}RetrievalMethod"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}X509Data"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}PGPData"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SPKIData"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}MgmtData"/> + *         <any/> + *       </choice> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class KeyInfoType { + +    @XmlElementRefs({ +        @XmlElementRef(name = "MgmtData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "SPKIData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "RetrievalMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "KeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "PGPData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "KeyName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    }) +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link JAXBElement }{@code <}{@link String }{@code >} +     * {@link Element } +     * {@link JAXBElement }{@code <}{@link SPKIDataType }{@code >} +     * {@link String } +     * {@link JAXBElement }{@code <}{@link X509DataType }{@code >} +     * {@link JAXBElement }{@code <}{@link RetrievalMethodType }{@code >} +     * {@link JAXBElement }{@code <}{@link KeyValueType }{@code >} +     * {@link Object } +     * {@link JAXBElement }{@code <}{@link PGPDataType }{@code >} +     * {@link JAXBElement }{@code <}{@link String }{@code >} +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/KeyStorageType.java b/bkucommon/src/test/java/moaspss/generated/KeyStorageType.java new file mode 100644 index 00000000..b03332aa --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/KeyStorageType.java @@ -0,0 +1,67 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for KeyStorageType. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + * <p> + * <pre> + * <simpleType name="KeyStorageType"> + *   <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + *     <enumeration value="Software"/> + *     <enumeration value="Hardware"/> + *   </restriction> + * </simpleType> + * </pre> + *  + */ +@XmlType(name = "KeyStorageType") +@XmlEnum +public enum KeyStorageType { + +    @XmlEnumValue("Software") +    SOFTWARE("Software"), +    @XmlEnumValue("Hardware") +    HARDWARE("Hardware"); +    private final String value; + +    KeyStorageType(String v) { +        value = v; +    } + +    public String value() { +        return value; +    } + +    public static KeyStorageType fromValue(String v) { +        for (KeyStorageType c: KeyStorageType.values()) { +            if (c.value.equals(v)) { +                return c; +            } +        } +        throw new IllegalArgumentException(v); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/KeyValueType.java b/bkucommon/src/test/java/moaspss/generated/KeyValueType.java new file mode 100644 index 00000000..2744b3e7 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/KeyValueType.java @@ -0,0 +1,101 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for KeyValueType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="KeyValueType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/> + *         <any/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class KeyValueType { + +    @XmlElementRefs({ +        @XmlElementRef(name = "RSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "DSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    }) +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link Element } +     * {@link String } +     * {@link Object } +     * {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >} +     * {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >} +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/MOAFault.java b/bkucommon/src/test/java/moaspss/generated/MOAFault.java new file mode 100644 index 00000000..ea986aed --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/MOAFault.java @@ -0,0 +1,70 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + *  + */ +@WebFault(name = "ErrorResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/20020822#") +public class MOAFault +    extends Exception +{ + +    /** +     * Java type that goes as soapenv:Fault detail element. +     *  +     */ +    private ErrorResponseType faultInfo; + +    /** +     *  +     * @param message +     * @param faultInfo +     */ +    public MOAFault(String message, ErrorResponseType faultInfo) { +        super(message); +        this.faultInfo = faultInfo; +    } + +    /** +     *  +     * @param message +     * @param faultInfo +     * @param cause +     */ +    public MOAFault(String message, ErrorResponseType faultInfo, Throwable cause) { +        super(message, cause); +        this.faultInfo = faultInfo; +    } + +    /** +     *  +     * @return +     *     returns fault bean: moaspss.generated.ErrorResponseType +     */ +    public ErrorResponseType getFaultInfo() { +        return faultInfo; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultInfoType.java b/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultInfoType.java new file mode 100644 index 00000000..a6935534 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultInfoType.java @@ -0,0 +1,53 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ManifestRefsCheckResultInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ManifestRefsCheckResultInfoType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}AnyChildrenType"> + *       <sequence> + *         <any/> + *         <element name="FailedReference" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" maxOccurs="unbounded" minOccurs="0"/> + *         <element name="ReferringSigReference" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ManifestRefsCheckResultInfoType") +public class ManifestRefsCheckResultInfoType +    extends AnyChildrenType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultType.java b/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultType.java new file mode 100644 index 00000000..96b95ba6 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ManifestRefsCheckResultType.java @@ -0,0 +1,52 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ManifestRefsCheckResultType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ManifestRefsCheckResultType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}CheckResultType"> + *       <sequence> + *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/> + *         <element name="Info" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ManifestRefsCheckResultInfoType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ManifestRefsCheckResultType") +public class ManifestRefsCheckResultType +    extends CheckResultType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ManifestType.java b/bkucommon/src/test/java/moaspss/generated/ManifestType.java new file mode 100644 index 00000000..7fcf45ac --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ManifestType.java @@ -0,0 +1,120 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for ManifestType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ManifestType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ManifestType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "reference" +}) +public class ManifestType { + +    @XmlElement(name = "Reference", required = true) +    protected List<ReferenceType> reference; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the reference property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the reference property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getReference().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link ReferenceType } +     *  +     *  +     */ +    public List<ReferenceType> getReference() { +        if (reference == null) { +            reference = new ArrayList<ReferenceType>(); +        } +        return this.reference; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/MetaInfoType.java b/bkucommon/src/test/java/moaspss/generated/MetaInfoType.java new file mode 100644 index 00000000..3c00c24b --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/MetaInfoType.java @@ -0,0 +1,151 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for MetaInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="MetaInfoType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="MimeType" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}MimeTypeType"/> + *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> + *         <any/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MetaInfoType", propOrder = { +    "mimeType", +    "description", +    "any" +}) +@XmlSeeAlso({ +    FinalDataMetaInfoType.class +}) +public class MetaInfoType { + +    @XmlElement(name = "MimeType", required = true) +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    protected String mimeType; +    @XmlElement(name = "Description") +    @XmlSchemaType(name = "anyURI") +    protected String description; +    @XmlAnyElement(lax = true) +    protected List<Object> any; + +    /** +     * Gets the value of the mimeType property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getMimeType() { +        return mimeType; +    } + +    /** +     * Sets the value of the mimeType property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setMimeType(String value) { +        this.mimeType = value; +    } + +    /** +     * Gets the value of the description property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getDescription() { +        return description; +    } + +    /** +     * Sets the value of the description property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setDescription(String value) { +        this.description = value; +    } + +    /** +     * Gets the value of the any property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the any property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getAny().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link Object } +     *  +     *  +     */ +    public List<Object> getAny() { +        if (any == null) { +            any = new ArrayList<Object>(); +        } +        return this.any; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ObjectFactory.java b/bkucommon/src/test/java/moaspss/generated/ObjectFactory.java new file mode 100644 index 00000000..de270fec --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ObjectFactory.java @@ -0,0 +1,1032 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each  + * Java content interface and Java element interface  + * generated in the moaspss.generated package.  + * <p>An ObjectFactory allows you to programatically  + * construct new instances of the Java representation  + * for XML content. The Java representation of XML  + * content can consist of schema derived interfaces  + * and classes representing the binding of schema  + * type definitions, element declarations and model  + * groups.  Factory methods for each of these are  + * provided in this class. + *  + */ +@XmlRegistry +public class ObjectFactory { + +    private final static QName _CreateXMLSignatureResponse_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "CreateXMLSignatureResponse"); +    private final static QName _PGPData_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "PGPData"); +    private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); +    private final static QName _DSAKeyValue_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "DSAKeyValue"); +    private final static QName _VerifyCMSSignatureResponse_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "VerifyCMSSignatureResponse"); +    private final static QName _SupplementProfile_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "SupplementProfile"); +    private final static QName _VerifyXMLSignatureRequest_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "VerifyXMLSignatureRequest"); +    private final static QName _SPKIData_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SPKIData"); +    private final static QName _SignedInfo_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SignedInfo"); +    private final static QName _RetrievalMethod_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "RetrievalMethod"); +    private final static QName _CanonicalizationMethod_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "CanonicalizationMethod"); +    private final static QName _PublicAuthority_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "PublicAuthority"); +    private final static QName _Object_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Object"); +    private final static QName _SignatureProperty_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SignatureProperty"); +    private final static QName _Transforms_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Transforms"); +    private final static QName _Manifest_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Manifest"); +    private final static QName _SignatureValue_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SignatureValue"); +    private final static QName _Transform_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Transform"); +    private final static QName _X509Data_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509Data"); +    private final static QName _SignatureMethod_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SignatureMethod"); +    private final static QName _ErrorResponse_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "ErrorResponse"); +    private final static QName _KeyInfo_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "KeyInfo"); +    private final static QName _DigestMethod_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "DigestMethod"); +    private final static QName _DigestValue_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "DigestValue"); +    private final static QName _MgmtData_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "MgmtData"); +    private final static QName _SignatureProperties_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SignatureProperties"); +    private final static QName _KeyName_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "KeyName"); +    private final static QName _KeyValue_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "KeyValue"); +    private final static QName _Reference_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Reference"); +    private final static QName _VerifyXMLSignatureResponse_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "VerifyXMLSignatureResponse"); +    private final static QName _QualifiedCertificate_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "QualifiedCertificate"); +    private final static QName _RSAKeyValue_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "RSAKeyValue"); +    private final static QName _Supplement_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "Supplement"); +    private final static QName _X509DataTypeX509IssuerSerial_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509IssuerSerial"); +    private final static QName _X509DataTypeX509Certificate_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509Certificate"); +    private final static QName _X509DataTypeX509SKI_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509SKI"); +    private final static QName _X509DataTypeX509SubjectName_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509SubjectName"); +    private final static QName _X509DataTypeX509CRL_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "X509CRL"); +    private final static QName _TransformTypeXPath_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "XPath"); +    private final static QName _VerifyCMSSignatureResponseTypeCertificateCheck_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "CertificateCheck"); +    private final static QName _VerifyCMSSignatureResponseTypeSignerInfo_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "SignerInfo"); +    private final static QName _VerifyCMSSignatureResponseTypeSignatureCheck_QNAME = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#", "SignatureCheck"); +    private final static QName _PGPDataTypePGPKeyID_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "PGPKeyID"); +    private final static QName _PGPDataTypePGPKeyPacket_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "PGPKeyPacket"); +    private final static QName _SPKIDataTypeSPKISexp_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "SPKISexp"); +    private final static QName _SignatureMethodTypeHMACOutputLength_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "HMACOutputLength"); + +    /** +     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: moaspss.generated +     *  +     */ +    public ObjectFactory() { +    } + +    /** +     * Create an instance of {@link VerifyXMLSignatureRequestType } +     *  +     */ +    public VerifyXMLSignatureRequestType createVerifyXMLSignatureRequestType() { +        return new VerifyXMLSignatureRequestType(); +    } + +    /** +     * Create an instance of {@link TransformsType } +     *  +     */ +    public TransformsType createTransformsType() { +        return new TransformsType(); +    } + +    /** +     * Create an instance of {@link CanonicalizationMethodType } +     *  +     */ +    public CanonicalizationMethodType createCanonicalizationMethodType() { +        return new CanonicalizationMethodType(); +    } + +    /** +     * Create an instance of {@link PublicAuthorityType } +     *  +     */ +    public PublicAuthorityType createPublicAuthorityType() { +        return new PublicAuthorityType(); +    } + +    /** +     * Create an instance of {@link ContentExLocRefBaseType } +     *  +     */ +    public ContentExLocRefBaseType createContentExLocRefBaseType() { +        return new ContentExLocRefBaseType(); +    } + +    /** +     * Create an instance of {@link ManifestRefsCheckResultInfoType } +     *  +     */ +    public ManifestRefsCheckResultInfoType createManifestRefsCheckResultInfoType() { +        return new ManifestRefsCheckResultInfoType(); +    } + +    /** +     * Create an instance of {@link KeyValueType } +     *  +     */ +    public KeyValueType createKeyValueType() { +        return new KeyValueType(); +    } + +    /** +     * Create an instance of {@link SignatureType } +     *  +     */ +    public SignatureType createSignatureType() { +        return new SignatureType(); +    } + +    /** +     * Create an instance of {@link CreateTransformsInfoProfile } +     *  +     */ +    public CreateTransformsInfoProfile createCreateTransformsInfoProfile() { +        return new CreateTransformsInfoProfile(); +    } + +    /** +     * Create an instance of {@link ManifestType } +     *  +     */ +    public ManifestType createManifestType() { +        return new ManifestType(); +    } + +    /** +     * Create an instance of {@link CreateSignatureLocationType } +     *  +     */ +    public CreateSignatureLocationType createCreateSignatureLocationType() { +        return new CreateSignatureLocationType(); +    } + +    /** +     * Create an instance of {@link SignatureValueType } +     *  +     */ +    public SignatureValueType createSignatureValueType() { +        return new SignatureValueType(); +    } + +    /** +     * Create an instance of {@link ObjectType } +     *  +     */ +    public ObjectType createObjectType() { +        return new ObjectType(); +    } + +    /** +     * Create an instance of {@link AnyChildrenType } +     *  +     */ +    public AnyChildrenType createAnyChildrenType() { +        return new AnyChildrenType(); +    } + +    /** +     * Create an instance of {@link X509IssuerSerialType } +     *  +     */ +    public X509IssuerSerialType createX509IssuerSerialType() { +        return new X509IssuerSerialType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo } +     *  +     */ +    public CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo createCreateXMLSignatureRequestTypeSingleSignatureInfoCreateSignatureInfo() { +        return new CreateXMLSignatureRequestType.SingleSignatureInfo.CreateSignatureInfo(); +    } + +    /** +     * Create an instance of {@link CreateSignatureEnvironmentProfile } +     *  +     */ +    public CreateSignatureEnvironmentProfile createCreateSignatureEnvironmentProfile() { +        return new CreateSignatureEnvironmentProfile(); +    } + +    /** +     * Create an instance of {@link VerifyXMLSignatureResponseType } +     *  +     */ +    public VerifyXMLSignatureResponseType createVerifyXMLSignatureResponseType() { +        return new VerifyXMLSignatureResponseType(); +    } + +    /** +     * Create an instance of {@link ReferenceType } +     *  +     */ +    public ReferenceType createReferenceType() { +        return new ReferenceType(); +    } + +    /** +     * Create an instance of {@link ContentOptionalRefType } +     *  +     */ +    public ContentOptionalRefType createContentOptionalRefType() { +        return new ContentOptionalRefType(); +    } + +    /** +     * Create an instance of {@link TransformType } +     *  +     */ +    public TransformType createTransformType() { +        return new TransformType(); +    } + +    /** +     * Create an instance of {@link ReferencesCheckResultInfoType } +     *  +     */ +    public ReferencesCheckResultInfoType createReferencesCheckResultInfoType() { +        return new ReferencesCheckResultInfoType(); +    } + +    /** +     * Create an instance of {@link VerifyXMLSignatureRequestType.VerifySignatureInfo } +     *  +     */ +    public VerifyXMLSignatureRequestType.VerifySignatureInfo createVerifyXMLSignatureRequestTypeVerifySignatureInfo() { +        return new VerifyXMLSignatureRequestType.VerifySignatureInfo(); +    } + +    /** +     * Create an instance of {@link VerifyCMSSignatureRequestType } +     *  +     */ +    public VerifyCMSSignatureRequestType createVerifyCMSSignatureRequestType() { +        return new VerifyCMSSignatureRequestType(); +    } + +    /** +     * Create an instance of {@link ReferencesCheckResultType } +     *  +     */ +    public ReferencesCheckResultType createReferencesCheckResultType() { +        return new ReferencesCheckResultType(); +    } + +    /** +     * Create an instance of {@link VerifyCMSSignatureResponseType } +     *  +     */ +    public VerifyCMSSignatureResponseType createVerifyCMSSignatureResponseType() { +        return new VerifyCMSSignatureResponseType(); +    } + +    /** +     * Create an instance of {@link TransformParameterType.Hash } +     *  +     */ +    public TransformParameterType.Hash createTransformParameterTypeHash() { +        return new TransformParameterType.Hash(); +    } + +    /** +     * Create an instance of {@link SignedInfoType } +     *  +     */ +    public SignedInfoType createSignedInfoType() { +        return new SignedInfoType(); +    } + +    /** +     * Create an instance of {@link X509DataType } +     *  +     */ +    public X509DataType createX509DataType() { +        return new X509DataType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo } +     *  +     */ +    public CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo createCreateXMLSignatureRequestTypeSingleSignatureInfoDataObjectInfo() { +        return new CreateXMLSignatureRequestType.SingleSignatureInfo.DataObjectInfo(); +    } + +    /** +     * Create an instance of {@link VerifyXMLSignatureRequestType.SignatureManifestCheckParams } +     *  +     */ +    public VerifyXMLSignatureRequestType.SignatureManifestCheckParams createVerifyXMLSignatureRequestTypeSignatureManifestCheckParams() { +        return new VerifyXMLSignatureRequestType.SignatureManifestCheckParams(); +    } + +    /** +     * Create an instance of {@link SignaturePropertiesType } +     *  +     */ +    public SignaturePropertiesType createSignaturePropertiesType() { +        return new SignaturePropertiesType(); +    } + +    /** +     * Create an instance of {@link XMLContentType } +     *  +     */ +    public XMLContentType createXMLContentType() { +        return new XMLContentType(); +    } + +    /** +     * Create an instance of {@link SPKIDataType } +     *  +     */ +    public SPKIDataType createSPKIDataType() { +        return new SPKIDataType(); +    } + +    /** +     * Create an instance of {@link MetaInfoType } +     *  +     */ +    public MetaInfoType createMetaInfoType() { +        return new MetaInfoType(); +    } + +    /** +     * Create an instance of {@link SignaturePropertyType } +     *  +     */ +    public SignaturePropertyType createSignaturePropertyType() { +        return new SignaturePropertyType(); +    } + +    /** +     * Create an instance of {@link FinalDataMetaInfoType } +     *  +     */ +    public FinalDataMetaInfoType createFinalDataMetaInfoType() { +        return new FinalDataMetaInfoType(); +    } + +    /** +     * Create an instance of {@link CMSDataObjectOptionalMetaType } +     *  +     */ +    public CMSDataObjectOptionalMetaType createCMSDataObjectOptionalMetaType() { +        return new CMSDataObjectOptionalMetaType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureRequest } +     *  +     */ +    public CreateXMLSignatureRequest createCreateXMLSignatureRequest() { +        return new CreateXMLSignatureRequest(); +    } + +    /** +     * Create an instance of {@link TransformParameterType } +     *  +     */ +    public TransformParameterType createTransformParameterType() { +        return new TransformParameterType(); +    } + +    /** +     * Create an instance of {@link PGPDataType } +     *  +     */ +    public PGPDataType createPGPDataType() { +        return new PGPDataType(); +    } + +    /** +     * Create an instance of {@link ErrorResponseType } +     *  +     */ +    public ErrorResponseType createErrorResponseType() { +        return new ErrorResponseType(); +    } + +    /** +     * Create an instance of {@link ContentBaseType } +     *  +     */ +    public ContentBaseType createContentBaseType() { +        return new ContentBaseType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureResponseType.SignatureEnvironment } +     *  +     */ +    public CreateXMLSignatureResponseType.SignatureEnvironment createCreateXMLSignatureResponseTypeSignatureEnvironment() { +        return new CreateXMLSignatureResponseType.SignatureEnvironment(); +    } + +    /** +     * Create an instance of {@link XMLDataObjectAssociationType } +     *  +     */ +    public XMLDataObjectAssociationType createXMLDataObjectAssociationType() { +        return new XMLDataObjectAssociationType(); +    } + +    /** +     * Create an instance of {@link ContentRequiredRefType } +     *  +     */ +    public ContentRequiredRefType createContentRequiredRefType() { +        return new ContentRequiredRefType(); +    } + +    /** +     * Create an instance of {@link RSAKeyValueType } +     *  +     */ +    public RSAKeyValueType createRSAKeyValueType() { +        return new RSAKeyValueType(); +    } + +    /** +     * Create an instance of {@link ManifestRefsCheckResultType } +     *  +     */ +    public ManifestRefsCheckResultType createManifestRefsCheckResultType() { +        return new ManifestRefsCheckResultType(); +    } + +    /** +     * Create an instance of {@link VerifyCMSSignatureRequest } +     *  +     */ +    public VerifyCMSSignatureRequest createVerifyCMSSignatureRequest() { +        return new VerifyCMSSignatureRequest(); +    } + +    /** +     * Create an instance of {@link InputDataType } +     *  +     */ +    public InputDataType createInputDataType() { +        return new InputDataType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureResponseType } +     *  +     */ +    public CreateXMLSignatureResponseType createCreateXMLSignatureResponseType() { +        return new CreateXMLSignatureResponseType(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureRequestType } +     *  +     */ +    public CreateXMLSignatureRequestType createCreateXMLSignatureRequestType() { +        return new CreateXMLSignatureRequestType(); +    } + +    /** +     * Create an instance of {@link VerifyTransformsDataType } +     *  +     */ +    public VerifyTransformsDataType createVerifyTransformsDataType() { +        return new VerifyTransformsDataType(); +    } + +    /** +     * Create an instance of {@link VerifyTransformsInfoProfile } +     *  +     */ +    public VerifyTransformsInfoProfile createVerifyTransformsInfoProfile() { +        return new VerifyTransformsInfoProfile(); +    } + +    /** +     * Create an instance of {@link DataObjectInfoType } +     *  +     */ +    public DataObjectInfoType createDataObjectInfoType() { +        return new DataObjectInfoType(); +    } + +    /** +     * Create an instance of {@link CheckResultType } +     *  +     */ +    public CheckResultType createCheckResultType() { +        return new CheckResultType(); +    } + +    /** +     * Create an instance of {@link TransformsInfoType } +     *  +     */ +    public TransformsInfoType createTransformsInfoType() { +        return new TransformsInfoType(); +    } + +    /** +     * Create an instance of {@link KeyInfoType } +     *  +     */ +    public KeyInfoType createKeyInfoType() { +        return new KeyInfoType(); +    } + +    /** +     * Create an instance of {@link RetrievalMethodType } +     *  +     */ +    public RetrievalMethodType createRetrievalMethodType() { +        return new RetrievalMethodType(); +    } + +    /** +     * Create an instance of {@link DataObjectInfoType.DataObject } +     *  +     */ +    public DataObjectInfoType.DataObject createDataObjectInfoTypeDataObject() { +        return new DataObjectInfoType.DataObject(); +    } + +    /** +     * Create an instance of {@link CreateXMLSignatureRequestType.SingleSignatureInfo } +     *  +     */ +    public CreateXMLSignatureRequestType.SingleSignatureInfo createCreateXMLSignatureRequestTypeSingleSignatureInfo() { +        return new CreateXMLSignatureRequestType.SingleSignatureInfo(); +    } + +    /** +     * Create an instance of {@link DigestMethodType } +     *  +     */ +    public DigestMethodType createDigestMethodType() { +        return new DigestMethodType(); +    } + +    /** +     * Create an instance of {@link DSAKeyValueType } +     *  +     */ +    public DSAKeyValueType createDSAKeyValueType() { +        return new DSAKeyValueType(); +    } + +    /** +     * Create an instance of {@link CMSContentBaseType } +     *  +     */ +    public CMSContentBaseType createCMSContentBaseType() { +        return new CMSContentBaseType(); +    } + +    /** +     * Create an instance of {@link SignatureMethodType } +     *  +     */ +    public SignatureMethodType createSignatureMethodType() { +        return new SignatureMethodType(); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link CreateXMLSignatureResponseType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "CreateXMLSignatureResponse") +    public JAXBElement<CreateXMLSignatureResponseType> createCreateXMLSignatureResponse(CreateXMLSignatureResponseType value) { +        return new JAXBElement<CreateXMLSignatureResponseType>(_CreateXMLSignatureResponse_QNAME, CreateXMLSignatureResponseType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link PGPDataType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "PGPData") +    public JAXBElement<PGPDataType> createPGPData(PGPDataType value) { +        return new JAXBElement<PGPDataType>(_PGPData_QNAME, PGPDataType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") +    public JAXBElement<SignatureType> createSignature(SignatureType value) { +        return new JAXBElement<SignatureType>(_Signature_QNAME, SignatureType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "DSAKeyValue") +    public JAXBElement<DSAKeyValueType> createDSAKeyValue(DSAKeyValueType value) { +        return new JAXBElement<DSAKeyValueType>(_DSAKeyValue_QNAME, DSAKeyValueType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link VerifyCMSSignatureResponseType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "VerifyCMSSignatureResponse") +    public JAXBElement<VerifyCMSSignatureResponseType> createVerifyCMSSignatureResponse(VerifyCMSSignatureResponseType value) { +        return new JAXBElement<VerifyCMSSignatureResponseType>(_VerifyCMSSignatureResponse_QNAME, VerifyCMSSignatureResponseType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link XMLDataObjectAssociationType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "SupplementProfile") +    public JAXBElement<XMLDataObjectAssociationType> createSupplementProfile(XMLDataObjectAssociationType value) { +        return new JAXBElement<XMLDataObjectAssociationType>(_SupplementProfile_QNAME, XMLDataObjectAssociationType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link VerifyXMLSignatureRequestType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "VerifyXMLSignatureRequest") +    public JAXBElement<VerifyXMLSignatureRequestType> createVerifyXMLSignatureRequest(VerifyXMLSignatureRequestType value) { +        return new JAXBElement<VerifyXMLSignatureRequestType>(_VerifyXMLSignatureRequest_QNAME, VerifyXMLSignatureRequestType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SPKIDataType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SPKIData") +    public JAXBElement<SPKIDataType> createSPKIData(SPKIDataType value) { +        return new JAXBElement<SPKIDataType>(_SPKIData_QNAME, SPKIDataType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignedInfoType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SignedInfo") +    public JAXBElement<SignedInfoType> createSignedInfo(SignedInfoType value) { +        return new JAXBElement<SignedInfoType>(_SignedInfo_QNAME, SignedInfoType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link RetrievalMethodType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "RetrievalMethod") +    public JAXBElement<RetrievalMethodType> createRetrievalMethod(RetrievalMethodType value) { +        return new JAXBElement<RetrievalMethodType>(_RetrievalMethod_QNAME, RetrievalMethodType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link CanonicalizationMethodType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "CanonicalizationMethod") +    public JAXBElement<CanonicalizationMethodType> createCanonicalizationMethod(CanonicalizationMethodType value) { +        return new JAXBElement<CanonicalizationMethodType>(_CanonicalizationMethod_QNAME, CanonicalizationMethodType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link PublicAuthorityType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "PublicAuthority") +    public JAXBElement<PublicAuthorityType> createPublicAuthority(PublicAuthorityType value) { +        return new JAXBElement<PublicAuthorityType>(_PublicAuthority_QNAME, PublicAuthorityType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link ObjectType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Object") +    public JAXBElement<ObjectType> createObject(ObjectType value) { +        return new JAXBElement<ObjectType>(_Object_QNAME, ObjectType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignaturePropertyType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SignatureProperty") +    public JAXBElement<SignaturePropertyType> createSignatureProperty(SignaturePropertyType value) { +        return new JAXBElement<SignaturePropertyType>(_SignatureProperty_QNAME, SignaturePropertyType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link TransformsType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Transforms") +    public JAXBElement<TransformsType> createTransforms(TransformsType value) { +        return new JAXBElement<TransformsType>(_Transforms_QNAME, TransformsType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link ManifestType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Manifest") +    public JAXBElement<ManifestType> createManifest(ManifestType value) { +        return new JAXBElement<ManifestType>(_Manifest_QNAME, ManifestType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignatureValueType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SignatureValue") +    public JAXBElement<SignatureValueType> createSignatureValue(SignatureValueType value) { +        return new JAXBElement<SignatureValueType>(_SignatureValue_QNAME, SignatureValueType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link TransformType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Transform") +    public JAXBElement<TransformType> createTransform(TransformType value) { +        return new JAXBElement<TransformType>(_Transform_QNAME, TransformType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link X509DataType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509Data") +    public JAXBElement<X509DataType> createX509Data(X509DataType value) { +        return new JAXBElement<X509DataType>(_X509Data_QNAME, X509DataType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignatureMethodType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SignatureMethod") +    public JAXBElement<SignatureMethodType> createSignatureMethod(SignatureMethodType value) { +        return new JAXBElement<SignatureMethodType>(_SignatureMethod_QNAME, SignatureMethodType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link ErrorResponseType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "ErrorResponse") +    public JAXBElement<ErrorResponseType> createErrorResponse(ErrorResponseType value) { +        return new JAXBElement<ErrorResponseType>(_ErrorResponse_QNAME, ErrorResponseType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "KeyInfo") +    public JAXBElement<KeyInfoType> createKeyInfo(KeyInfoType value) { +        return new JAXBElement<KeyInfoType>(_KeyInfo_QNAME, KeyInfoType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link DigestMethodType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "DigestMethod") +    public JAXBElement<DigestMethodType> createDigestMethod(DigestMethodType value) { +        return new JAXBElement<DigestMethodType>(_DigestMethod_QNAME, DigestMethodType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "DigestValue") +    public JAXBElement<byte[]> createDigestValue(byte[] value) { +        return new JAXBElement<byte[]>(_DigestValue_QNAME, byte[].class, null, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "MgmtData") +    public JAXBElement<String> createMgmtData(String value) { +        return new JAXBElement<String>(_MgmtData_QNAME, String.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link SignaturePropertiesType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SignatureProperties") +    public JAXBElement<SignaturePropertiesType> createSignatureProperties(SignaturePropertiesType value) { +        return new JAXBElement<SignaturePropertiesType>(_SignatureProperties_QNAME, SignaturePropertiesType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "KeyName") +    public JAXBElement<String> createKeyName(String value) { +        return new JAXBElement<String>(_KeyName_QNAME, String.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link KeyValueType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "KeyValue") +    public JAXBElement<KeyValueType> createKeyValue(KeyValueType value) { +        return new JAXBElement<KeyValueType>(_KeyValue_QNAME, KeyValueType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Reference") +    public JAXBElement<ReferenceType> createReference(ReferenceType value) { +        return new JAXBElement<ReferenceType>(_Reference_QNAME, ReferenceType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link VerifyXMLSignatureResponseType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "VerifyXMLSignatureResponse") +    public JAXBElement<VerifyXMLSignatureResponseType> createVerifyXMLSignatureResponse(VerifyXMLSignatureResponseType value) { +        return new JAXBElement<VerifyXMLSignatureResponseType>(_VerifyXMLSignatureResponse_QNAME, VerifyXMLSignatureResponseType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "QualifiedCertificate") +    public JAXBElement<Object> createQualifiedCertificate(Object value) { +        return new JAXBElement<Object>(_QualifiedCertificate_QNAME, Object.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "RSAKeyValue") +    public JAXBElement<RSAKeyValueType> createRSAKeyValue(RSAKeyValueType value) { +        return new JAXBElement<RSAKeyValueType>(_RSAKeyValue_QNAME, RSAKeyValueType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link XMLDataObjectAssociationType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "Supplement") +    public JAXBElement<XMLDataObjectAssociationType> createSupplement(XMLDataObjectAssociationType value) { +        return new JAXBElement<XMLDataObjectAssociationType>(_Supplement_QNAME, XMLDataObjectAssociationType.class, null, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link X509IssuerSerialType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509IssuerSerial", scope = X509DataType.class) +    public JAXBElement<X509IssuerSerialType> createX509DataTypeX509IssuerSerial(X509IssuerSerialType value) { +        return new JAXBElement<X509IssuerSerialType>(_X509DataTypeX509IssuerSerial_QNAME, X509IssuerSerialType.class, X509DataType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509Certificate", scope = X509DataType.class) +    public JAXBElement<byte[]> createX509DataTypeX509Certificate(byte[] value) { +        return new JAXBElement<byte[]>(_X509DataTypeX509Certificate_QNAME, byte[].class, X509DataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509SKI", scope = X509DataType.class) +    public JAXBElement<byte[]> createX509DataTypeX509SKI(byte[] value) { +        return new JAXBElement<byte[]>(_X509DataTypeX509SKI_QNAME, byte[].class, X509DataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509SubjectName", scope = X509DataType.class) +    public JAXBElement<String> createX509DataTypeX509SubjectName(String value) { +        return new JAXBElement<String>(_X509DataTypeX509SubjectName_QNAME, String.class, X509DataType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "X509CRL", scope = X509DataType.class) +    public JAXBElement<byte[]> createX509DataTypeX509CRL(byte[] value) { +        return new JAXBElement<byte[]>(_X509DataTypeX509CRL_QNAME, byte[].class, X509DataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "XPath", scope = TransformType.class) +    public JAXBElement<String> createTransformTypeXPath(String value) { +        return new JAXBElement<String>(_TransformTypeXPath_QNAME, String.class, TransformType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link CheckResultType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "CertificateCheck", scope = VerifyCMSSignatureResponseType.class) +    public JAXBElement<CheckResultType> createVerifyCMSSignatureResponseTypeCertificateCheck(CheckResultType value) { +        return new JAXBElement<CheckResultType>(_VerifyCMSSignatureResponseTypeCertificateCheck_QNAME, CheckResultType.class, VerifyCMSSignatureResponseType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "SignerInfo", scope = VerifyCMSSignatureResponseType.class) +    public JAXBElement<KeyInfoType> createVerifyCMSSignatureResponseTypeSignerInfo(KeyInfoType value) { +        return new JAXBElement<KeyInfoType>(_VerifyCMSSignatureResponseTypeSignerInfo_QNAME, KeyInfoType.class, VerifyCMSSignatureResponseType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link CheckResultType }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", name = "SignatureCheck", scope = VerifyCMSSignatureResponseType.class) +    public JAXBElement<CheckResultType> createVerifyCMSSignatureResponseTypeSignatureCheck(CheckResultType value) { +        return new JAXBElement<CheckResultType>(_VerifyCMSSignatureResponseTypeSignatureCheck_QNAME, CheckResultType.class, VerifyCMSSignatureResponseType.class, value); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "PGPKeyID", scope = PGPDataType.class) +    public JAXBElement<byte[]> createPGPDataTypePGPKeyID(byte[] value) { +        return new JAXBElement<byte[]>(_PGPDataTypePGPKeyID_QNAME, byte[].class, PGPDataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "PGPKeyPacket", scope = PGPDataType.class) +    public JAXBElement<byte[]> createPGPDataTypePGPKeyPacket(byte[] value) { +        return new JAXBElement<byte[]>(_PGPDataTypePGPKeyPacket_QNAME, byte[].class, PGPDataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "SPKISexp", scope = SPKIDataType.class) +    public JAXBElement<byte[]> createSPKIDataTypeSPKISexp(byte[] value) { +        return new JAXBElement<byte[]>(_SPKIDataTypeSPKISexp_QNAME, byte[].class, SPKIDataType.class, ((byte[]) value)); +    } + +    /** +     * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} +     *  +     */ +    @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "HMACOutputLength", scope = SignatureMethodType.class) +    public JAXBElement<BigInteger> createSignatureMethodTypeHMACOutputLength(BigInteger value) { +        return new JAXBElement<BigInteger>(_SignatureMethodTypeHMACOutputLength_QNAME, BigInteger.class, SignatureMethodType.class, value); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ObjectType.java b/bkucommon/src/test/java/moaspss/generated/ObjectType.java new file mode 100644 index 00000000..1ebf8425 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ObjectType.java @@ -0,0 +1,180 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.w3c.dom.Element; + + +/** + * <p>Java class for ObjectType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ObjectType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence maxOccurs="unbounded" minOccurs="0"> + *         <any/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *       <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> + *       <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ObjectType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class ObjectType { + +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; +    @XmlAttribute(name = "MimeType") +    protected String mimeType; +    @XmlAttribute(name = "Encoding") +    @XmlSchemaType(name = "anyURI") +    protected String encoding; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link Object } +     * {@link Element } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +    /** +     * Gets the value of the mimeType property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getMimeType() { +        return mimeType; +    } + +    /** +     * Sets the value of the mimeType property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setMimeType(String value) { +        this.mimeType = value; +    } + +    /** +     * Gets the value of the encoding property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getEncoding() { +        return encoding; +    } + +    /** +     * Sets the value of the encoding property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setEncoding(String value) { +        this.encoding = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/PGPDataType.java b/bkucommon/src/test/java/moaspss/generated/PGPDataType.java new file mode 100644 index 00000000..ca3851f0 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/PGPDataType.java @@ -0,0 +1,114 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for PGPDataType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="PGPDataType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice> + *         <sequence> + *           <element name="PGPKeyID" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *           <element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> + *           <any/> + *         </sequence> + *         <sequence> + *           <element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *           <any/> + *         </sequence> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PGPDataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class PGPDataType { + +    @XmlElementRefs({ +        @XmlElementRef(name = "PGPKeyPacket", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "PGPKeyID", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    }) +    @XmlAnyElement(lax = true) +    protected List<Object> content; + +    /** +     * Gets the rest of the content model.  +     *  +     * <p> +     * You are getting this "catch-all" property because of the following reason:  +     * The field name "PGPKeyPacket" is used by two different parts of a schema. See:  +     * line 208 of file:/home/clemens/workspace/bku/bkucommon/src/test/wsdl/xmldsig-core-schema.xsd +     * line 203 of file:/home/clemens/workspace/bku/bkucommon/src/test/wsdl/xmldsig-core-schema.xsd +     * <p> +     * To get rid of this property, apply a property customization to one  +     * of both of the following declarations to change their names:  +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     * {@link Element } +     * {@link Object } +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/PublicAuthorityType.java b/bkucommon/src/test/java/moaspss/generated/PublicAuthorityType.java new file mode 100644 index 00000000..c33c353c --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/PublicAuthorityType.java @@ -0,0 +1,78 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for PublicAuthorityType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="PublicAuthorityType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PublicAuthorityType", propOrder = { +    "code" +}) +public class PublicAuthorityType { + +    @XmlElement(name = "Code") +    protected String code; + +    /** +     * Gets the value of the code property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getCode() { +        return code; +    } + +    /** +     * Sets the value of the code property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setCode(String value) { +        this.code = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/RSAKeyValueType.java b/bkucommon/src/test/java/moaspss/generated/RSAKeyValueType.java new file mode 100644 index 00000000..37babf4d --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/RSAKeyValueType.java @@ -0,0 +1,102 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for RSAKeyValueType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="RSAKeyValueType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="Modulus" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *         <element name="Exponent" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RSAKeyValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "modulus", +    "exponent" +}) +public class RSAKeyValueType { + +    @XmlElement(name = "Modulus", required = true) +    protected byte[] modulus; +    @XmlElement(name = "Exponent", required = true) +    protected byte[] exponent; + +    /** +     * Gets the value of the modulus property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getModulus() { +        return modulus; +    } + +    /** +     * Sets the value of the modulus property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setModulus(byte[] value) { +        this.modulus = ((byte[]) value); +    } + +    /** +     * Gets the value of the exponent property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getExponent() { +        return exponent; +    } + +    /** +     * Sets the value of the exponent property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setExponent(byte[] value) { +        this.exponent = ((byte[]) value); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ReferenceType.java b/bkucommon/src/test/java/moaspss/generated/ReferenceType.java new file mode 100644 index 00000000..b46eac19 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ReferenceType.java @@ -0,0 +1,223 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for ReferenceType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ReferenceType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *       <attribute name="URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "transforms", +    "digestMethod", +    "digestValue" +}) +public class ReferenceType { + +    @XmlElement(name = "Transforms") +    protected TransformsType transforms; +    @XmlElement(name = "DigestMethod", required = true) +    protected DigestMethodType digestMethod; +    @XmlElement(name = "DigestValue", required = true) +    protected byte[] digestValue; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; +    @XmlAttribute(name = "URI") +    @XmlSchemaType(name = "anyURI") +    protected String uri; +    @XmlAttribute(name = "Type") +    @XmlSchemaType(name = "anyURI") +    protected String type; + +    /** +     * Gets the value of the transforms property. +     *  +     * @return +     *     possible object is +     *     {@link TransformsType } +     *      +     */ +    public TransformsType getTransforms() { +        return transforms; +    } + +    /** +     * Sets the value of the transforms property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformsType } +     *      +     */ +    public void setTransforms(TransformsType value) { +        this.transforms = value; +    } + +    /** +     * Gets the value of the digestMethod property. +     *  +     * @return +     *     possible object is +     *     {@link DigestMethodType } +     *      +     */ +    public DigestMethodType getDigestMethod() { +        return digestMethod; +    } + +    /** +     * Sets the value of the digestMethod property. +     *  +     * @param value +     *     allowed object is +     *     {@link DigestMethodType } +     *      +     */ +    public void setDigestMethod(DigestMethodType value) { +        this.digestMethod = value; +    } + +    /** +     * Gets the value of the digestValue property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getDigestValue() { +        return digestValue; +    } + +    /** +     * Sets the value of the digestValue property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setDigestValue(byte[] value) { +        this.digestValue = ((byte[]) value); +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +    /** +     * Gets the value of the uri property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getURI() { +        return uri; +    } + +    /** +     * Sets the value of the uri property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setURI(String value) { +        this.uri = value; +    } + +    /** +     * Gets the value of the type property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getType() { +        return type; +    } + +    /** +     * Sets the value of the type property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setType(String value) { +        this.type = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultInfoType.java b/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultInfoType.java new file mode 100644 index 00000000..f2e6a02d --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultInfoType.java @@ -0,0 +1,52 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ReferencesCheckResultInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ReferencesCheckResultInfoType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}AnyChildrenType"> + *       <sequence> + *         <any/> + *         <element name="FailedReference" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" maxOccurs="unbounded" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferencesCheckResultInfoType") +public class ReferencesCheckResultInfoType +    extends AnyChildrenType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultType.java b/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultType.java new file mode 100644 index 00000000..8b94be91 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/ReferencesCheckResultType.java @@ -0,0 +1,52 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for ReferencesCheckResultType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="ReferencesCheckResultType"> + *   <complexContent> + *     <restriction base="{http://reference.e-government.gv.at/namespace/moa/20020822#}CheckResultType"> + *       <sequence> + *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/> + *         <element name="Info" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ReferencesCheckResultInfoType" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferencesCheckResultType") +public class ReferencesCheckResultType +    extends CheckResultType +{ + + +} diff --git a/bkucommon/src/test/java/moaspss/generated/RetrievalMethodType.java b/bkucommon/src/test/java/moaspss/generated/RetrievalMethodType.java new file mode 100644 index 00000000..dae84047 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/RetrievalMethodType.java @@ -0,0 +1,136 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for RetrievalMethodType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="RetrievalMethodType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/> + *       </sequence> + *       <attribute name="URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RetrievalMethodType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "transforms" +}) +public class RetrievalMethodType { + +    @XmlElement(name = "Transforms") +    protected TransformsType transforms; +    @XmlAttribute(name = "URI") +    @XmlSchemaType(name = "anyURI") +    protected String uri; +    @XmlAttribute(name = "Type") +    @XmlSchemaType(name = "anyURI") +    protected String type; + +    /** +     * Gets the value of the transforms property. +     *  +     * @return +     *     possible object is +     *     {@link TransformsType } +     *      +     */ +    public TransformsType getTransforms() { +        return transforms; +    } + +    /** +     * Sets the value of the transforms property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformsType } +     *      +     */ +    public void setTransforms(TransformsType value) { +        this.transforms = value; +    } + +    /** +     * Gets the value of the uri property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getURI() { +        return uri; +    } + +    /** +     * Sets the value of the uri property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setURI(String value) { +        this.uri = value; +    } + +    /** +     * Gets the value of the type property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getType() { +        return type; +    } + +    /** +     * Sets the value of the type property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setType(String value) { +        this.type = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SPKIDataType.java b/bkucommon/src/test/java/moaspss/generated/SPKIDataType.java new file mode 100644 index 00000000..1f5cab5b --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SPKIDataType.java @@ -0,0 +1,92 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for SPKIDataType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SPKIDataType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence maxOccurs="unbounded"> + *         <element name="SPKISexp" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <any/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SPKIDataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "spkiSexpAndAny" +}) +public class SPKIDataType { + +    @XmlElementRef(name = "SPKISexp", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    @XmlAnyElement(lax = true) +    protected List<Object> spkiSexpAndAny; + +    /** +     * Gets the value of the spkiSexpAndAny property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the spkiSexpAndAny property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSPKISexpAndAny().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     * {@link Object } +     * {@link Element } +     *  +     *  +     */ +    public List<Object> getSPKISexpAndAny() { +        if (spkiSexpAndAny == null) { +            spkiSexpAndAny = new ArrayList<Object>(); +        } +        return this.spkiSexpAndAny; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignatureMethodType.java b/bkucommon/src/test/java/moaspss/generated/SignatureMethodType.java new file mode 100644 index 00000000..e92e9fec --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignatureMethodType.java @@ -0,0 +1,124 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for SignatureMethodType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignatureMethodType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="HMACOutputLength" type="{http://www.w3.org/2000/09/xmldsig#}HMACOutputLengthType" minOccurs="0"/> + *         <any/> + *       </sequence> + *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureMethodType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class SignatureMethodType { + +    @XmlElementRef(name = "HMACOutputLength", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Algorithm", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String algorithm; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link Object } +     * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the algorithm property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getAlgorithm() { +        return algorithm; +    } + +    /** +     * Sets the value of the algorithm property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setAlgorithm(String value) { +        this.algorithm = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignaturePropertiesType.java b/bkucommon/src/test/java/moaspss/generated/SignaturePropertiesType.java new file mode 100644 index 00000000..b602c9d6 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignaturePropertiesType.java @@ -0,0 +1,120 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for SignaturePropertiesType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignaturePropertiesType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureProperty" maxOccurs="unbounded"/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignaturePropertiesType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "signatureProperty" +}) +public class SignaturePropertiesType { + +    @XmlElement(name = "SignatureProperty", required = true) +    protected List<SignaturePropertyType> signatureProperty; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the signatureProperty property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the signatureProperty property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSignatureProperty().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link SignaturePropertyType } +     *  +     *  +     */ +    public List<SignaturePropertyType> getSignatureProperty() { +        if (signatureProperty == null) { +            signatureProperty = new ArrayList<SignaturePropertyType>(); +        } +        return this.signatureProperty; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignaturePropertyType.java b/bkucommon/src/test/java/moaspss/generated/SignaturePropertyType.java new file mode 100644 index 00000000..ebe8c7d0 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignaturePropertyType.java @@ -0,0 +1,153 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.w3c.dom.Element; + + +/** + * <p>Java class for SignaturePropertyType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignaturePropertyType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice maxOccurs="unbounded"> + *         <any/> + *       </choice> + *       <attribute name="Target" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignaturePropertyType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class SignaturePropertyType { + +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Target", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String target; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link Object } +     * {@link Element } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the target property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getTarget() { +        return target; +    } + +    /** +     * Sets the value of the target property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setTarget(String value) { +        this.target = value; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignatureType.java b/bkucommon/src/test/java/moaspss/generated/SignatureType.java new file mode 100644 index 00000000..0eec1637 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignatureType.java @@ -0,0 +1,204 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for SignatureType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignatureType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignedInfo"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureValue"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Object" maxOccurs="unbounded" minOccurs="0"/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "signedInfo", +    "signatureValue", +    "keyInfo", +    "object" +}) +public class SignatureType { + +    @XmlElement(name = "SignedInfo", required = true) +    protected SignedInfoType signedInfo; +    @XmlElement(name = "SignatureValue", required = true) +    protected SignatureValueType signatureValue; +    @XmlElement(name = "KeyInfo") +    protected KeyInfoType keyInfo; +    @XmlElement(name = "Object") +    protected List<ObjectType> object; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the signedInfo property. +     *  +     * @return +     *     possible object is +     *     {@link SignedInfoType } +     *      +     */ +    public SignedInfoType getSignedInfo() { +        return signedInfo; +    } + +    /** +     * Sets the value of the signedInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link SignedInfoType } +     *      +     */ +    public void setSignedInfo(SignedInfoType value) { +        this.signedInfo = value; +    } + +    /** +     * Gets the value of the signatureValue property. +     *  +     * @return +     *     possible object is +     *     {@link SignatureValueType } +     *      +     */ +    public SignatureValueType getSignatureValue() { +        return signatureValue; +    } + +    /** +     * Sets the value of the signatureValue property. +     *  +     * @param value +     *     allowed object is +     *     {@link SignatureValueType } +     *      +     */ +    public void setSignatureValue(SignatureValueType value) { +        this.signatureValue = value; +    } + +    /** +     * Gets the value of the keyInfo property. +     *  +     * @return +     *     possible object is +     *     {@link KeyInfoType } +     *      +     */ +    public KeyInfoType getKeyInfo() { +        return keyInfo; +    } + +    /** +     * Sets the value of the keyInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link KeyInfoType } +     *      +     */ +    public void setKeyInfo(KeyInfoType value) { +        this.keyInfo = value; +    } + +    /** +     * Gets the value of the object property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the object property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getObject().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link ObjectType } +     *  +     *  +     */ +    public List<ObjectType> getObject() { +        if (object == null) { +            object = new ArrayList<ObjectType>(); +        } +        return this.object; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignatureValueType.java b/bkucommon/src/test/java/moaspss/generated/SignatureValueType.java new file mode 100644 index 00000000..3e82e93c --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignatureValueType.java @@ -0,0 +1,108 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for SignatureValueType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignatureValueType"> + *   <simpleContent> + *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary"> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </extension> + *   </simpleContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "value" +}) +public class SignatureValueType { + +    @XmlValue +    protected byte[] value; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the value property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getValue() { +        return value; +    } + +    /** +     * Sets the value of the value property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setValue(byte[] value) { +        this.value = ((byte[]) value); +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignatureVerificationPortType.java b/bkucommon/src/test/java/moaspss/generated/SignatureVerificationPortType.java new file mode 100644 index 00000000..a9dd3795 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignatureVerificationPortType.java @@ -0,0 +1,57 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + *  + */ +@WebService(name = "SignatureVerificationPortType", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ +    ObjectFactory.class +}) +public interface SignatureVerificationPortType { + + +    /** +     *  +     * @param body +     * @return +     *     returns moaspss.generated.VerifyXMLSignatureResponseType +     * @throws MOAFault +     */ +    @WebMethod(action = "urn:VerifyXMLSignatureAction") +    @WebResult(name = "VerifyXMLSignatureResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", partName = "body") +    public VerifyXMLSignatureResponseType verifyXMLSignature( +        @WebParam(name = "VerifyXMLSignatureRequest", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", partName = "body") +        VerifyXMLSignatureRequestType body) +        throws MOAFault +    ; + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignatureVerificationService.java b/bkucommon/src/test/java/moaspss/generated/SignatureVerificationService.java new file mode 100644 index 00000000..32c2e725 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignatureVerificationService.java @@ -0,0 +1,87 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.net.MalformedURLException; +import java.net.URL; +import java.util.logging.Logger; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + *  + */ +@WebServiceClient(name = "SignatureVerificationService", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#", wsdlLocation = "file:/home/clemens/workspace/bku/bkucommon/src/test/wsdl/MOA-SPSS-1.3.wsdl") +public class SignatureVerificationService +    extends Service +{ + +    private final static URL SIGNATUREVERIFICATIONSERVICE_WSDL_LOCATION; +    private final static Logger logger = Logger.getLogger(moaspss.generated.SignatureVerificationService.class.getName()); + +    static { +        URL url = null; +        try { +            URL baseUrl; +            baseUrl = moaspss.generated.SignatureVerificationService.class.getResource("."); +            url = new URL(baseUrl, "file:/home/clemens/workspace/bku/bkucommon/src/test/wsdl/MOA-SPSS-1.3.wsdl"); +        } catch (MalformedURLException e) { +            logger.warning("Failed to create URL for the wsdl Location: 'file:/home/clemens/workspace/bku/bkucommon/src/test/wsdl/MOA-SPSS-1.3.wsdl', retrying as a local file"); +            logger.warning(e.getMessage()); +        } +        SIGNATUREVERIFICATIONSERVICE_WSDL_LOCATION = url; +    } + +    public SignatureVerificationService(URL wsdlLocation, QName serviceName) { +        super(wsdlLocation, serviceName); +    } + +    public SignatureVerificationService() { +        super(SIGNATUREVERIFICATIONSERVICE_WSDL_LOCATION, new QName("http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#", "SignatureVerificationService")); +    } + +    /** +     *  +     * @return +     *     returns SignatureVerificationPortType +     */ +    @WebEndpoint(name = "SignatureVerificationPort") +    public SignatureVerificationPortType getSignatureVerificationPort() { +        return super.getPort(new QName("http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#", "SignatureVerificationPort"), SignatureVerificationPortType.class); +    } + +    /** +     *  +     * @param features +     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values. +     * @return +     *     returns SignatureVerificationPortType +     */ +    @WebEndpoint(name = "SignatureVerificationPort") +    public SignatureVerificationPortType getSignatureVerificationPort(WebServiceFeature... features) { +        return super.getPort(new QName("http://reference.e-government.gv.at/namespace/moa/wsdl/20020822#", "SignatureVerificationPort"), SignatureVerificationPortType.class, features); +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/SignedInfoType.java b/bkucommon/src/test/java/moaspss/generated/SignedInfoType.java new file mode 100644 index 00000000..26261204 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/SignedInfoType.java @@ -0,0 +1,176 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for SignedInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="SignedInfoType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureMethod"/> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/> + *       </sequence> + *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "canonicalizationMethod", +    "signatureMethod", +    "reference" +}) +public class SignedInfoType { + +    @XmlElement(name = "CanonicalizationMethod", required = true) +    protected CanonicalizationMethodType canonicalizationMethod; +    @XmlElement(name = "SignatureMethod", required = true) +    protected SignatureMethodType signatureMethod; +    @XmlElement(name = "Reference", required = true) +    protected List<ReferenceType> reference; +    @XmlAttribute(name = "Id") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlID +    @XmlSchemaType(name = "ID") +    protected String id; + +    /** +     * Gets the value of the canonicalizationMethod property. +     *  +     * @return +     *     possible object is +     *     {@link CanonicalizationMethodType } +     *      +     */ +    public CanonicalizationMethodType getCanonicalizationMethod() { +        return canonicalizationMethod; +    } + +    /** +     * Sets the value of the canonicalizationMethod property. +     *  +     * @param value +     *     allowed object is +     *     {@link CanonicalizationMethodType } +     *      +     */ +    public void setCanonicalizationMethod(CanonicalizationMethodType value) { +        this.canonicalizationMethod = value; +    } + +    /** +     * Gets the value of the signatureMethod property. +     *  +     * @return +     *     possible object is +     *     {@link SignatureMethodType } +     *      +     */ +    public SignatureMethodType getSignatureMethod() { +        return signatureMethod; +    } + +    /** +     * Sets the value of the signatureMethod property. +     *  +     * @param value +     *     allowed object is +     *     {@link SignatureMethodType } +     *      +     */ +    public void setSignatureMethod(SignatureMethodType value) { +        this.signatureMethod = value; +    } + +    /** +     * Gets the value of the reference property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the reference property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getReference().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link ReferenceType } +     *  +     *  +     */ +    public List<ReferenceType> getReference() { +        if (reference == null) { +            reference = new ArrayList<ReferenceType>(); +        } +        return this.reference; +    } + +    /** +     * Gets the value of the id property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getId() { +        return id; +    } + +    /** +     * Sets the value of the id property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setId(String value) { +        this.id = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/TransformParameterType.java b/bkucommon/src/test/java/moaspss/generated/TransformParameterType.java new file mode 100644 index 00000000..62bf071c --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/TransformParameterType.java @@ -0,0 +1,226 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for TransformParameterType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="TransformParameterType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice minOccurs="0"> + *         <element name="Base64Content" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <element name="Hash"> + *           <complexType> + *             <complexContent> + *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                 <sequence> + *                   <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/> + *                   <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/> + *                 </sequence> + *               </restriction> + *             </complexContent> + *           </complexType> + *         </element> + *       </choice> + *       <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformParameterType", propOrder = { +    "base64Content", +    "hash" +}) +public class TransformParameterType { + +    @XmlElement(name = "Base64Content") +    protected byte[] base64Content; +    @XmlElement(name = "Hash") +    protected TransformParameterType.Hash hash; +    @XmlAttribute(name = "URI", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String uri; + +    /** +     * Gets the value of the base64Content property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getBase64Content() { +        return base64Content; +    } + +    /** +     * Sets the value of the base64Content property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setBase64Content(byte[] value) { +        this.base64Content = ((byte[]) value); +    } + +    /** +     * Gets the value of the hash property. +     *  +     * @return +     *     possible object is +     *     {@link TransformParameterType.Hash } +     *      +     */ +    public TransformParameterType.Hash getHash() { +        return hash; +    } + +    /** +     * Sets the value of the hash property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformParameterType.Hash } +     *      +     */ +    public void setHash(TransformParameterType.Hash value) { +        this.hash = value; +    } + +    /** +     * Gets the value of the uri property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getURI() { +        return uri; +    } + +    /** +     * Sets the value of the uri property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setURI(String value) { +        this.uri = value; +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *       <sequence> +     *         <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/> +     *         <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/> +     *       </sequence> +     *     </restriction> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "", propOrder = { +        "digestMethod", +        "digestValue" +    }) +    public static class Hash { + +        @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) +        protected DigestMethodType digestMethod; +        @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) +        protected byte[] digestValue; + +        /** +         * Gets the value of the digestMethod property. +         *  +         * @return +         *     possible object is +         *     {@link DigestMethodType } +         *      +         */ +        public DigestMethodType getDigestMethod() { +            return digestMethod; +        } + +        /** +         * Sets the value of the digestMethod property. +         *  +         * @param value +         *     allowed object is +         *     {@link DigestMethodType } +         *      +         */ +        public void setDigestMethod(DigestMethodType value) { +            this.digestMethod = value; +        } + +        /** +         * Gets the value of the digestValue property. +         *  +         * @return +         *     possible object is +         *     byte[] +         */ +        public byte[] getDigestValue() { +            return digestValue; +        } + +        /** +         * Sets the value of the digestValue property. +         *  +         * @param value +         *     allowed object is +         *     byte[] +         */ +        public void setDigestValue(byte[] value) { +            this.digestValue = ((byte[]) value); +        } + +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/TransformType.java b/bkucommon/src/test/java/moaspss/generated/TransformType.java new file mode 100644 index 00000000..192843c5 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/TransformType.java @@ -0,0 +1,125 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for TransformType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="TransformType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice maxOccurs="unbounded" minOccurs="0"> + *         <any/> + *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/> + *       </choice> + *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "content" +}) +public class TransformType { + +    @XmlElementRef(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    @XmlMixed +    @XmlAnyElement(lax = true) +    protected List<Object> content; +    @XmlAttribute(name = "Algorithm", required = true) +    @XmlSchemaType(name = "anyURI") +    protected String algorithm; + +    /** +     * Gets the value of the content property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the content property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getContent().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link Element } +     * {@link JAXBElement }{@code <}{@link String }{@code >} +     * {@link Object } +     * {@link String } +     *  +     *  +     */ +    public List<Object> getContent() { +        if (content == null) { +            content = new ArrayList<Object>(); +        } +        return this.content; +    } + +    /** +     * Gets the value of the algorithm property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getAlgorithm() { +        return algorithm; +    } + +    /** +     * Sets the value of the algorithm property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setAlgorithm(String value) { +        this.algorithm = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/TransformsInfoType.java b/bkucommon/src/test/java/moaspss/generated/TransformsInfoType.java new file mode 100644 index 00000000..1977f157 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/TransformsInfoType.java @@ -0,0 +1,106 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for TransformsInfoType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="TransformsInfoType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/> + *         <element name="FinalDataMetaInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}FinalDataMetaInfoType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsInfoType", propOrder = { +    "transforms", +    "finalDataMetaInfo" +}) +public class TransformsInfoType { + +    @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#") +    protected TransformsType transforms; +    @XmlElement(name = "FinalDataMetaInfo", required = true) +    protected FinalDataMetaInfoType finalDataMetaInfo; + +    /** +     * Gets the value of the transforms property. +     *  +     * @return +     *     possible object is +     *     {@link TransformsType } +     *      +     */ +    public TransformsType getTransforms() { +        return transforms; +    } + +    /** +     * Sets the value of the transforms property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformsType } +     *      +     */ +    public void setTransforms(TransformsType value) { +        this.transforms = value; +    } + +    /** +     * Gets the value of the finalDataMetaInfo property. +     *  +     * @return +     *     possible object is +     *     {@link FinalDataMetaInfoType } +     *      +     */ +    public FinalDataMetaInfoType getFinalDataMetaInfo() { +        return finalDataMetaInfo; +    } + +    /** +     * Sets the value of the finalDataMetaInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link FinalDataMetaInfoType } +     *      +     */ +    public void setFinalDataMetaInfo(FinalDataMetaInfoType value) { +        this.finalDataMetaInfo = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/TransformsType.java b/bkucommon/src/test/java/moaspss/generated/TransformsType.java new file mode 100644 index 00000000..25510db9 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/TransformsType.java @@ -0,0 +1,85 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for TransformsType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="TransformsType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Transform" maxOccurs="unbounded"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "transform" +}) +public class TransformsType { + +    @XmlElement(name = "Transform", required = true) +    protected List<TransformType> transform; + +    /** +     * Gets the value of the transform property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the transform property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getTransform().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link TransformType } +     *  +     *  +     */ +    public List<TransformType> getTransform() { +        if (transform == null) { +            transform = new ArrayList<TransformType>(); +        } +        return this.transform; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequest.java b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequest.java new file mode 100644 index 00000000..ced1e0c5 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequest.java @@ -0,0 +1,85 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for anonymous complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}VerifyCMSSignatureRequestType"> + *       <attribute name="Signatories" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}SignatoriesType" default="1" /> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "VerifyCMSSignatureRequest") +public class VerifyCMSSignatureRequest +    extends VerifyCMSSignatureRequestType +{ + +    @XmlAttribute(name = "Signatories") +    protected List<String> signatories; + +    /** +     * Gets the value of the signatories property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the signatories property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSignatories().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     *  +     *  +     */ +    public List<String> getSignatories() { +        if (signatories == null) { +            signatories = new ArrayList<String>(); +        } +        return this.signatories; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequestType.java b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequestType.java new file mode 100644 index 00000000..ca514c70 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureRequestType.java @@ -0,0 +1,171 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * <p>Java class for VerifyCMSSignatureRequestType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="VerifyCMSSignatureRequestType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="DateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> + *         <element name="CMSSignature" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *         <element name="DataObject" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CMSDataObjectOptionalMetaType" minOccurs="0"/> + *         <element name="TrustProfileID" type="{http://www.w3.org/2001/XMLSchema}token"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "VerifyCMSSignatureRequestType", propOrder = { +    "dateTime", +    "cmsSignature", +    "dataObject", +    "trustProfileID" +}) +@XmlSeeAlso({ +    VerifyCMSSignatureRequest.class +}) +public class VerifyCMSSignatureRequestType { + +    @XmlElement(name = "DateTime") +    @XmlSchemaType(name = "dateTime") +    protected XMLGregorianCalendar dateTime; +    @XmlElement(name = "CMSSignature", required = true) +    protected byte[] cmsSignature; +    @XmlElement(name = "DataObject") +    protected CMSDataObjectOptionalMetaType dataObject; +    @XmlElement(name = "TrustProfileID", required = true) +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlSchemaType(name = "token") +    protected String trustProfileID; + +    /** +     * Gets the value of the dateTime property. +     *  +     * @return +     *     possible object is +     *     {@link XMLGregorianCalendar } +     *      +     */ +    public XMLGregorianCalendar getDateTime() { +        return dateTime; +    } + +    /** +     * Sets the value of the dateTime property. +     *  +     * @param value +     *     allowed object is +     *     {@link XMLGregorianCalendar } +     *      +     */ +    public void setDateTime(XMLGregorianCalendar value) { +        this.dateTime = value; +    } + +    /** +     * Gets the value of the cmsSignature property. +     *  +     * @return +     *     possible object is +     *     byte[] +     */ +    public byte[] getCMSSignature() { +        return cmsSignature; +    } + +    /** +     * Sets the value of the cmsSignature property. +     *  +     * @param value +     *     allowed object is +     *     byte[] +     */ +    public void setCMSSignature(byte[] value) { +        this.cmsSignature = ((byte[]) value); +    } + +    /** +     * Gets the value of the dataObject property. +     *  +     * @return +     *     possible object is +     *     {@link CMSDataObjectOptionalMetaType } +     *      +     */ +    public CMSDataObjectOptionalMetaType getDataObject() { +        return dataObject; +    } + +    /** +     * Sets the value of the dataObject property. +     *  +     * @param value +     *     allowed object is +     *     {@link CMSDataObjectOptionalMetaType } +     *      +     */ +    public void setDataObject(CMSDataObjectOptionalMetaType value) { +        this.dataObject = value; +    } + +    /** +     * Gets the value of the trustProfileID property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getTrustProfileID() { +        return trustProfileID; +    } + +    /** +     * Sets the value of the trustProfileID property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setTrustProfileID(String value) { +        this.trustProfileID = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureResponseType.java b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureResponseType.java new file mode 100644 index 00000000..65508d4f --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyCMSSignatureResponseType.java @@ -0,0 +1,95 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for VerifyCMSSignatureResponseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="VerifyCMSSignatureResponseType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence maxOccurs="unbounded"> + *         <element name="SignerInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/> + *         <element name="SignatureCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CheckResultType"/> + *         <element name="CertificateCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CheckResultType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "VerifyCMSSignatureResponseType", propOrder = { +    "signerInfoAndSignatureCheckAndCertificateCheck" +}) +public class VerifyCMSSignatureResponseType { + +    @XmlElementRefs({ +        @XmlElementRef(name = "CertificateCheck", namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", type = JAXBElement.class), +        @XmlElementRef(name = "SignerInfo", namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", type = JAXBElement.class), +        @XmlElementRef(name = "SignatureCheck", namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", type = JAXBElement.class) +    }) +    protected List<JAXBElement<?>> signerInfoAndSignatureCheckAndCertificateCheck; + +    /** +     * Gets the value of the signerInfoAndSignatureCheckAndCertificateCheck property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the signerInfoAndSignatureCheckAndCertificateCheck property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSignerInfoAndSignatureCheckAndCertificateCheck().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >} +     * {@link JAXBElement }{@code <}{@link CheckResultType }{@code >} +     * {@link JAXBElement }{@code <}{@link CheckResultType }{@code >} +     *  +     *  +     */ +    public List<JAXBElement<?>> getSignerInfoAndSignatureCheckAndCertificateCheck() { +        if (signerInfoAndSignatureCheckAndCertificateCheck == null) { +            signerInfoAndSignatureCheckAndCertificateCheck = new ArrayList<JAXBElement<?>>(); +        } +        return this.signerInfoAndSignatureCheckAndCertificateCheck; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyTransformsDataType.java b/bkucommon/src/test/java/moaspss/generated/VerifyTransformsDataType.java new file mode 100644 index 00000000..85bc0303 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyTransformsDataType.java @@ -0,0 +1,91 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for VerifyTransformsDataType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="VerifyTransformsDataType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <choice maxOccurs="unbounded"> + *         <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}VerifyTransformsInfoProfile"/> + *         <element name="VerifyTransformsInfoProfileID" type="{http://www.w3.org/2001/XMLSchema}string"/> + *       </choice> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "VerifyTransformsDataType", propOrder = { +    "verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID" +}) +public class VerifyTransformsDataType { + +    @XmlElements({ +        @XmlElement(name = "VerifyTransformsInfoProfile", type = VerifyTransformsInfoProfile.class), +        @XmlElement(name = "VerifyTransformsInfoProfileID", type = String.class) +    }) +    protected List<Object> verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID; + +    /** +     * Gets the value of the verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getVerifyTransformsInfoProfileOrVerifyTransformsInfoProfileID().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link VerifyTransformsInfoProfile } +     * {@link String } +     *  +     *  +     */ +    public List<Object> getVerifyTransformsInfoProfileOrVerifyTransformsInfoProfileID() { +        if (verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID == null) { +            verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID = new ArrayList<Object>(); +        } +        return this.verifyTransformsInfoProfileOrVerifyTransformsInfoProfileID; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyTransformsInfoProfile.java b/bkucommon/src/test/java/moaspss/generated/VerifyTransformsInfoProfile.java new file mode 100644 index 00000000..9e023df1 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyTransformsInfoProfile.java @@ -0,0 +1,115 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for anonymous complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/> + *         <element name="TransformParameter" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}TransformParameterType" maxOccurs="unbounded" minOccurs="0"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { +    "transforms", +    "transformParameter" +}) +@XmlRootElement(name = "VerifyTransformsInfoProfile") +public class VerifyTransformsInfoProfile { + +    @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#") +    protected TransformsType transforms; +    @XmlElement(name = "TransformParameter") +    protected List<TransformParameterType> transformParameter; + +    /** +     * Gets the value of the transforms property. +     *  +     * @return +     *     possible object is +     *     {@link TransformsType } +     *      +     */ +    public TransformsType getTransforms() { +        return transforms; +    } + +    /** +     * Sets the value of the transforms property. +     *  +     * @param value +     *     allowed object is +     *     {@link TransformsType } +     *      +     */ +    public void setTransforms(TransformsType value) { +        this.transforms = value; +    } + +    /** +     * Gets the value of the transformParameter property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the transformParameter property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getTransformParameter().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link TransformParameterType } +     *  +     *  +     */ +    public List<TransformParameterType> getTransformParameter() { +        if (transformParameter == null) { +            transformParameter = new ArrayList<TransformParameterType>(); +        } +        return this.transformParameter; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureRequestType.java b/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureRequestType.java new file mode 100644 index 00000000..4d0c09b7 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureRequestType.java @@ -0,0 +1,439 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * <p>Java class for VerifyXMLSignatureRequestType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="VerifyXMLSignatureRequestType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="DateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> + *         <element name="VerifySignatureInfo"> + *           <complexType> + *             <complexContent> + *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                 <sequence> + *                   <element name="VerifySignatureEnvironment" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"/> + *                   <element name="VerifySignatureLocation" type="{http://www.w3.org/2001/XMLSchema}token"/> + *                 </sequence> + *               </restriction> + *             </complexContent> + *           </complexType> + *         </element> + *         <choice maxOccurs="unbounded" minOccurs="0"> + *           <element ref="{http://reference.e-government.gv.at/namespace/moa/20020822#}SupplementProfile"/> + *           <element name="SupplementProfileID" type="{http://www.w3.org/2001/XMLSchema}string"/> + *         </choice> + *         <element name="SignatureManifestCheckParams" minOccurs="0"> + *           <complexType> + *             <complexContent> + *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *                 <sequence> + *                   <element name="ReferenceInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}VerifyTransformsDataType" maxOccurs="unbounded"/> + *                 </sequence> + *                 <attribute name="ReturnReferenceInputData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> + *               </restriction> + *             </complexContent> + *           </complexType> + *         </element> + *         <element name="ReturnHashInputData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> + *         <element name="TrustProfileID" type="{http://www.w3.org/2001/XMLSchema}token"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "VerifyXMLSignatureRequestType", propOrder = { +    "dateTime", +    "verifySignatureInfo", +    "supplementProfileOrSupplementProfileID", +    "signatureManifestCheckParams", +    "returnHashInputData", +    "trustProfileID" +}) +public class VerifyXMLSignatureRequestType { + +    @XmlElement(name = "DateTime") +    @XmlSchemaType(name = "dateTime") +    protected XMLGregorianCalendar dateTime; +    @XmlElement(name = "VerifySignatureInfo", required = true) +    protected VerifyXMLSignatureRequestType.VerifySignatureInfo verifySignatureInfo; +    @XmlElements({ +        @XmlElement(name = "SupplementProfileID", type = String.class), +        @XmlElement(name = "SupplementProfile", type = XMLDataObjectAssociationType.class) +    }) +    protected List<Object> supplementProfileOrSupplementProfileID; +    @XmlElement(name = "SignatureManifestCheckParams") +    protected VerifyXMLSignatureRequestType.SignatureManifestCheckParams signatureManifestCheckParams; +    @XmlElement(name = "ReturnHashInputData") +    protected Object returnHashInputData; +    @XmlElement(name = "TrustProfileID", required = true) +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    @XmlSchemaType(name = "token") +    protected String trustProfileID; + +    /** +     * Gets the value of the dateTime property. +     *  +     * @return +     *     possible object is +     *     {@link XMLGregorianCalendar } +     *      +     */ +    public XMLGregorianCalendar getDateTime() { +        return dateTime; +    } + +    /** +     * Sets the value of the dateTime property. +     *  +     * @param value +     *     allowed object is +     *     {@link XMLGregorianCalendar } +     *      +     */ +    public void setDateTime(XMLGregorianCalendar value) { +        this.dateTime = value; +    } + +    /** +     * Gets the value of the verifySignatureInfo property. +     *  +     * @return +     *     possible object is +     *     {@link VerifyXMLSignatureRequestType.VerifySignatureInfo } +     *      +     */ +    public VerifyXMLSignatureRequestType.VerifySignatureInfo getVerifySignatureInfo() { +        return verifySignatureInfo; +    } + +    /** +     * Sets the value of the verifySignatureInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link VerifyXMLSignatureRequestType.VerifySignatureInfo } +     *      +     */ +    public void setVerifySignatureInfo(VerifyXMLSignatureRequestType.VerifySignatureInfo value) { +        this.verifySignatureInfo = value; +    } + +    /** +     * Gets the value of the supplementProfileOrSupplementProfileID property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the supplementProfileOrSupplementProfileID property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getSupplementProfileOrSupplementProfileID().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link String } +     * {@link XMLDataObjectAssociationType } +     *  +     *  +     */ +    public List<Object> getSupplementProfileOrSupplementProfileID() { +        if (supplementProfileOrSupplementProfileID == null) { +            supplementProfileOrSupplementProfileID = new ArrayList<Object>(); +        } +        return this.supplementProfileOrSupplementProfileID; +    } + +    /** +     * Gets the value of the signatureManifestCheckParams property. +     *  +     * @return +     *     possible object is +     *     {@link VerifyXMLSignatureRequestType.SignatureManifestCheckParams } +     *      +     */ +    public VerifyXMLSignatureRequestType.SignatureManifestCheckParams getSignatureManifestCheckParams() { +        return signatureManifestCheckParams; +    } + +    /** +     * Sets the value of the signatureManifestCheckParams property. +     *  +     * @param value +     *     allowed object is +     *     {@link VerifyXMLSignatureRequestType.SignatureManifestCheckParams } +     *      +     */ +    public void setSignatureManifestCheckParams(VerifyXMLSignatureRequestType.SignatureManifestCheckParams value) { +        this.signatureManifestCheckParams = value; +    } + +    /** +     * Gets the value of the returnHashInputData property. +     *  +     * @return +     *     possible object is +     *     {@link Object } +     *      +     */ +    public Object getReturnHashInputData() { +        return returnHashInputData; +    } + +    /** +     * Sets the value of the returnHashInputData property. +     *  +     * @param value +     *     allowed object is +     *     {@link Object } +     *      +     */ +    public void setReturnHashInputData(Object value) { +        this.returnHashInputData = value; +    } + +    /** +     * Gets the value of the trustProfileID property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getTrustProfileID() { +        return trustProfileID; +    } + +    /** +     * Sets the value of the trustProfileID property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setTrustProfileID(String value) { +        this.trustProfileID = value; +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *       <sequence> +     *         <element name="ReferenceInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}VerifyTransformsDataType" maxOccurs="unbounded"/> +     *       </sequence> +     *       <attribute name="ReturnReferenceInputData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> +     *     </restriction> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "", propOrder = { +        "referenceInfo" +    }) +    public static class SignatureManifestCheckParams { + +        @XmlElement(name = "ReferenceInfo", required = true) +        protected List<VerifyTransformsDataType> referenceInfo; +        @XmlAttribute(name = "ReturnReferenceInputData") +        protected Boolean returnReferenceInputData; + +        /** +         * Gets the value of the referenceInfo property. +         *  +         * <p> +         * This accessor method returns a reference to the live list, +         * not a snapshot. Therefore any modification you make to the +         * returned list will be present inside the JAXB object. +         * This is why there is not a <CODE>set</CODE> method for the referenceInfo property. +         *  +         * <p> +         * For example, to add a new item, do as follows: +         * <pre> +         *    getReferenceInfo().add(newItem); +         * </pre> +         *  +         *  +         * <p> +         * Objects of the following type(s) are allowed in the list +         * {@link VerifyTransformsDataType } +         *  +         *  +         */ +        public List<VerifyTransformsDataType> getReferenceInfo() { +            if (referenceInfo == null) { +                referenceInfo = new ArrayList<VerifyTransformsDataType>(); +            } +            return this.referenceInfo; +        } + +        /** +         * Gets the value of the returnReferenceInputData property. +         *  +         * @return +         *     possible object is +         *     {@link Boolean } +         *      +         */ +        public boolean isReturnReferenceInputData() { +            if (returnReferenceInputData == null) { +                return true; +            } else { +                return returnReferenceInputData; +            } +        } + +        /** +         * Sets the value of the returnReferenceInputData property. +         *  +         * @param value +         *     allowed object is +         *     {@link Boolean } +         *      +         */ +        public void setReturnReferenceInputData(Boolean value) { +            this.returnReferenceInputData = value; +        } + +    } + + +    /** +     * <p>Java class for anonymous complex type. +     *  +     * <p>The following schema fragment specifies the expected content contained within this class. +     *  +     * <pre> +     * <complexType> +     *   <complexContent> +     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> +     *       <sequence> +     *         <element name="VerifySignatureEnvironment" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentOptionalRefType"/> +     *         <element name="VerifySignatureLocation" type="{http://www.w3.org/2001/XMLSchema}token"/> +     *       </sequence> +     *     </restriction> +     *   </complexContent> +     * </complexType> +     * </pre> +     *  +     *  +     */ +    @XmlAccessorType(XmlAccessType.FIELD) +    @XmlType(name = "", propOrder = { +        "verifySignatureEnvironment", +        "verifySignatureLocation" +    }) +    public static class VerifySignatureInfo { + +        @XmlElement(name = "VerifySignatureEnvironment", required = true) +        protected ContentOptionalRefType verifySignatureEnvironment; +        @XmlElement(name = "VerifySignatureLocation", required = true) +        @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +        @XmlSchemaType(name = "token") +        protected String verifySignatureLocation; + +        /** +         * Gets the value of the verifySignatureEnvironment property. +         *  +         * @return +         *     possible object is +         *     {@link ContentOptionalRefType } +         *      +         */ +        public ContentOptionalRefType getVerifySignatureEnvironment() { +            return verifySignatureEnvironment; +        } + +        /** +         * Sets the value of the verifySignatureEnvironment property. +         *  +         * @param value +         *     allowed object is +         *     {@link ContentOptionalRefType } +         *      +         */ +        public void setVerifySignatureEnvironment(ContentOptionalRefType value) { +            this.verifySignatureEnvironment = value; +        } + +        /** +         * Gets the value of the verifySignatureLocation property. +         *  +         * @return +         *     possible object is +         *     {@link String } +         *      +         */ +        public String getVerifySignatureLocation() { +            return verifySignatureLocation; +        } + +        /** +         * Sets the value of the verifySignatureLocation property. +         *  +         * @param value +         *     allowed object is +         *     {@link String } +         *      +         */ +        public void setVerifySignatureLocation(String value) { +            this.verifySignatureLocation = value; +        } + +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureResponseType.java b/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureResponseType.java new file mode 100644 index 00000000..18c9ddec --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/VerifyXMLSignatureResponseType.java @@ -0,0 +1,263 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for VerifyXMLSignatureResponseType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="VerifyXMLSignatureResponseType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="SignerInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/> + *         <element name="HashInputData" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}InputDataType" maxOccurs="unbounded" minOccurs="0"/> + *         <element name="ReferenceInputData" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}InputDataType" maxOccurs="unbounded" minOccurs="0"/> + *         <element name="SignatureCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ReferencesCheckResultType"/> + *         <element name="SignatureManifestCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ReferencesCheckResultType" minOccurs="0"/> + *         <element name="XMLDSIGManifestCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ManifestRefsCheckResultType" maxOccurs="unbounded" minOccurs="0"/> + *         <element name="CertificateCheck" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}CheckResultType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "VerifyXMLSignatureResponseType", propOrder = { +    "signerInfo", +    "hashInputData", +    "referenceInputData", +    "signatureCheck", +    "signatureManifestCheck", +    "xmldsigManifestCheck", +    "certificateCheck" +}) +public class VerifyXMLSignatureResponseType { + +    @XmlElement(name = "SignerInfo", required = true) +    protected KeyInfoType signerInfo; +    @XmlElement(name = "HashInputData") +    protected List<InputDataType> hashInputData; +    @XmlElement(name = "ReferenceInputData") +    protected List<InputDataType> referenceInputData; +    @XmlElement(name = "SignatureCheck", required = true) +    protected ReferencesCheckResultType signatureCheck; +    @XmlElement(name = "SignatureManifestCheck") +    protected ReferencesCheckResultType signatureManifestCheck; +    @XmlElement(name = "XMLDSIGManifestCheck") +    protected List<ManifestRefsCheckResultType> xmldsigManifestCheck; +    @XmlElement(name = "CertificateCheck", required = true) +    protected CheckResultType certificateCheck; + +    /** +     * Gets the value of the signerInfo property. +     *  +     * @return +     *     possible object is +     *     {@link KeyInfoType } +     *      +     */ +    public KeyInfoType getSignerInfo() { +        return signerInfo; +    } + +    /** +     * Sets the value of the signerInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link KeyInfoType } +     *      +     */ +    public void setSignerInfo(KeyInfoType value) { +        this.signerInfo = value; +    } + +    /** +     * Gets the value of the hashInputData property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the hashInputData property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getHashInputData().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link InputDataType } +     *  +     *  +     */ +    public List<InputDataType> getHashInputData() { +        if (hashInputData == null) { +            hashInputData = new ArrayList<InputDataType>(); +        } +        return this.hashInputData; +    } + +    /** +     * Gets the value of the referenceInputData property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the referenceInputData property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getReferenceInputData().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link InputDataType } +     *  +     *  +     */ +    public List<InputDataType> getReferenceInputData() { +        if (referenceInputData == null) { +            referenceInputData = new ArrayList<InputDataType>(); +        } +        return this.referenceInputData; +    } + +    /** +     * Gets the value of the signatureCheck property. +     *  +     * @return +     *     possible object is +     *     {@link ReferencesCheckResultType } +     *      +     */ +    public ReferencesCheckResultType getSignatureCheck() { +        return signatureCheck; +    } + +    /** +     * Sets the value of the signatureCheck property. +     *  +     * @param value +     *     allowed object is +     *     {@link ReferencesCheckResultType } +     *      +     */ +    public void setSignatureCheck(ReferencesCheckResultType value) { +        this.signatureCheck = value; +    } + +    /** +     * Gets the value of the signatureManifestCheck property. +     *  +     * @return +     *     possible object is +     *     {@link ReferencesCheckResultType } +     *      +     */ +    public ReferencesCheckResultType getSignatureManifestCheck() { +        return signatureManifestCheck; +    } + +    /** +     * Sets the value of the signatureManifestCheck property. +     *  +     * @param value +     *     allowed object is +     *     {@link ReferencesCheckResultType } +     *      +     */ +    public void setSignatureManifestCheck(ReferencesCheckResultType value) { +        this.signatureManifestCheck = value; +    } + +    /** +     * Gets the value of the xmldsigManifestCheck property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the xmldsigManifestCheck property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getXMLDSIGManifestCheck().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link ManifestRefsCheckResultType } +     *  +     *  +     */ +    public List<ManifestRefsCheckResultType> getXMLDSIGManifestCheck() { +        if (xmldsigManifestCheck == null) { +            xmldsigManifestCheck = new ArrayList<ManifestRefsCheckResultType>(); +        } +        return this.xmldsigManifestCheck; +    } + +    /** +     * Gets the value of the certificateCheck property. +     *  +     * @return +     *     possible object is +     *     {@link CheckResultType } +     *      +     */ +    public CheckResultType getCertificateCheck() { +        return certificateCheck; +    } + +    /** +     * Sets the value of the certificateCheck property. +     *  +     * @param value +     *     allowed object is +     *     {@link CheckResultType } +     *      +     */ +    public void setCertificateCheck(CheckResultType value) { +        this.certificateCheck = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/X509DataType.java b/bkucommon/src/test/java/moaspss/generated/X509DataType.java new file mode 100644 index 00000000..cab7852d --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/X509DataType.java @@ -0,0 +1,109 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * <p>Java class for X509DataType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="X509DataType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence maxOccurs="unbounded"> + *         <choice> + *           <element name="X509IssuerSerial" type="{http://www.w3.org/2000/09/xmldsig#}X509IssuerSerialType"/> + *           <element name="X509SKI" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *           <element name="X509SubjectName" type="{http://www.w3.org/2001/XMLSchema}string"/> + *           <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *           <element name="X509CRL" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> + *           <any/> + *         </choice> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "x509IssuerSerialOrX509SKIOrX509SubjectName" +}) +public class X509DataType { + +    @XmlElementRefs({ +        @XmlElementRef(name = "X509CRL", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "X509SKI", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "X509SubjectName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), +        @XmlElementRef(name = "X509IssuerSerial", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) +    }) +    @XmlAnyElement(lax = true) +    protected List<Object> x509IssuerSerialOrX509SKIOrX509SubjectName; + +    /** +     * Gets the value of the x509IssuerSerialOrX509SKIOrX509SubjectName property. +     *  +     * <p> +     * This accessor method returns a reference to the live list, +     * not a snapshot. Therefore any modification you make to the +     * returned list will be present inside the JAXB object. +     * This is why there is not a <CODE>set</CODE> method for the x509IssuerSerialOrX509SKIOrX509SubjectName property. +     *  +     * <p> +     * For example, to add a new item, do as follows: +     * <pre> +     *    getX509IssuerSerialOrX509SKIOrX509SubjectName().add(newItem); +     * </pre> +     *  +     *  +     * <p> +     * Objects of the following type(s) are allowed in the list +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     * {@link Element } +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     * {@link JAXBElement }{@code <}{@link byte[]}{@code >} +     * {@link JAXBElement }{@code <}{@link String }{@code >} +     * {@link JAXBElement }{@code <}{@link X509IssuerSerialType }{@code >} +     * {@link Object } +     *  +     *  +     */ +    public List<Object> getX509IssuerSerialOrX509SKIOrX509SubjectName() { +        if (x509IssuerSerialOrX509SKIOrX509SubjectName == null) { +            x509IssuerSerialOrX509SKIOrX509SubjectName = new ArrayList<Object>(); +        } +        return this.x509IssuerSerialOrX509SKIOrX509SubjectName; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/X509IssuerSerialType.java b/bkucommon/src/test/java/moaspss/generated/X509IssuerSerialType.java new file mode 100644 index 00000000..fc3c90d5 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/X509IssuerSerialType.java @@ -0,0 +1,107 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for X509IssuerSerialType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="X509IssuerSerialType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="X509IssuerName" type="{http://www.w3.org/2001/XMLSchema}string"/> + *         <element name="X509SerialNumber" type="{http://www.w3.org/2001/XMLSchema}integer"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509IssuerSerialType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { +    "x509IssuerName", +    "x509SerialNumber" +}) +public class X509IssuerSerialType { + +    @XmlElement(name = "X509IssuerName", required = true) +    protected String x509IssuerName; +    @XmlElement(name = "X509SerialNumber", required = true) +    protected BigInteger x509SerialNumber; + +    /** +     * Gets the value of the x509IssuerName property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getX509IssuerName() { +        return x509IssuerName; +    } + +    /** +     * Sets the value of the x509IssuerName property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setX509IssuerName(String value) { +        this.x509IssuerName = value; +    } + +    /** +     * Gets the value of the x509SerialNumber property. +     *  +     * @return +     *     possible object is +     *     {@link BigInteger } +     *      +     */ +    public BigInteger getX509SerialNumber() { +        return x509SerialNumber; +    } + +    /** +     * Sets the value of the x509SerialNumber property. +     *  +     * @param value +     *     allowed object is +     *     {@link BigInteger } +     *      +     */ +    public void setX509SerialNumber(BigInteger value) { +        this.x509SerialNumber = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/XMLContentType.java b/bkucommon/src/test/java/moaspss/generated/XMLContentType.java new file mode 100644 index 00000000..da6a4708 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/XMLContentType.java @@ -0,0 +1,79 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * <p>Java class for XMLContentType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="XMLContentType"> + *   <complexContent> + *     <extension base="{http://reference.e-government.gv.at/namespace/moa/20020822#}AnyChildrenType"> + *       <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/> + *     </extension> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "XMLContentType") +public class XMLContentType +    extends AnyChildrenType +{ + +    @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") +    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) +    protected String space; + +    /** +     * Gets the value of the space property. +     *  +     * @return +     *     possible object is +     *     {@link String } +     *      +     */ +    public String getSpace() { +        return space; +    } + +    /** +     * Sets the value of the space property. +     *  +     * @param value +     *     allowed object is +     *     {@link String } +     *      +     */ +    public void setSpace(String value) { +        this.space = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/XMLDataObjectAssociationType.java b/bkucommon/src/test/java/moaspss/generated/XMLDataObjectAssociationType.java new file mode 100644 index 00000000..6615981c --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/XMLDataObjectAssociationType.java @@ -0,0 +1,106 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package moaspss.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for XMLDataObjectAssociationType complex type. + *  + * <p>The following schema fragment specifies the expected content contained within this class. + *  + * <pre> + * <complexType name="XMLDataObjectAssociationType"> + *   <complexContent> + *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + *       <sequence> + *         <element name="MetaInfo" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}MetaInfoType" minOccurs="0"/> + *         <element name="Content" type="{http://reference.e-government.gv.at/namespace/moa/20020822#}ContentRequiredRefType"/> + *       </sequence> + *     </restriction> + *   </complexContent> + * </complexType> + * </pre> + *  + *  + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "XMLDataObjectAssociationType", propOrder = { +    "metaInfo", +    "content" +}) +public class XMLDataObjectAssociationType { + +    @XmlElement(name = "MetaInfo") +    protected MetaInfoType metaInfo; +    @XmlElement(name = "Content", required = true) +    protected ContentRequiredRefType content; + +    /** +     * Gets the value of the metaInfo property. +     *  +     * @return +     *     possible object is +     *     {@link MetaInfoType } +     *      +     */ +    public MetaInfoType getMetaInfo() { +        return metaInfo; +    } + +    /** +     * Sets the value of the metaInfo property. +     *  +     * @param value +     *     allowed object is +     *     {@link MetaInfoType } +     *      +     */ +    public void setMetaInfo(MetaInfoType value) { +        this.metaInfo = value; +    } + +    /** +     * Gets the value of the content property. +     *  +     * @return +     *     possible object is +     *     {@link ContentRequiredRefType } +     *      +     */ +    public ContentRequiredRefType getContent() { +        return content; +    } + +    /** +     * Sets the value of the content property. +     *  +     * @param value +     *     allowed object is +     *     {@link ContentRequiredRefType } +     *      +     */ +    public void setContent(ContentRequiredRefType value) { +        this.content = value; +    } + +} diff --git a/bkucommon/src/test/java/moaspss/generated/package-info.java b/bkucommon/src/test/java/moaspss/generated/package-info.java new file mode 100644 index 00000000..aadb75fc --- /dev/null +++ b/bkucommon/src/test/java/moaspss/generated/package-info.java @@ -0,0 +1,18 @@ +/* +* Copyright 2008 Federal Chancellery Austria and +* Graz University of Technology +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://reference.e-government.gv.at/namespace/moa/20020822#", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package moaspss.generated; | 
