JBoss Identity SVN: r208 - in identity-federation/trunk: identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/request and 11 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-08 17:55:31 -0500 (Thu, 08 Jan 2009)
New Revision: 208
Added:
identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/
identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnRequestFactory.java
identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnResponseFactory.java
identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLBaseFactory.java
identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/SecurityActions.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/ObjectFactory.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLAuthzDecisionStatementType.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLPolicyStatementType.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/package-info.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/ObjectFactory.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLAuthzDecisionQueryType.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLPolicyQueryType.java
identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/package-info.java
identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-assertion-schema-os.xsd
identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-protocol-schema-os.xsd
Removed:
identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/factories/
Modified:
identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/request/SAML2Request.java
identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/response/SAML2Response.java
identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/util/XMLSignatureUtil.java
identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/DeflateEncodingDecodingUnitTestCase.java
identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SAML2AuthnResponseUnitTestCase.java
identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SignatureValidationUnitTestCase.java
identity-federation/trunk/identity-fed-core/.classpath
Log:
handle xacml
Modified: identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/request/SAML2Request.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/request/SAML2Request.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/request/SAML2Request.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -28,8 +28,8 @@
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
-
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLAuthnRequestFactory;
+
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnRequestFactory;
import org.jboss.identity.federation.saml.v2.protocol.AuthnRequestType;
/**
Modified: identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/response/SAML2Response.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/response/SAML2Response.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/response/SAML2Response.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -30,9 +30,9 @@
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.datatype.XMLGregorianCalendar;
-
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLAuthnResponseFactory;
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLBaseFactory;
+
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnResponseFactory;
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLBaseFactory;
import org.jboss.identity.federation.core.saml.v2.holders.IDPInfoHolder;
import org.jboss.identity.federation.core.saml.v2.holders.IssuerInfoHolder;
import org.jboss.identity.federation.core.saml.v2.holders.SPInfoHolder;
Modified: identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/util/XMLSignatureUtil.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/util/XMLSignatureUtil.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/main/java/org/jboss/identity/federation/api/util/XMLSignatureUtil.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -51,9 +51,9 @@
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
-
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLBaseFactory;
+
import org.jboss.identity.federation.api.saml.v2.request.SAML2Request;
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLBaseFactory;
import org.jboss.identity.federation.saml.v2.protocol.AuthnRequestType;
import org.jboss.identity.xmlsec.w3.xmldsig.ObjectFactory;
import org.jboss.identity.xmlsec.w3.xmldsig.SignatureType;
Modified: identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/DeflateEncodingDecodingUnitTestCase.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/DeflateEncodingDecodingUnitTestCase.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/DeflateEncodingDecodingUnitTestCase.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -26,11 +26,11 @@
import junit.framework.TestCase;
-import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLAuthnRequestFactory;
+import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
import org.jboss.identity.federation.api.saml.v2.request.SAML2Request;
import org.jboss.identity.federation.api.util.Base64;
import org.jboss.identity.federation.api.util.DeflateUtil;
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnRequestFactory;
import org.jboss.identity.federation.saml.v2.protocol.AuthnRequestType;
/**
Modified: identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SAML2AuthnResponseUnitTestCase.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SAML2AuthnResponseUnitTestCase.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SAML2AuthnResponseUnitTestCase.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -25,10 +25,10 @@
import junit.framework.TestCase;
-import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLAuthnResponseFactory;
+import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
import org.jboss.identity.federation.api.saml.v2.response.SAML2Response;
import org.jboss.identity.federation.core.saml.v2.constants.JBossSAMLURIConstants;
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnResponseFactory;
import org.jboss.identity.federation.core.saml.v2.holders.IDPInfoHolder;
import org.jboss.identity.federation.core.saml.v2.holders.IssuerInfoHolder;
import org.jboss.identity.federation.core.saml.v2.holders.SPInfoHolder;
Modified: identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SignatureValidationUnitTestCase.java
===================================================================
--- identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SignatureValidationUnitTestCase.java 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/SignatureValidationUnitTestCase.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -29,9 +29,9 @@
import javax.xml.crypto.dsig.DigestMethod;
import javax.xml.crypto.dsig.SignatureMethod;
-import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
-import org.jboss.identity.federation.api.saml.v2.factories.JBossSAMLAuthnRequestFactory;
+import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
import org.jboss.identity.federation.api.util.XMLSignatureUtil;
+import org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnRequestFactory;
import org.jboss.identity.federation.core.saml.v2.util.SignatureUtil;
import org.jboss.identity.federation.saml.v2.protocol.AuthnRequestType;
import org.junit.Test;
Modified: identity-federation/trunk/identity-fed-core/.classpath
===================================================================
--- identity-federation/trunk/identity-fed-core/.classpath 2009-01-08 13:17:48 UTC (rev 207)
+++ identity-federation/trunk/identity-fed-core/.classpath 2009-01-08 22:55:31 UTC (rev 208)
@@ -7,5 +7,7 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/identity-fed-model"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-xacml/2.0.3-SNAPSHOT/jboss-xacml-2.0.3-SNAPSHOT.jar"/>
<classpathentry kind="output" path="target-eclipse"/>
</classpath>
Added: identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnRequestFactory.java
===================================================================
--- identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnRequestFactory.java (rev 0)
+++ identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnRequestFactory.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,125 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.core.saml.v2.factories;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.jboss.identity.federation.core.saml.v2.constants.JBossSAMLConstants;
+import org.jboss.identity.federation.core.saml.v2.util.XMLTimeUtil;
+import org.jboss.identity.federation.saml.v2.assertion.NameIDType;
+import org.jboss.identity.federation.saml.v2.protocol.AuthnRequestType;
+import org.jboss.identity.federation.saml.v2.protocol.ObjectFactory;
+
+/**
+ * Factory for SAML2 AuthnRequest
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 9, 2008
+ */
+public class JBossSAMLAuthnRequestFactory
+{
+ private static String pkgName = "org.jboss.identity.federation.saml.v2.protocol";
+ private static String schemaLocation = "schema/saml/v2/saml-schema-protocol-2.0.xsd";
+
+ private static ObjectFactory protocolObjectFactory = new ObjectFactory();
+
+ /**
+ * Create a AuthnRequestType
+ * @return
+ */
+ public static AuthnRequestType createAuthnRequestType()
+ {
+ AuthnRequestType authnRequestType = protocolObjectFactory.createAuthnRequestType();
+ return authnRequestType;
+ }
+
+ /**
+ * Create an AuthnRequestType
+ * @param id Id of the request
+ * @param assertionConsumerURL URL of the requestor where the response assertion is requested
+ * @param issuerValue URL of the issuer
+ * @return
+ * @throws Exception
+ */
+ public static AuthnRequestType createAuthnRequestType(String id,
+ String assertionConsumerURL, String destination, String issuerValue) throws Exception
+ {
+ XMLGregorianCalendar issueInstant = XMLTimeUtil.getIssueInstant();
+
+ AuthnRequestType authnRequest = protocolObjectFactory.createAuthnRequestType();
+ authnRequest.setID(id);
+ authnRequest.setVersion(JBossSAMLConstants.VERSION_2_0.get());
+ authnRequest.setAssertionConsumerServiceURL(assertionConsumerURL);
+ authnRequest.setDestination(destination);
+ authnRequest.setIssueInstant(issueInstant);
+
+ //Create an issuer
+ NameIDType issuer = JBossSAMLBaseFactory.createNameID();
+ issuer.setValue(issuerValue);
+
+ authnRequest.setIssuer(issuer);
+
+ return authnRequest;
+
+ }
+
+ /**
+ * Create a JAXBElement for the AuthnRequestType
+ * @param authnRequestType
+ * @return
+ */
+ public static JAXBElement<AuthnRequestType> createAuthnRequestType(AuthnRequestType authnRequestType)
+ {
+ return protocolObjectFactory.createAuthnRequest(authnRequestType);
+ }
+
+ /**
+ * Get the Object Factory useful for dealing with SAML2 requests
+ * @return
+ */
+ public static ObjectFactory getObjectFactory()
+ {
+ return protocolObjectFactory;
+ }
+
+ /**
+ * Get the validating marshaller
+ * @return
+ * @throws Exception
+ */
+ public static Marshaller getValidatingMarshaller() throws Exception
+ {
+ return JBossSAMLBaseFactory.getValidatingMarshaller(pkgName, schemaLocation);
+ }
+
+ /**
+ * Get the validating unmarshaller
+ * @return
+ * @throws Exception
+ */
+ public static Unmarshaller getValidatingUnmarshaller() throws Exception
+ {
+ return JBossSAMLBaseFactory.getValidatingUnmarshaller(pkgName, schemaLocation);
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnResponseFactory.java
===================================================================
--- identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnResponseFactory.java (rev 0)
+++ identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLAuthnResponseFactory.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,173 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.core.saml.v2.factories;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.jboss.identity.federation.core.saml.v2.holders.IDPInfoHolder;
+import org.jboss.identity.federation.core.saml.v2.holders.IssuerInfoHolder;
+import org.jboss.identity.federation.core.saml.v2.holders.SPInfoHolder;
+import org.jboss.identity.federation.core.saml.v2.util.XMLTimeUtil;
+import org.jboss.identity.federation.saml.v2.assertion.AssertionType;
+import org.jboss.identity.federation.saml.v2.assertion.NameIDType;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectConfirmationDataType;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectConfirmationType;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectType;
+import org.jboss.identity.federation.saml.v2.protocol.ObjectFactory;
+import org.jboss.identity.federation.saml.v2.protocol.ResponseType;
+import org.jboss.identity.federation.saml.v2.protocol.StatusCodeType;
+import org.jboss.identity.federation.saml.v2.protocol.StatusType;
+
+/**
+ * Factory for the SAML v2 Authn Response
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 9, 2008
+ */
+public class JBossSAMLAuthnResponseFactory
+{
+ private static String pkgName = "org.jboss.identity.federation.saml.v2.protocol";
+ private static String schemaLocation = "schema/saml/v2/saml-schema-protocol-2.0.xsd";
+
+ private static ObjectFactory protocolObjectFactory = new ObjectFactory();
+
+ /**
+ * Create a StatusType given the status code uri
+ * @param statusCodeURI
+ * @return
+ */
+ public static StatusType createStatusType(String statusCodeURI)
+ {
+ StatusCodeType sct = protocolObjectFactory.createStatusCodeType();
+ sct.setValue(statusCodeURI);
+
+ StatusType statusType = protocolObjectFactory.createStatusType();
+ statusType.setStatusCode(sct);
+ return statusType;
+ }
+
+ /**
+ * Create a ResponseType
+ * @param ID id of the response
+ * @param sp holder with the information about the Service Provider
+ * @param idp holder with the information on the Identity Provider
+ * @param issuerInfo holder with information on the issuer
+ * @return
+ * @throws Exception
+ */
+ public static ResponseType createResponseType(String ID, SPInfoHolder sp, IDPInfoHolder idp, IssuerInfoHolder issuerInfo) throws Exception
+ {
+ ResponseType responseType = protocolObjectFactory.createResponseType();
+ responseType.setVersion(issuerInfo.getSamlVersion());
+
+ //ID
+ responseType.setID(ID);
+ //InResponseTo ID
+ responseType.setInResponseTo(sp.getRequestID());
+ //Destination
+ String responseDestinationURI = sp.getResponseDestinationURI();
+ responseType.setDestination(responseDestinationURI);
+
+ //Issuer
+ NameIDType issuer = issuerInfo.getIssuer();
+ responseType.setIssuer(issuer);
+
+ //Status
+ String statusCode = issuerInfo.getStatusCode();
+ if(statusCode == null)
+ throw new IllegalArgumentException("issuerInfo missing status code");
+
+ responseType.setStatus(createStatusType(statusCode) );
+
+ XMLGregorianCalendar issueInstant = XMLTimeUtil.getIssueInstant();
+
+ //IssueInstant
+ responseType.setIssueInstant(issueInstant);
+
+ //Create an assertion
+ AssertionType assertionType = JBossSAMLBaseFactory.createAssertion();
+ assertionType.setID("ID_" + JBossSAMLBaseFactory.createUUID());
+ assertionType.setVersion(issuerInfo.getSamlVersion());
+ assertionType.setIssueInstant(issueInstant);
+
+ assertionType.setIssuer(issuer);
+
+ //Create assertion -> subject
+ SubjectType subjectType = JBossSAMLBaseFactory.createSubject();
+
+ //subject -> nameid
+ NameIDType nameIDType = JBossSAMLBaseFactory.createNameID();
+ nameIDType.setFormat(idp.getNameIDFormat());
+ nameIDType.setValue(idp.getNameIDFormatValue());
+
+ JAXBElement<NameIDType> jaxbNameIDType = JBossSAMLBaseFactory.createNameID(nameIDType);
+ subjectType.getContent().add(jaxbNameIDType);
+
+ SubjectConfirmationType subjectConfirmation =
+ JBossSAMLBaseFactory.createSubjectConfirmation(idp.getSubjectConfirmationMethod());
+ SubjectConfirmationDataType subjectConfirmationData =
+ JBossSAMLBaseFactory.createSubjectConfirmationData(sp.getRequestID(),
+ responseDestinationURI, issueInstant);
+ subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
+
+ JAXBElement<SubjectConfirmationType> jaxbSubjectConfirmationType =
+ JBossSAMLBaseFactory.createSubjectConfirmation(subjectConfirmation);
+
+ subjectType.getContent().add(jaxbSubjectConfirmationType);
+
+ assertionType.setSubject(subjectType);
+
+ responseType.getAssertionOrEncryptedAssertion().add(assertionType);
+ return responseType;
+ }
+
+ /**
+ * Return the JAXB2 object factory (mainly for invocation chaining)
+ * @return
+ */
+ public static ObjectFactory getObjectFactory()
+ {
+ return protocolObjectFactory;
+ }
+
+ /**
+ * Get the JAXB2 marshaller
+ * @return
+ * @throws Exception
+ */
+ public static Marshaller getValidatingMarshaller() throws Exception
+ {
+ return JBossSAMLBaseFactory.getValidatingMarshaller(pkgName, schemaLocation);
+ }
+
+ /**
+ * Get the JAXB2 Unmarshaller
+ * @return
+ * @throws Exception
+ */
+ public static Unmarshaller getValidatingUnmarshaller() throws Exception
+ {
+ return JBossSAMLBaseFactory.getValidatingUnmarshaller(pkgName, schemaLocation);
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLBaseFactory.java
===================================================================
--- identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLBaseFactory.java (rev 0)
+++ identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/JBossSAMLBaseFactory.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,219 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.core.saml.v2.factories;
+
+import java.net.URL;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+
+import org.jboss.identity.federation.core.saml.v2.constants.JBossSAMLURIConstants;
+import org.jboss.identity.federation.saml.v2.assertion.AssertionType;
+import org.jboss.identity.federation.saml.v2.assertion.AttributeStatementType;
+import org.jboss.identity.federation.saml.v2.assertion.AttributeType;
+import org.jboss.identity.federation.saml.v2.assertion.NameIDType;
+import org.jboss.identity.federation.saml.v2.assertion.ObjectFactory;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectConfirmationDataType;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectConfirmationType;
+import org.jboss.identity.federation.saml.v2.assertion.SubjectType;
+
+/**
+ * Base methods for the factories
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 9, 2008
+ */
+public class JBossSAMLBaseFactory
+{
+ private static ObjectFactory assertionObjectFactory = new ObjectFactory();
+
+ public static AssertionType createAssertion()
+ {
+ return assertionObjectFactory.createAssertionType();
+ }
+
+ public static AttributeStatementType createAttributeStatement()
+ {
+ return assertionObjectFactory.createAttributeStatementType();
+ }
+
+ /**
+ * Create an attribute type given a role name
+ * @param roleName
+ * @return
+ */
+ public static AttributeType createAttributeForRole(String roleName)
+ {
+ AttributeType att = assertionObjectFactory.createAttributeType();
+ att.setFriendlyName("role");
+ att.setName("role");
+ att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get());
+
+ //rolename
+ att.getAttributeValue().add(roleName);
+
+ return att;
+ }
+
+ /**
+ * Create an AttributeStatement given an attribute
+ * @param attributeValue
+ * @return
+ */
+ public static AttributeStatementType createAttributeStatement(String attributeValue)
+ {
+ AttributeStatementType attribStatement = assertionObjectFactory.createAttributeStatementType();
+ AttributeType att = assertionObjectFactory.createAttributeType();
+ JAXBElement<Object> attValue = assertionObjectFactory.createAttributeValue(attributeValue);
+ att.getAttributeValue().add(attValue);
+ attribStatement.getAttributeOrEncryptedAttribute().add(att);
+ return attribStatement;
+ }
+
+ public static NameIDType createNameID()
+ {
+ return assertionObjectFactory.createNameIDType();
+ }
+
+ public static JAXBElement<NameIDType> createNameID(NameIDType nameIDType)
+ {
+ return assertionObjectFactory.createNameID(nameIDType);
+ }
+
+ public static SubjectType createSubject()
+ {
+ SubjectType subjectType = assertionObjectFactory.createSubjectType();
+ return subjectType;
+ }
+
+ public static SubjectConfirmationType createSubjectConfirmation(String method)
+ {
+ SubjectConfirmationType sct = assertionObjectFactory.createSubjectConfirmationType();
+ sct.setMethod(method);
+ return sct;
+ }
+
+ public static JAXBElement<SubjectConfirmationType> createSubjectConfirmation(SubjectConfirmationType sct)
+ {
+ return assertionObjectFactory.createSubjectConfirmation(sct);
+ }
+
+ public static SubjectConfirmationDataType createSubjectConfirmationData(String inResponseTo,
+ String destinationURI, XMLGregorianCalendar issueInstant)
+ {
+ SubjectConfirmationDataType subjectConfirmationData = assertionObjectFactory.createSubjectConfirmationDataType();
+ subjectConfirmationData.setInResponseTo(inResponseTo);
+ subjectConfirmationData.setRecipient(destinationURI);
+ subjectConfirmationData.setNotBefore(issueInstant);
+ subjectConfirmationData.setNotOnOrAfter(issueInstant);
+
+ return subjectConfirmationData;
+ }
+
+ /**
+ * Get a UUID String
+ * @return
+ */
+ public static String createUUID()
+ {
+ return java.util.UUID.randomUUID().toString();
+ }
+
+ public static ObjectFactory getObjectFactory()
+ {
+ return assertionObjectFactory;
+ }
+
+ /**
+ * Return the NameIDType for the issuer
+ * @param issuerID
+ * @return
+ */
+ public static NameIDType getIssuer(String issuerID)
+ {
+ NameIDType nid = assertionObjectFactory.createNameIDType();
+ nid.setValue(issuerID);
+ return nid;
+ }
+
+
+ /**
+ * Get the JAXB Marshaller
+ * @param pkgName The package name for the jaxb context
+ * @param schemaLocation location of the schema to validate against
+ * @return Marshaller
+ * @throws Exception
+ */
+ public static Marshaller getValidatingMarshaller(String pkgName, String schemaLocation)
+ throws Exception
+ {
+ if(pkgName == null)
+ throw new IllegalArgumentException("pkgName is null");
+
+ JAXBContext jc = JAXBContext.newInstance(pkgName);
+ Marshaller marshaller = jc.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
+ //Validate against schema
+ ClassLoader tcl = SecurityActions.getContextClassLoader();
+ URL schemaURL = tcl.getResource(schemaLocation);
+ if(schemaURL == null)
+ throw new IllegalStateException("Schema URL is null:" + schemaLocation);
+ SchemaFactory scFact = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = scFact.newSchema(schemaURL);
+ marshaller.setSchema(schema);
+
+ return marshaller;
+ }
+
+ /**
+ * Get the JAXB Unmarshaller
+ * @param pkgName The package name for the jaxb context
+ * @param schemaLocation location of the schema to validate against
+ * @param schemaValidating need a validating schema unmarshaller?
+ * @return unmarshaller
+ * @throws Exception
+ */
+ public static Unmarshaller getValidatingUnmarshaller(String pkgName, String schemaLocation)
+ throws Exception
+ {
+ if(pkgName == null)
+ throw new IllegalArgumentException("pkgName is null");
+
+ JAXBContext jc = JAXBContext.newInstance(pkgName);
+ Unmarshaller unmarshaller = jc.createUnmarshaller();
+ //Validate against schema
+ ClassLoader tcl = SecurityActions.getContextClassLoader();
+ URL schemaURL = tcl.getResource(schemaLocation);
+ if(schemaURL == null)
+ throw new IllegalStateException("Schema URL is null:" + schemaLocation);
+ SchemaFactory scFact = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = scFact.newSchema(schemaURL);
+ unmarshaller.setSchema(schema);
+
+ return unmarshaller;
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/SecurityActions.java
===================================================================
--- identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/SecurityActions.java (rev 0)
+++ identity-federation/trunk/identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/factories/SecurityActions.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.core.saml.v2.factories;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+/**
+ * Privileged Blocks
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 9, 2008
+ */
+class SecurityActions
+{
+ /**
+ * Get the Thread Context ClassLoader
+ * @return
+ */
+ static ClassLoader getContextClassLoader()
+ {
+ return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
+ {
+ public ClassLoader run()
+ {
+ return Thread.currentThread().getContextClassLoader();
+ }
+ });
+ }
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/ObjectFactory.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/ObjectFactory.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/ObjectFactory.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:07:00 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.assertion;
+
+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 oasis.xacml._2_0.saml.assertion.schema.os 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 _XACMLAuthzDecisionStatement_QNAME = new QName("urn:oasis:xacml:2.0:saml:assertion:schema:os", "XACMLAuthzDecisionStatement");
+ private final static QName _XACMLPolicyStatement_QNAME = new QName("urn:oasis:xacml:2.0:saml:assertion:schema:os", "XACMLPolicyStatement");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: oasis.xacml._2_0.saml.assertion.schema.os
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link XACMLAuthzDecisionStatementType }
+ *
+ */
+ public XACMLAuthzDecisionStatementType createXACMLAuthzDecisionStatementType() {
+ return new XACMLAuthzDecisionStatementType();
+ }
+
+ /**
+ * Create an instance of {@link XACMLPolicyStatementType }
+ *
+ */
+ public XACMLPolicyStatementType createXACMLPolicyStatementType() {
+ return new XACMLPolicyStatementType();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XACMLAuthzDecisionStatementType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:oasis:xacml:2.0:saml:assertion:schema:os", name = "XACMLAuthzDecisionStatement")
+ public JAXBElement<XACMLAuthzDecisionStatementType> createXACMLAuthzDecisionStatement(XACMLAuthzDecisionStatementType value) {
+ return new JAXBElement<XACMLAuthzDecisionStatementType>(_XACMLAuthzDecisionStatement_QNAME, XACMLAuthzDecisionStatementType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XACMLPolicyStatementType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:oasis:xacml:2.0:saml:assertion:schema:os", name = "XACMLPolicyStatement")
+ public JAXBElement<XACMLPolicyStatementType> createXACMLPolicyStatement(XACMLPolicyStatementType value) {
+ return new JAXBElement<XACMLPolicyStatementType>(_XACMLPolicyStatement_QNAME, XACMLPolicyStatementType.class, null, value);
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLAuthzDecisionStatementType.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLAuthzDecisionStatementType.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLAuthzDecisionStatementType.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,103 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:07:00 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.assertion;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.identity.federation.saml.v2.assertion.StatementAbstractType;
+import org.jboss.security.xacml.core.model.context.RequestType;
+import org.jboss.security.xacml.core.model.context.ResponseType;
+
+
+/**
+ * <p>Java class for XACMLAuthzDecisionStatementType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="XACMLAuthzDecisionStatementType">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:SAML:2.0:assertion}StatementAbstractType">
+ * <sequence>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:context:schema:os}Response"/>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:context:schema:os}Request" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "XACMLAuthzDecisionStatementType", propOrder = {
+ "response",
+ "request"
+})
+public class XACMLAuthzDecisionStatementType
+ extends StatementAbstractType
+{
+
+ @XmlElement(name = "Response", namespace = "urn:oasis:names:tc:xacml:2.0:context:schema:os", required = true)
+ protected ResponseType response;
+ @XmlElement(name = "Request", namespace = "urn:oasis:names:tc:xacml:2.0:context:schema:os")
+ protected RequestType request;
+
+ /**
+ * Gets the value of the response property.
+ *
+ * @return
+ * possible object is
+ * {@link ResponseType }
+ *
+ */
+ public ResponseType getResponse() {
+ return response;
+ }
+
+ /**
+ * Sets the value of the response property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ResponseType }
+ *
+ */
+ public void setResponse(ResponseType value) {
+ this.response = value;
+ }
+
+ /**
+ * Gets the value of the request property.
+ *
+ * @return
+ * possible object is
+ * {@link RequestType }
+ *
+ */
+ public RequestType getRequest() {
+ return request;
+ }
+
+ /**
+ * Sets the value of the request property.
+ *
+ * @param value
+ * allowed object is
+ * {@link RequestType }
+ *
+ */
+ public void setRequest(RequestType value) {
+ this.request = value;
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLPolicyStatementType.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLPolicyStatementType.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/XACMLPolicyStatementType.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,87 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:07:00 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.assertion;
+
+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;
+
+import org.jboss.identity.federation.saml.v2.assertion.StatementAbstractType;
+import org.jboss.security.xacml.core.model.policy.PolicySetType;
+import org.jboss.security.xacml.core.model.policy.PolicyType;
+
+/**
+ * <p>Java class for XACMLPolicyStatementType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="XACMLPolicyStatementType">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:SAML:2.0:assertion}StatementAbstractType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}Policy"/>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicySet"/>
+ * </choice>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "XACMLPolicyStatementType", propOrder = {
+ "policyOrPolicySet"
+})
+public class XACMLPolicyStatementType
+ extends StatementAbstractType
+{
+
+ @XmlElements({
+ @XmlElement(name = "PolicySet", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicySetType.class),
+ @XmlElement(name = "Policy", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicyType.class)
+ })
+ protected List<Object> policyOrPolicySet;
+
+ /**
+ * Gets the value of the policyOrPolicySet 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 policyOrPolicySet property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPolicyOrPolicySet().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link PolicySetType }
+ * {@link PolicyType }
+ *
+ *
+ */
+ public List<Object> getPolicyOrPolicySet() {
+ if (policyOrPolicySet == null) {
+ policyOrPolicySet = new ArrayList<Object>();
+ }
+ return this.policyOrPolicySet;
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/package-info.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/package-info.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/assertion/package-info.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:07:00 PM CST
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:oasis:xacml:2.0:saml:assertion:schema:os", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.identity.federation.saml.v2.profiles.xacml.assertion;
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/ObjectFactory.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/ObjectFactory.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/ObjectFactory.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:14:41 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.protocol;
+
+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 oasis.xacml._2_0.saml.protocol.schema.os 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 _XACMLAuthzDecisionQuery_QNAME = new QName("urn:oasis:xacml:2.0:saml:protocol:schema:os", "XACMLAuthzDecisionQuery");
+ private final static QName _XACMLPolicyQuery_QNAME = new QName("urn:oasis:xacml:2.0:saml:protocol:schema:os", "XACMLPolicyQuery");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: oasis.xacml._2_0.saml.protocol.schema.os
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link XACMLAuthzDecisionQueryType }
+ *
+ */
+ public XACMLAuthzDecisionQueryType createXACMLAuthzDecisionQueryType() {
+ return new XACMLAuthzDecisionQueryType();
+ }
+
+ /**
+ * Create an instance of {@link XACMLPolicyQueryType }
+ *
+ */
+ public XACMLPolicyQueryType createXACMLPolicyQueryType() {
+ return new XACMLPolicyQueryType();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XACMLAuthzDecisionQueryType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:oasis:xacml:2.0:saml:protocol:schema:os", name = "XACMLAuthzDecisionQuery")
+ public JAXBElement<XACMLAuthzDecisionQueryType> createXACMLAuthzDecisionQuery(XACMLAuthzDecisionQueryType value) {
+ return new JAXBElement<XACMLAuthzDecisionQueryType>(_XACMLAuthzDecisionQuery_QNAME, XACMLAuthzDecisionQueryType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XACMLPolicyQueryType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:oasis:xacml:2.0:saml:protocol:schema:os", name = "XACMLPolicyQuery")
+ public JAXBElement<XACMLPolicyQueryType> createXACMLPolicyQuery(XACMLPolicyQueryType value) {
+ return new JAXBElement<XACMLPolicyQueryType>(_XACMLPolicyQuery_QNAME, XACMLPolicyQueryType.class, null, value);
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLAuthzDecisionQueryType.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLAuthzDecisionQueryType.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLAuthzDecisionQueryType.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,137 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:14:41 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.protocol;
+
+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.XmlType;
+
+import org.jboss.identity.federation.saml.v2.protocol.RequestAbstractType;
+import org.jboss.security.xacml.core.model.context.RequestType;
+
+
+/**
+ * <p>Java class for XACMLAuthzDecisionQueryType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="XACMLAuthzDecisionQueryType">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:SAML:2.0:protocol}RequestAbstractType">
+ * <sequence>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:context:schema:os}Request"/>
+ * </sequence>
+ * <attribute name="InputContextOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ * <attribute name="ReturnContext" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "XACMLAuthzDecisionQueryType", propOrder = {
+ "request"
+})
+public class XACMLAuthzDecisionQueryType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "Request", namespace = "urn:oasis:names:tc:xacml:2.0:context:schema:os", required = true)
+ protected RequestType request;
+ @XmlAttribute(name = "InputContextOnly")
+ protected Boolean inputContextOnly;
+ @XmlAttribute(name = "ReturnContext")
+ protected Boolean returnContext;
+
+ /**
+ * Gets the value of the request property.
+ *
+ * @return
+ * possible object is
+ * {@link RequestType }
+ *
+ */
+ public RequestType getRequest() {
+ return request;
+ }
+
+ /**
+ * Sets the value of the request property.
+ *
+ * @param value
+ * allowed object is
+ * {@link RequestType }
+ *
+ */
+ public void setRequest(RequestType value) {
+ this.request = value;
+ }
+
+ /**
+ * Gets the value of the inputContextOnly property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isInputContextOnly() {
+ if (inputContextOnly == null) {
+ return false;
+ } else {
+ return inputContextOnly;
+ }
+ }
+
+ /**
+ * Sets the value of the inputContextOnly property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setInputContextOnly(Boolean value) {
+ this.inputContextOnly = value;
+ }
+
+ /**
+ * Gets the value of the returnContext property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isReturnContext() {
+ if (returnContext == null) {
+ return false;
+ } else {
+ return returnContext;
+ }
+ }
+
+ /**
+ * Sets the value of the returnContext property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setReturnContext(Boolean value) {
+ this.returnContext = value;
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLPolicyQueryType.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLPolicyQueryType.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/XACMLPolicyQueryType.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,93 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:14:41 PM CST
+//
+
+
+package org.jboss.identity.federation.saml.v2.profiles.xacml.protocol;
+
+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;
+
+import org.jboss.identity.federation.saml.v2.protocol.RequestAbstractType;
+
+
+/**
+ * <p>Java class for XACMLPolicyQueryType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="XACMLPolicyQueryType">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:SAML:2.0:protocol}RequestAbstractType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:context:schema:os}Request"/>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}Target"/>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicySetIdReference"/>
+ * <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicyIdReference"/>
+ * </choice>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "XACMLPolicyQueryType", propOrder = {
+ "requestOrTargetOrPolicySetIdReference"
+})
+public class XACMLPolicyQueryType
+ extends RequestAbstractType
+{
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "Request", namespace = "urn:oasis:names:tc:xacml:2.0:context:schema:os", type = JAXBElement.class),
+ @XmlElementRef(name = "Target", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
+ @XmlElementRef(name = "PolicyIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
+ @XmlElementRef(name = "PolicySetIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class)
+ })
+ protected List<JAXBElement<?>> requestOrTargetOrPolicySetIdReference;
+
+ /**
+ * Gets the value of the requestOrTargetOrPolicySetIdReference 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 requestOrTargetOrPolicySetIdReference property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRequestOrTargetOrPolicySetIdReference().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link IdReferenceType }{@code >}
+ * {@link JAXBElement }{@code <}{@link IdReferenceType }{@code >}
+ * {@link JAXBElement }{@code <}{@link RequestType }{@code >}
+ * {@link JAXBElement }{@code <}{@link TargetType }{@code >}
+ *
+ *
+ */
+ public List<JAXBElement<?>> getRequestOrTargetOrPolicySetIdReference() {
+ if (requestOrTargetOrPolicySetIdReference == null) {
+ requestOrTargetOrPolicySetIdReference = new ArrayList<JAXBElement<?>>();
+ }
+ return this.requestOrTargetOrPolicySetIdReference;
+ }
+
+}
Added: identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/package-info.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/package-info.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/java/org/jboss/identity/federation/saml/v2/profiles/xacml/protocol/package-info.java 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.08 at 03:14:41 PM CST
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:oasis:xacml:2.0:saml:protocol:schema:os", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.identity.federation.saml.v2.profiles.xacml.protocol;
Added: identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-assertion-schema-os.xsd
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-assertion-schema-os.xsd (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-assertion-schema-os.xsd 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema
+ targetNamespace="urn:oasis:xacml:2.0:saml:assertion:schema:os"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ xmlns:xacml="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
+ xmlns:xacml-saml="urn:oasis:xacml:2.0:saml:assertion:schema:os"
+ elementFormDefault="unqualified"
+ attributeFormDefault="unqualified"
+ blockDefault="substitution"
+ version="2.0">
+ <xs:import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
+ schemaLocation="http://www.oasis-open.org/committees/download.php/11027/sstc-saml-schema-..."/>
+ <xs:import namespace="urn:oasis:names:tc:SAML:2.0:protocol"
+ schemaLocation="http://www.oasis-open.org/committees/download.php/11026/sstc-saml-schema-..."/>
+ <xs:import namespace="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ schemaLocation="http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-context-sch..."/>
+ <xs:import namespace="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
+ schemaLocation="http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-policy-sche..."/>
+ <xs:annotation>
+ <xs:documentation>
+ Document identifier: access_control-xacml-2.0-saml-assertion-schema-cd-02.xsd
+ Location: http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-saml-assert...
+ </xs:documentation>
+ </xs:annotation>
+ <!-- -->
+ <xs:element name="XACMLAuthzDecisionStatement"
+ type="xacml-saml:XACMLAuthzDecisionStatementType"/>
+ <xs:complexType name="XACMLAuthzDecisionStatementType">
+ <xs:complexContent>
+ <xs:extension base="saml:StatementAbstractType">
+ <xs:sequence>
+ <xs:element ref="xacml-context:Response"/>
+ <xs:element ref="xacml-context:Request" minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <!-- -->
+ <xs:element name="XACMLPolicyStatement"
+ type="xacml-saml:XACMLPolicyStatementType"/>
+ <xs:complexType name="XACMLPolicyStatementType">
+ <xs:complexContent>
+ <xs:extension base="saml:StatementAbstractType">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xacml:Policy"/>
+ <xs:element ref="xacml:PolicySet"/>
+ </xs:choice>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+</schema>
Added: identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-protocol-schema-os.xsd
===================================================================
--- identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-protocol-schema-os.xsd (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/main/resources/schema/saml/v2/access_control-xacml-2.0-saml-protocol-schema-os.xsd 2009-01-08 22:55:31 UTC (rev 208)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema
+ targetNamespace="urn:oasis:xacml:2.0:saml:protocol:schema:os"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ xmlns:xacml="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
+ xmlns:xacml-samlp="urn:oasis:xacml:2.0:saml:protocol:schema:os"
+ elementFormDefault="unqualified"
+ attributeFormDefault="unqualified"
+ blockDefault="substitution"
+ version="2.0">
+ <xs:import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
+ schemaLocation="http://www.oasis-open.org/committees/download.php/11027/sstc-saml-schema-..."/>
+ <xs:import namespace="urn:oasis:names:tc:SAML:2.0:protocol"
+ schemaLocation="http://www.oasis-open.org/committees/download.php/11026/sstc-saml-schema-..."/>
+ <xs:import namespace="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ schemaLocation="http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-context-sch..."/>
+ <xs:import namespace="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
+ schemaLocation="http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-policy-sche..."/>
+ <xs:annotation>
+ <xs:documentation>
+ Document identifier: access_control-xacml-2.0-saml-protocol-schema-os.xsd
+ Location: http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-saml-protoc...
+ </xs:documentation>
+ </xs:annotation>
+ <!-- -->
+ <xs:element name="XACMLAuthzDecisionQuery"
+ type="xacml-samlp:XACMLAuthzDecisionQueryType"/>
+ <xs:complexType name="XACMLAuthzDecisionQueryType">
+ <xs:complexContent>
+ <xs:extension base="samlp:RequestAbstractType">
+ <xs:sequence>
+ <xs:element ref="xacml-context:Request"/>
+ </xs:sequence>
+ <xs:attribute name="InputContextOnly"
+ type="boolean"
+ use="optional"
+ default="false"/>
+ <xs:attribute name="ReturnContext"
+ type="boolean"
+ use="optional"
+ default="false"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <!-- -->
+ <xs:element name="XACMLPolicyQuery"
+ type="xacml-samlp:XACMLPolicyQueryType"/>
+ <xs:complexType name="XACMLPolicyQueryType">
+ <xs:complexContent>
+ <xs:extension base="samlp:RequestAbstractType">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xacml-context:Request"/>
+ <xs:element ref="xacml:Target"/>
+ <xs:element ref="xacml:PolicySetIdReference"/>
+ <xs:element ref="xacml:PolicyIdReference"/>
+ </xs:choice>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+</schema>
15 years, 4 months
JBoss Identity SVN: r207 - identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust.
by jboss-identity-commits@lists.jboss.org
Author: sguilhen(a)redhat.com
Date: 2009-01-08 08:17:48 -0500 (Thu, 08 Jan 2009)
New Revision: 207
Modified:
identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java
Log:
Included a test scenario for security token request collection
Modified: identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java 2009-01-07 22:07:09 UTC (rev 206)
+++ identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java 2009-01-08 13:17:48 UTC (rev 207)
@@ -37,6 +37,7 @@
import junit.framework.TestCase;
+import org.jboss.identity.federation.ws.trust.RequestSecurityTokenCollectionType;
import org.jboss.identity.federation.ws.trust.RequestSecurityTokenType;
/**
@@ -76,8 +77,8 @@
// validate the request contents.
RequestSecurityTokenType request = (RequestSecurityTokenType) element.getValue();
List<Object> contents = request.getAny();
- assertNotNull("Unexpected null request contents", contents);
- assertEquals("Unexpected number of elements", 2, contents.size());
+ assertNotNull("Unexpected null value for the request contents", contents);
+ assertEquals("Unexpected number of contents", 2, contents.size());
// first element should be TokenType.
JAXBElement<String> tokenType = (JAXBElement<String>) contents.get(0);
@@ -90,18 +91,48 @@
assertEquals("http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue", requestType.getValue());
}
+ /**
+ * <p>
+ * Tests unmarshalling a ws-trust request for a collection of security tokens.
+ * </p>
+ *
+ * @throws Exception if an error occurs while running the test.
+ */
+ @SuppressWarnings("unchecked")
public void testUnmarshallTokenCollectionRequest() throws Exception
{
- JAXBContext context = JAXBContext
- .newInstance("org.jboss.identity.federation.ws.trust");
+ JAXBContext context = JAXBContext.newInstance("org.jboss.identity.federation.ws.trust");
Unmarshaller unmarshaller = context.createUnmarshaller();
// this.setValidatingSchema("/schema/wstrust/v1_3/ws-trust-1.3.xsd", unmarshaller);
// unmarshall the sample security token request.
URI sampleURI = this.getClass().getResource("/wstrust/collection-request.xml").toURI();
Object object = unmarshaller.unmarshal(new File(sampleURI));
+ assertNotNull("Unexpected null object", object);
+ assertTrue("Unexpected object type", object instanceof JAXBElement);
JAXBElement element = (JAXBElement) object;
+ assertEquals("Invalid element name", "RequestSecurityTokenCollection", element.getName().getLocalPart());
+ assertEquals("Invalid element type", RequestSecurityTokenCollectionType.class, element.getDeclaredType());
+
+ List<RequestSecurityTokenType> requests = ((RequestSecurityTokenCollectionType) element.getValue())
+ .getRequestSecurityToken();
+ assertNotNull("Unexpected null request list", requests);
+ assertEquals("Unexpected number of requests", 2, requests.size());
+
+ // first request must have the http://www.example.com/1 context.
+ RequestSecurityTokenType request = requests.get(0);
+ assertEquals("Invalid context id", "http://www.example.com/1", request.getContext());
+ List<Object> contents = request.getAny();
+ assertNotNull("Unexpected null value for the request contents", contents);
+ assertEquals("Unexpected number of contents", 4, contents.size());
+
+ // second request must have the http://www.example.com/2 context.
+ request = requests.get(1);
+ assertEquals("Invalid context id", "http://www.example.com/2", request.getContext());
+ contents = request.getAny();
+ assertNotNull("Unexpected null value for the request contents", contents);
+ assertEquals("Unexpected number of contents", 4, contents.size());
}
/**
15 years, 4 months
JBoss Identity SVN: r206 - in xmlkey/trunk: xkms and 1 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 17:07:09 -0500 (Wed, 07 Jan 2009)
New Revision: 206
Added:
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateResultUnitTestCase.java
Removed:
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
Modified:
xmlkey/trunk/parent/pom.xml
xmlkey/trunk/xkms/pom.xml
Log:
unit test for LocateResult
Modified: xmlkey/trunk/parent/pom.xml
===================================================================
--- xmlkey/trunk/parent/pom.xml 2009-01-07 21:16:38 UTC (rev 205)
+++ xmlkey/trunk/parent/pom.xml 2009-01-07 22:07:09 UTC (rev 206)
@@ -101,6 +101,11 @@
<version>2.1.9</version>
</dependency>
<dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>2.1.9</version>
+ </dependency>
+ <dependency>
<groupId>apache-xmlsec</groupId>
<artifactId>xmlsec</artifactId>
<version>1.3.0</version>
Modified: xmlkey/trunk/xkms/pom.xml
===================================================================
--- xmlkey/trunk/xkms/pom.xml 2009-01-07 21:16:38 UTC (rev 205)
+++ xmlkey/trunk/xkms/pom.xml 2009-01-07 22:07:09 UTC (rev 206)
@@ -71,6 +71,11 @@
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0</version>
Deleted: xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
===================================================================
--- xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java 2009-01-07 21:16:38 UTC (rev 205)
+++ xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java 2009-01-07 22:07:09 UTC (rev 206)
@@ -1,91 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.identity.xkms.v2.model;
-
-import static org.junit.Assert.*;
-
-import java.io.ByteArrayOutputStream;
-import java.io.StringReader;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.Marshaller;
-import javax.xml.bind.Unmarshaller;
-
-import org.jboss.identity.xkms.v2.model.LocateRequestType;
-import org.jboss.identity.xkms.v2.model.ObjectFactory;
-import org.jboss.identity.xmlkey.common.JBossJAXBUtil;
-import org.junit.Test;
-
-/**
- * Unit Test the LocateRequest construct
- * @author Anil.Saldhana(a)redhat.com
- * @since Jan 7, 2009
- */
-public class LocateRequestUnitTest
-{
- String pkg = "org.jboss.identity.xkms.v2.model";
- String schema = "schema/v2/xkms.xsd";
-
- ObjectFactory objectFactory = new ObjectFactory();
-
- /**
- <?xml version="1.0" encoding="utf-8"?>
- <LocateRequest Id="Ia1d6ca7a067fdd545f1a1396d2f26779"
- Service="http://www.example.org/XKMS"
- xmlns="http://www.w3.org/2002/03/xkms#">
- <ResponseMechanism>http://www.w3.org/2002/03/xkms#Represent</ResponseMechanism>
- <QueryKeyBinding />
- </LocateRequest>
- * @throws Exception
- */
- @SuppressWarnings("unchecked")
- @Test
- public void testConstruction() throws Exception
- {
- String id = "Ia1d6ca7a067fdd545f1a1396d2f26779";
- String service = "http://www.example.org/XKMS";
- String responseMech = "http://www.w3.org/2002/03/xkms#Represent";
-
- LocateRequestType lrt = objectFactory.createLocateRequestType();
- lrt.setId(id);
- lrt.setService(service);
-
- lrt.setQueryKeyBinding(objectFactory.createQueryKeyBindingType());
-
- lrt.getResponseMechanism().add(responseMech);
-
- JAXBElement<LocateRequestType> jaxbLRT = objectFactory.createLocateRequest(lrt);
-
- Marshaller m = JBossJAXBUtil.getValidatingMarshaller(pkg, schema);
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- m.marshal(jaxbLRT, baos);
-
- StringReader sr = new StringReader(baos.toString());
- Unmarshaller um = JBossJAXBUtil.getValidatingUnmarshaller(pkg, schema);
- JAXBElement<LocateRequestType> jaxbLRTUM = (JAXBElement<LocateRequestType>) um.unmarshal(sr);
-
- LocateRequestType lrtum = jaxbLRTUM.getValue();
- assertEquals(id, lrtum.getId());
- assertEquals(service, lrtum.getService());
- assertEquals(responseMech, lrtum.getResponseMechanism().get(0));
- }
-}
\ No newline at end of file
Added: xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateResultUnitTestCase.java
===================================================================
--- xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateResultUnitTestCase.java (rev 0)
+++ xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateResultUnitTestCase.java 2009-01-07 22:07:09 UTC (rev 206)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.identity.xkms.v2.model;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.ByteArrayOutputStream;
+import java.io.StringReader;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+
+import org.jboss.identity.xkms.v2.model.LocateResultType;
+import org.jboss.identity.xkms.v2.model.ObjectFactory;
+import org.jboss.identity.xmlkey.common.JBossJAXBUtil;
+import org.junit.Test;
+
+/**
+ * Unit Test the LocateResult construct
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jan 7, 2009
+ */
+public class LocateResultUnitTestCase
+{
+ String pkg = "org.jboss.identity.xkms.v2.model";
+ String schema = "schema/v2/xkms.xsd";
+
+ ObjectFactory objectFactory = new ObjectFactory();
+
+ /**
+ <?xml version="1.0" encoding="utf-8"?>
+ <LocateResult Id="Idbc77142059a3a51c9eccd2425d77757"
+ Service="http://www.example.org/XKMS"
+ Nonce="Rj2BoUZM7PisPX2ytSAAWA=="
+ ResultMajor="http://www.w3.org/2002/03/xkms#Represent"
+ RequestId="Ia1d6ca7a067fdd545f1a1396d2f26779"
+ xmlns="http://www.w3.org/2002/03/xkms#" />
+ * @throws Exception
+ */
+ @SuppressWarnings("unchecked")
+ @Test
+ public void testConstruction() throws Exception
+ {
+ String id = "Idbc77142059a3a51c9eccd2425d77757";
+ String reqid = "Ia1d6ca7a067fdd545f1a1396d2f26779";
+ String service = "http://www.example.org/XKMS";
+ String resultMajor = "http://www.w3.org/2002/03/xkms#Represent";
+ String nonce = "Rj2BoUZM7PisPX2ytSAAWA==";
+
+ LocateResultType lrt = objectFactory.createLocateResultType();
+ lrt.setId(id);
+ lrt.setRequestId(reqid);
+ lrt.setService(service);
+ lrt.setResultMajor(resultMajor);
+ lrt.setNonce(nonce.getBytes());
+
+ JAXBElement<LocateResultType> jaxbLRT = objectFactory.createLocateResult(lrt);
+
+ Marshaller m = JBossJAXBUtil.getValidatingMarshaller(pkg, schema);
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ m.marshal(jaxbLRT, baos);
+
+ StringReader sr = new StringReader(baos.toString());
+ Unmarshaller um = JBossJAXBUtil.getValidatingUnmarshaller(pkg, schema);
+ JAXBElement<LocateResultType> jaxbLRTUM = (JAXBElement<LocateResultType>) um.unmarshal(sr);
+
+ LocateResultType lrtum = jaxbLRTUM.getValue();
+ assertEquals(id, lrtum.getId());
+ assertEquals(reqid, lrtum.getRequestId());
+ assertEquals(service, lrtum.getService());
+ assertEquals(resultMajor, lrtum.getResultMajor());
+ assertEquals(nonce, new String(lrtum.getNonce()));
+ }
+}
\ No newline at end of file
15 years, 4 months
JBoss Identity SVN: r205 - in xmlkey/trunk: xkms and 1 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 16:16:38 -0500 (Wed, 07 Jan 2009)
New Revision: 205
Modified:
xmlkey/trunk/skms/.classpath
xmlkey/trunk/xkms/.classpath
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
Log:
minor fix
Modified: xmlkey/trunk/skms/.classpath
===================================================================
--- xmlkey/trunk/skms/.classpath 2009-01-07 21:08:34 UTC (rev 204)
+++ xmlkey/trunk/skms/.classpath 2009-01-07 21:16:38 UTC (rev 205)
@@ -4,8 +4,6 @@
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/main/resources"/>
- <classpathentry kind="lib" path="target/jboss-skms-1.0.0-SNAPSHOT-sources.jar"/>
- <classpathentry kind="lib" path="target/jboss-skms-1.0.0-SNAPSHOT.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/common"/>
<classpathentry kind="output" path="target-eclipse"/>
Modified: xmlkey/trunk/xkms/.classpath
===================================================================
--- xmlkey/trunk/xkms/.classpath 2009-01-07 21:08:34 UTC (rev 204)
+++ xmlkey/trunk/xkms/.classpath 2009-01-07 21:16:38 UTC (rev 205)
@@ -4,8 +4,6 @@
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="lib" path="target/jboss-xkms-1.0.0-SNAPSHOT-sources.jar"/>
- <classpathentry kind="lib" path="target/jboss-xkms-1.0.0-SNAPSHOT.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar"/>
<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar"/>
Modified: xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
===================================================================
--- xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java 2009-01-07 21:08:34 UTC (rev 204)
+++ xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java 2009-01-07 21:16:38 UTC (rev 205)
@@ -57,6 +57,7 @@
</LocateRequest>
* @throws Exception
*/
+ @SuppressWarnings("unchecked")
@Test
public void testConstruction() throws Exception
{
15 years, 4 months
JBoss Identity SVN: r204 - in xmlkey/trunk: assembly and 36 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 16:08:34 -0500 (Wed, 07 Jan 2009)
New Revision: 204
Added:
xmlkey/trunk/assembly/
xmlkey/trunk/assembly/bin.xml
xmlkey/trunk/assembly/pom.xml
xmlkey/trunk/assembly/sources.xml
xmlkey/trunk/common/
xmlkey/trunk/common/.classpath
xmlkey/trunk/common/.project
xmlkey/trunk/common/pom.xml
xmlkey/trunk/common/src/
xmlkey/trunk/common/src/main/
xmlkey/trunk/common/src/main/java/
xmlkey/trunk/common/src/main/java/org/
xmlkey/trunk/common/src/main/java/org/jboss/
xmlkey/trunk/common/src/main/java/org/jboss/identity/
xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/
xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/
xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/JBossJAXBUtil.java
xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/SecurityActions.java
xmlkey/trunk/common/src/main/resources/
xmlkey/trunk/parent/
xmlkey/trunk/parent/pom.xml
xmlkey/trunk/pom.xml
xmlkey/trunk/skms/
xmlkey/trunk/skms/.classpath
xmlkey/trunk/skms/.project
xmlkey/trunk/skms/pom.xml
xmlkey/trunk/skms/src/
xmlkey/trunk/skms/src/main/
xmlkey/trunk/skms/src/main/java/
xmlkey/trunk/skms/src/main/resources/
xmlkey/trunk/skms/src/test/
xmlkey/trunk/skms/src/test/java/
xmlkey/trunk/skms/src/test/resources/
xmlkey/trunk/xkms/
xmlkey/trunk/xkms/.classpath
xmlkey/trunk/xkms/.project
xmlkey/trunk/xkms/pom.xml
xmlkey/trunk/xkms/src/
xmlkey/trunk/xkms/src/main/
xmlkey/trunk/xkms/src/main/java/
xmlkey/trunk/xkms/src/main/java/org/
xmlkey/trunk/xkms/src/main/java/org/jboss/
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/AuthenticationType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAbstractType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAuthenticationType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageAbstractType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageExtensionAbstractType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/NotBoundAuthenticationType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ObjectFactory.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/OpaqueClientDataType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingNotificationType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrivateKeyType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ProofOfPossessionType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrototypeKeyBindingType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/QueryKeyBindingType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RSAKeyPairType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RequestAbstractType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/TimeInstantType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UnverifiedKeyBindingType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UseKeyWithType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateRequestType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateResultType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidityIntervalType.java
xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/package-info.java
xmlkey/trunk/xkms/src/main/resources/
xmlkey/trunk/xkms/src/main/resources/schema/
xmlkey/trunk/xkms/src/main/resources/schema/v2/
xmlkey/trunk/xkms/src/main/resources/schema/v2/xenc-schema.xsd
xmlkey/trunk/xkms/src/main/resources/schema/v2/xkms.xsd
xmlkey/trunk/xkms/src/main/resources/schema/v2/xmldsig-core-schema.xsd
xmlkey/trunk/xkms/src/test/
xmlkey/trunk/xkms/src/test/java/
xmlkey/trunk/xkms/src/test/java/org/
xmlkey/trunk/xkms/src/test/java/org/jboss/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/
xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
xmlkey/trunk/xkms/src/test/resources/
Log:
xkms
Added: xmlkey/trunk/assembly/bin.xml
===================================================================
--- xmlkey/trunk/assembly/bin.xml (rev 0)
+++ xmlkey/trunk/assembly/bin.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,20 @@
+<assembly>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/../common/target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../xkms/target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../skms/target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
Added: xmlkey/trunk/assembly/pom.xml
===================================================================
--- xmlkey/trunk/assembly/pom.xml (rev 0)
+++ xmlkey/trunk/assembly/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,63 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss XMLKey- Assembly</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss XMLKey</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Specification-Title>JBoss Identity</Specification-Title>
+ <Specification-Version>${project.version}</Specification-Version>
+ <Specification-Vendor>Red Hat Middleware LLC</Specification-Vendor>
+ <Implementation-Title>JBoss Identity</Implementation-Title>
+ <Implementation-Version>${project.version}</Implementation-Version>
+ <Implementation-VendorId>org.jboss.security</Implementation-VendorId>
+ <Implementation-Vendor>Red Hat Middleware LLC</Implementation-Vendor>
+ <Implementation-URL>http://labs.jboss.org/portal/jbosssecurity/</Implementation-URL>
+ </manifestEntries>
+ </archive>
+ <descriptors>
+ <descriptor>bin.xml</descriptor>
+ <descriptor>sources.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <inherited>false</inherited>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: xmlkey/trunk/assembly/sources.xml
===================================================================
--- xmlkey/trunk/assembly/sources.xml (rev 0)
+++ xmlkey/trunk/assembly/sources.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,22 @@
+<assembly>
+ <id>sources</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/../common/src/main/java</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../xkms/src/main/java</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../skms/src/main/java</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+
+</assembly>
Added: xmlkey/trunk/common/.classpath
===================================================================
--- xmlkey/trunk/common/.classpath (rev 0)
+++ xmlkey/trunk/common/.classpath 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar"/>
+ <classpathentry kind="output" path="target-eclipse"/>
+</classpath>
Added: xmlkey/trunk/common/.project
===================================================================
--- xmlkey/trunk/common/.project (rev 0)
+++ xmlkey/trunk/common/.project 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>common</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: xmlkey/trunk/common/pom.xml
===================================================================
--- xmlkey/trunk/common/pom.xml (rev 0)
+++ xmlkey/trunk/common/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,86 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-xmlkey-common</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss xmlkey-common </name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss XKMS.</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossidentity/xmlkey/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/jbossidentity/xmlkey/trunk</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossidentity/xmlkey/trunk</url>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/**TestCase.java</include>
+ </includes>
+ <forkMode>pertest</forkMode>
+ <argLine>-Djava.endorsed.dirs=${basedir}/src/test/resources/endorsed</argLine>
+ <useFile>false</useFile>
+ <trimStackTrace>false</trimStackTrace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>apache-log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>apache-xmlsec</groupId>
+ <artifactId>xmlsec</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaf</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>codehaus-stax</groupId>
+ <artifactId>stax</artifactId>
+ <version>1.1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/JBossJAXBUtil.java
===================================================================
--- xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/JBossJAXBUtil.java (rev 0)
+++ xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/JBossJAXBUtil.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,95 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.xmlkey.common;
+
+import java.net.URL;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+
+/**
+ * Utility for JAXB2
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jan 7, 2009
+ */
+public class JBossJAXBUtil
+{
+ /**
+ * Get the JAXB Marshaller
+ * @param pkgName The package name for the jaxb context
+ * @param schemaLocation location of the schema to validate against
+ * @return Marshaller
+ * @throws Exception
+ */
+ public static Marshaller getValidatingMarshaller(String pkgName, String schemaLocation)
+ throws Exception
+ {
+ if(pkgName == null)
+ throw new IllegalArgumentException("pkgName is null");
+
+ JAXBContext jc = JAXBContext.newInstance(pkgName);
+ Marshaller marshaller = jc.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
+ //Validate against schema
+ ClassLoader tcl = SecurityActions.getContextClassLoader();
+ URL schemaURL = tcl.getResource(schemaLocation);
+ if(schemaURL == null)
+ throw new IllegalStateException("Schema URL is null:" + schemaLocation);
+ SchemaFactory scFact = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = scFact.newSchema(schemaURL);
+ marshaller.setSchema(schema);
+
+ return marshaller;
+ }
+
+ /**
+ * Get the JAXB Unmarshaller
+ * @param pkgName The package name for the jaxb context
+ * @param schemaLocation location of the schema to validate against
+ * @param schemaValidating need a validating schema unmarshaller?
+ * @return unmarshaller
+ * @throws Exception
+ */
+ public static Unmarshaller getValidatingUnmarshaller(String pkgName, String schemaLocation)
+ throws Exception
+ {
+ if(pkgName == null)
+ throw new IllegalArgumentException("pkgName is null");
+
+ JAXBContext jc = JAXBContext.newInstance(pkgName);
+ Unmarshaller unmarshaller = jc.createUnmarshaller();
+ //Validate against schema
+ ClassLoader tcl = SecurityActions.getContextClassLoader();
+ URL schemaURL = tcl.getResource(schemaLocation);
+ if(schemaURL == null)
+ throw new IllegalStateException("Schema URL is null:" + schemaLocation);
+ SchemaFactory scFact = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = scFact.newSchema(schemaURL);
+ unmarshaller.setSchema(schema);
+
+ return unmarshaller;
+ }
+}
\ No newline at end of file
Added: xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/SecurityActions.java
===================================================================
--- xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/SecurityActions.java (rev 0)
+++ xmlkey/trunk/common/src/main/java/org/jboss/identity/xmlkey/common/SecurityActions.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.xmlkey.common;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+/**
+ * Privileged Blocks
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 9, 2008
+ */
+class SecurityActions
+{
+ /**
+ * Get the Thread Context ClassLoader
+ * @return
+ */
+ static ClassLoader getContextClassLoader()
+ {
+ return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
+ {
+ public ClassLoader run()
+ {
+ return Thread.currentThread().getContextClassLoader();
+ }
+ });
+ }
+}
Added: xmlkey/trunk/parent/pom.xml
===================================================================
--- xmlkey/trunk/parent/pom.xml (rev 0)
+++ xmlkey/trunk/parent/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,110 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>4</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>JBoss XMLKey Federation- Parent</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss XMLKey is an implementation of XML Based Key Management</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossidentity/xmlkey/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossidentity/xmlkey/trunk</developerConnection>
+ </scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tagBase>https://svn.jboss.org/repos/jbossidentity/xmlkey/tags</tagBase>
+ </configuration>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <testFailureIgnore>true</testFailureIgnore>
+ <includes>
+ <include>**/**TestCase.java</include>
+ </includes>
+ <forkMode>pertest</forkMode>
+ <argLine>${surefire.jvm.args}</argLine>
+ <useFile>false</useFile>
+ <trimStackTrace>false</trimStackTrace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>apache-log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.1.9</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-xmlsec</groupId>
+ <artifactId>xmlsec</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
Added: xmlkey/trunk/pom.xml
===================================================================
--- xmlkey/trunk/pom.xml (rev 0)
+++ xmlkey/trunk/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-pom</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss XMLKey- Aggregator</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss XMLKey is a project for XML Based Key Management</description>
+
+ <modules>
+ <module>parent</module>
+ <module>common</module>
+ <module>xkms</module>
+ <module>skms</module>
+ <module>assembly</module>
+ </modules>
+</project>
Added: xmlkey/trunk/skms/.classpath
===================================================================
--- xmlkey/trunk/skms/.classpath (rev 0)
+++ xmlkey/trunk/skms/.classpath 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/test/resources"/>
+ <classpathentry kind="src" path="src/test/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="lib" path="target/jboss-skms-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="lib" path="target/jboss-skms-1.0.0-SNAPSHOT.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/common"/>
+ <classpathentry kind="output" path="target-eclipse"/>
+</classpath>
Added: xmlkey/trunk/skms/.project
===================================================================
--- xmlkey/trunk/skms/.project (rev 0)
+++ xmlkey/trunk/skms/.project 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>skms</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: xmlkey/trunk/skms/pom.xml
===================================================================
--- xmlkey/trunk/skms/pom.xml (rev 0)
+++ xmlkey/trunk/skms/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,91 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-skms</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss skms </name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss SKMS.</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossidentity/xmlkey/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/jbossidentity/xmlkey/trunk</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossidentity/xmlkey/trunk</url>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/**TestCase.java</include>
+ </includes>
+ <forkMode>pertest</forkMode>
+ <argLine>-Djava.endorsed.dirs=${basedir}/src/test/resources/endorsed</argLine>
+ <useFile>false</useFile>
+ <trimStackTrace>false</trimStackTrace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-xmlsec-model</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>apache-xmlsec</groupId>
+ <artifactId>xmlsec</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaf</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>codehaus-stax</groupId>
+ <artifactId>stax</artifactId>
+ <version>1.1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: xmlkey/trunk/xkms/.classpath
===================================================================
--- xmlkey/trunk/xkms/.classpath (rev 0)
+++ xmlkey/trunk/xkms/.classpath 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" path="src/test/resources"/>
+ <classpathentry kind="src" path="src/test/java"/>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="lib" path="target/jboss-xkms-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="lib" path="target/jboss-xkms-1.0.0-SNAPSHOT.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/jboss-identity-xmlsec-model/1.0.0-SNAPSHOT/jboss-identity-xmlsec-model-1.0.0-SNAPSHOT.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/common"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaf/activation/1.1/activation-1.1.jar"/>
+ <classpathentry kind="output" path="target-eclipse"/>
+</classpath>
Added: xmlkey/trunk/xkms/.project
===================================================================
--- xmlkey/trunk/xkms/.project (rev 0)
+++ xmlkey/trunk/xkms/.project 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>xkms</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: xmlkey/trunk/xkms/pom.xml
===================================================================
--- xmlkey/trunk/xkms/pom.xml (rev 0)
+++ xmlkey/trunk/xkms/pom.xml 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,96 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-xkms</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss xkms </name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss XKMS.</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossidentity/xmlkey/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/jbossidentity/xmlkey/trunk</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossidentity/xkms/trunk</url>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/**TestCase.java</include>
+ </includes>
+ <forkMode>pertest</forkMode>
+ <argLine>-Djava.endorsed.dirs=${basedir}/src/test/resources/endorsed</argLine>
+ <useFile>false</useFile>
+ <trimStackTrace>false</trimStackTrace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-xmlsec-model</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-xmlkey-common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>apache-xmlsec</groupId>
+ <artifactId>xmlsec</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaf</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>codehaus-stax</groupId>
+ <artifactId>stax</artifactId>
+ <version>1.1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/AuthenticationType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/AuthenticationType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/AuthenticationType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,97 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 AuthenticationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="AuthenticationType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBindingAuthentication" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}NotBoundAuthentication" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AuthenticationType", propOrder = {
+ "keyBindingAuthentication",
+ "notBoundAuthentication"
+})
+public class AuthenticationType {
+
+ @XmlElement(name = "KeyBindingAuthentication")
+ protected KeyBindingAuthenticationType keyBindingAuthentication;
+ @XmlElement(name = "NotBoundAuthentication")
+ protected NotBoundAuthenticationType notBoundAuthentication;
+
+ /**
+ * Gets the value of the keyBindingAuthentication property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyBindingAuthenticationType }
+ *
+ */
+ public KeyBindingAuthenticationType getKeyBindingAuthentication() {
+ return keyBindingAuthentication;
+ }
+
+ /**
+ * Sets the value of the keyBindingAuthentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyBindingAuthenticationType }
+ *
+ */
+ public void setKeyBindingAuthentication(KeyBindingAuthenticationType value) {
+ this.keyBindingAuthentication = value;
+ }
+
+ /**
+ * Gets the value of the notBoundAuthentication property.
+ *
+ * @return
+ * possible object is
+ * {@link NotBoundAuthenticationType }
+ *
+ */
+ public NotBoundAuthenticationType getNotBoundAuthentication() {
+ return notBoundAuthentication;
+ }
+
+ /**
+ * Sets the value of the notBoundAuthentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link NotBoundAuthenticationType }
+ *
+ */
+ public void setNotBoundAuthentication(NotBoundAuthenticationType value) {
+ this.notBoundAuthentication = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,96 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 CompoundRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="CompoundRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <choice maxOccurs="unbounded">
+ * <element ref="{http://www.w3.org/2002/03/xkms#}LocateRequest"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ValidateRequest"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RegisterRequest"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ReissueRequest"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RecoverRequest"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RevokeRequest"/>
+ * </choice>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CompoundRequestType", propOrder = {
+ "locateRequestOrValidateRequestOrRegisterRequest"
+})
+public class CompoundRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElements({
+ @XmlElement(name = "RecoverRequest", type = RecoverRequestType.class),
+ @XmlElement(name = "RegisterRequest", type = RegisterRequestType.class),
+ @XmlElement(name = "ValidateRequest", type = ValidateRequestType.class),
+ @XmlElement(name = "LocateRequest", type = LocateRequestType.class),
+ @XmlElement(name = "RevokeRequest", type = RevokeRequestType.class),
+ @XmlElement(name = "ReissueRequest", type = ReissueRequestType.class)
+ })
+ protected List<RequestAbstractType> locateRequestOrValidateRequestOrRegisterRequest;
+
+ /**
+ * Gets the value of the locateRequestOrValidateRequestOrRegisterRequest 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 locateRequestOrValidateRequestOrRegisterRequest property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLocateRequestOrValidateRequestOrRegisterRequest().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RecoverRequestType }
+ * {@link RegisterRequestType }
+ * {@link ValidateRequestType }
+ * {@link LocateRequestType }
+ * {@link RevokeRequestType }
+ * {@link ReissueRequestType }
+ *
+ *
+ */
+ public List<RequestAbstractType> getLocateRequestOrValidateRequestOrRegisterRequest() {
+ if (locateRequestOrValidateRequestOrRegisterRequest == null) {
+ locateRequestOrValidateRequestOrRegisterRequest = new ArrayList<RequestAbstractType>();
+ }
+ return this.locateRequestOrValidateRequestOrRegisterRequest;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/CompoundResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,96 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 CompoundResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="CompoundResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{http://www.w3.org/2002/03/xkms#}LocateResult"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ValidateResult"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RegisterResult"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ReissueResult"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RecoverResult"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RevokeResult"/>
+ * </choice>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CompoundResultType", propOrder = {
+ "locateResultOrValidateResultOrRegisterResult"
+})
+public class CompoundResultType
+ extends ResultType
+{
+
+ @XmlElements({
+ @XmlElement(name = "RecoverResult", type = RecoverResultType.class),
+ @XmlElement(name = "LocateResult", type = LocateResultType.class),
+ @XmlElement(name = "RegisterResult", type = RegisterResultType.class),
+ @XmlElement(name = "ReissueResult", type = ReissueResultType.class),
+ @XmlElement(name = "RevokeResult", type = RevokeResultType.class),
+ @XmlElement(name = "ValidateResult", type = ValidateResultType.class)
+ })
+ protected List<ResultType> locateResultOrValidateResultOrRegisterResult;
+
+ /**
+ * Gets the value of the locateResultOrValidateResultOrRegisterResult 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 locateResultOrValidateResultOrRegisterResult property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLocateResultOrValidateResultOrRegisterResult().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RecoverResultType }
+ * {@link LocateResultType }
+ * {@link RegisterResultType }
+ * {@link ReissueResultType }
+ * {@link RevokeResultType }
+ * {@link ValidateResultType }
+ *
+ *
+ */
+ public List<ResultType> getLocateResultOrValidateResultOrRegisterResult() {
+ if (locateResultOrValidateResultOrRegisterResult == null) {
+ locateResultOrValidateResultOrRegisterResult = new ArrayList<ResultType>();
+ }
+ return this.locateResultOrValidateResultOrRegisterResult;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAbstractType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAbstractType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAbstractType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,181 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.KeyInfoType;
+
+
+/**
+ * <p>Java class for KeyBindingAbstractType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="KeyBindingAbstractType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyUsage" maxOccurs="3" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}UseKeyWith" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "KeyBindingAbstractType", propOrder = {
+ "keyInfo",
+ "keyUsage",
+ "useKeyWith"
+})
+@XmlSeeAlso({
+ QueryKeyBindingType.class,
+ PrototypeKeyBindingType.class,
+ UnverifiedKeyBindingType.class
+})
+public abstract class KeyBindingAbstractType {
+
+ @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#")
+ protected KeyInfoType keyInfo;
+ @XmlElement(name = "KeyUsage")
+ protected List<String> keyUsage;
+ @XmlElement(name = "UseKeyWith")
+ protected List<UseKeyWithType> useKeyWith;
+ @XmlAttribute(name = "Id")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * 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 keyUsage 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 keyUsage property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyUsage().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getKeyUsage() {
+ if (keyUsage == null) {
+ keyUsage = new ArrayList<String>();
+ }
+ return this.keyUsage;
+ }
+
+ /**
+ * Gets the value of the useKeyWith 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 useKeyWith property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUseKeyWith().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link UseKeyWithType }
+ *
+ *
+ */
+ public List<UseKeyWithType> getUseKeyWith() {
+ if (useKeyWith == null) {
+ useKeyWith = new ArrayList<UseKeyWithType>();
+ }
+ return this.useKeyWith;
+ }
+
+ /**
+ * 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;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAuthenticationType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAuthenticationType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingAuthenticationType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.SignatureType;
+
+
+/**
+ * <p>Java class for KeyBindingAuthenticationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="KeyBindingAuthenticationType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "KeyBindingAuthenticationType", propOrder = {
+ "signature"
+})
+public class KeyBindingAuthenticationType {
+
+ @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
+ protected SignatureType signature;
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureType }
+ *
+ */
+ public SignatureType getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureType }
+ *
+ */
+ public void setSignature(SignatureType value) {
+ this.signature = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/KeyBindingType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 KeyBindingType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="KeyBindingType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}UnverifiedKeyBindingType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Status"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "KeyBindingType", propOrder = {
+ "status"
+})
+public class KeyBindingType
+ extends UnverifiedKeyBindingType
+{
+
+ @XmlElement(name = "Status", required = true)
+ protected StatusType status;
+
+ /**
+ * Gets the value of the status property.
+ *
+ * @return
+ * possible object is
+ * {@link StatusType }
+ *
+ */
+ public StatusType getStatus() {
+ return status;
+ }
+
+ /**
+ * Sets the value of the status property.
+ *
+ * @param value
+ * allowed object is
+ * {@link StatusType }
+ *
+ */
+ public void setStatus(StatusType value) {
+ this.status = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 LocateRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="LocateRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}QueryKeyBinding"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "LocateRequestType", propOrder = {
+ "queryKeyBinding"
+})
+public class LocateRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "QueryKeyBinding", required = true)
+ protected QueryKeyBindingType queryKeyBinding;
+
+ /**
+ * Gets the value of the queryKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link QueryKeyBindingType }
+ *
+ */
+ public QueryKeyBindingType getQueryKeyBinding() {
+ return queryKeyBinding;
+ }
+
+ /**
+ * Sets the value of the queryKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link QueryKeyBindingType }
+ *
+ */
+ public void setQueryKeyBinding(QueryKeyBindingType value) {
+ this.queryKeyBinding = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/LocateResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 LocateResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="LocateResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}UnverifiedKeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "LocateResultType", propOrder = {
+ "unverifiedKeyBinding"
+})
+public class LocateResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "UnverifiedKeyBinding")
+ protected List<UnverifiedKeyBindingType> unverifiedKeyBinding;
+
+ /**
+ * Gets the value of the unverifiedKeyBinding 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 unverifiedKeyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUnverifiedKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link UnverifiedKeyBindingType }
+ *
+ *
+ */
+ public List<UnverifiedKeyBindingType> getUnverifiedKeyBinding() {
+ if (unverifiedKeyBinding == null) {
+ unverifiedKeyBinding = new ArrayList<UnverifiedKeyBindingType>();
+ }
+ return this.unverifiedKeyBinding;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageAbstractType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageAbstractType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageAbstractType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,227 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.SignatureType;
+
+
+/**
+ * <p>Java class for MessageAbstractType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="MessageAbstractType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}MessageExtension" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}OpaqueClientData" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * <attribute name="Service" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MessageAbstractType", propOrder = {
+ "signature",
+ "messageExtension",
+ "opaqueClientData"
+})
+@XmlSeeAlso({
+ ResultType.class,
+ RequestAbstractType.class
+})
+public abstract class MessageAbstractType {
+
+ @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#")
+ protected SignatureType signature;
+ @XmlElement(name = "MessageExtension")
+ protected List<MessageExtensionAbstractType> messageExtension;
+ @XmlElement(name = "OpaqueClientData")
+ protected OpaqueClientDataType opaqueClientData;
+ @XmlAttribute(name = "Id", required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+ @XmlAttribute(name = "Service", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String service;
+ @XmlAttribute(name = "Nonce")
+ protected byte[] nonce;
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureType }
+ *
+ */
+ public SignatureType getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureType }
+ *
+ */
+ public void setSignature(SignatureType value) {
+ this.signature = value;
+ }
+
+ /**
+ * Gets the value of the messageExtension 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 messageExtension property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMessageExtension().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link MessageExtensionAbstractType }
+ *
+ *
+ */
+ public List<MessageExtensionAbstractType> getMessageExtension() {
+ if (messageExtension == null) {
+ messageExtension = new ArrayList<MessageExtensionAbstractType>();
+ }
+ return this.messageExtension;
+ }
+
+ /**
+ * Gets the value of the opaqueClientData property.
+ *
+ * @return
+ * possible object is
+ * {@link OpaqueClientDataType }
+ *
+ */
+ public OpaqueClientDataType getOpaqueClientData() {
+ return opaqueClientData;
+ }
+
+ /**
+ * Sets the value of the opaqueClientData property.
+ *
+ * @param value
+ * allowed object is
+ * {@link OpaqueClientDataType }
+ *
+ */
+ public void setOpaqueClientData(OpaqueClientDataType value) {
+ this.opaqueClientData = 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 service property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setService(String value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the nonce property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getNonce() {
+ return nonce;
+ }
+
+ /**
+ * Sets the value of the nonce property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setNonce(byte[] value) {
+ this.nonce = ((byte[]) value);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageExtensionAbstractType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageExtensionAbstractType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/MessageExtensionAbstractType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,37 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for MessageExtensionAbstractType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="MessageExtensionAbstractType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MessageExtensionAbstractType")
+public abstract class MessageExtensionAbstractType {
+
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/NotBoundAuthenticationType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/NotBoundAuthenticationType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/NotBoundAuthenticationType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,92 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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;
+
+
+/**
+ * <p>Java class for NotBoundAuthenticationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="NotBoundAuthenticationType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="Protocol" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Value" use="required" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "NotBoundAuthenticationType")
+public class NotBoundAuthenticationType {
+
+ @XmlAttribute(name = "Protocol", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String protocol;
+ @XmlAttribute(name = "Value", required = true)
+ protected byte[] value;
+
+ /**
+ * Gets the value of the protocol property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getProtocol() {
+ return protocol;
+ }
+
+ /**
+ * Sets the value of the protocol property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setProtocol(String value) {
+ this.protocol = value;
+ }
+
+ /**
+ * 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);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ObjectFactory.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ObjectFactory.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ObjectFactory.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,875 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.SignatureValueType;
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.w3._2002._03.xkms_ 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 _ValidReason_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ValidReason");
+ private final static QName _UseKeyWith_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "UseKeyWith");
+ private final static QName _ReissueRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ReissueRequest");
+ private final static QName _RegisterRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RegisterRequest");
+ private final static QName _D_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "D");
+ private final static QName _ResponseMechanism_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ResponseMechanism");
+ private final static QName _CompoundResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "CompoundResult");
+ private final static QName _ValidateResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ValidateResult");
+ private final static QName _KeyUsage_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "KeyUsage");
+ private final static QName _ValidityInterval_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ValidityInterval");
+ private final static QName _DQ_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "DQ");
+ private final static QName _Authentication_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Authentication");
+ private final static QName _RevokeKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RevokeKeyBinding");
+ private final static QName _PrototypeKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "PrototypeKeyBinding");
+ private final static QName _ProofOfPossession_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ProofOfPossession");
+ private final static QName _ValidateRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ValidateRequest");
+ private final static QName _DP_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "DP");
+ private final static QName _IndeterminateReason_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "IndeterminateReason");
+ private final static QName _RevokeResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RevokeResult");
+ private final static QName _PrivateKey_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "PrivateKey");
+ private final static QName _OpaqueClientData_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "OpaqueClientData");
+ private final static QName _Exponent_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Exponent");
+ private final static QName _RegisterResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RegisterResult");
+ private final static QName _MessageExtension_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "MessageExtension");
+ private final static QName _PendingNotification_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "PendingNotification");
+ private final static QName _RevokeRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RevokeRequest");
+ private final static QName _ReissueKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ReissueKeyBinding");
+ private final static QName _RSAKeyPair_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RSAKeyPair");
+ private final static QName _RecoverKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RecoverKeyBinding");
+ private final static QName _RevocationCode_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RevocationCode");
+ private final static QName _RespondWith_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RespondWith");
+ private final static QName _KeyBindingAuthentication_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "KeyBindingAuthentication");
+ private final static QName _LocateRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "LocateRequest");
+ private final static QName _RecoverResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RecoverResult");
+ private final static QName _QueryKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "QueryKeyBinding");
+ private final static QName _CompoundRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "CompoundRequest");
+ private final static QName _LocateResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "LocateResult");
+ private final static QName _OpaqueData_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "OpaqueData");
+ private final static QName _PendingRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "PendingRequest");
+ private final static QName _RequestSignatureValue_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RequestSignatureValue");
+ private final static QName _Q_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Q");
+ private final static QName _InvalidReason_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "InvalidReason");
+ private final static QName _RevocationCodeIdentifier_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RevocationCodeIdentifier");
+ private final static QName _UnverifiedKeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "UnverifiedKeyBinding");
+ private final static QName _P_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "P");
+ private final static QName _ReissueResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "ReissueResult");
+ private final static QName _NotBoundAuthentication_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "NotBoundAuthentication");
+ private final static QName _TimeInstant_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "TimeInstant");
+ private final static QName _StatusRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "StatusRequest");
+ private final static QName _InverseQ_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "InverseQ");
+ private final static QName _Status_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Status");
+ private final static QName _KeyBinding_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "KeyBinding");
+ private final static QName _RecoverRequest_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "RecoverRequest");
+ private final static QName _Result_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Result");
+ private final static QName _Modulus_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "Modulus");
+ private final static QName _StatusResult_QNAME = new QName("http://www.w3.org/2002/03/xkms#", "StatusResult");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2002._03.xkms_
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link ReissueResultType }
+ *
+ */
+ public ReissueResultType createReissueResultType() {
+ return new ReissueResultType();
+ }
+
+ /**
+ * Create an instance of {@link CompoundRequestType }
+ *
+ */
+ public CompoundRequestType createCompoundRequestType() {
+ return new CompoundRequestType();
+ }
+
+ /**
+ * Create an instance of {@link ResultType }
+ *
+ */
+ public ResultType createResultType() {
+ return new ResultType();
+ }
+
+ /**
+ * Create an instance of {@link RegisterResultType }
+ *
+ */
+ public RegisterResultType createRegisterResultType() {
+ return new RegisterResultType();
+ }
+
+ /**
+ * Create an instance of {@link RecoverRequestType }
+ *
+ */
+ public RecoverRequestType createRecoverRequestType() {
+ return new RecoverRequestType();
+ }
+
+ /**
+ * Create an instance of {@link RSAKeyPairType }
+ *
+ */
+ public RSAKeyPairType createRSAKeyPairType() {
+ return new RSAKeyPairType();
+ }
+
+ /**
+ * Create an instance of {@link OpaqueClientDataType }
+ *
+ */
+ public OpaqueClientDataType createOpaqueClientDataType() {
+ return new OpaqueClientDataType();
+ }
+
+ /**
+ * Create an instance of {@link RegisterRequestType }
+ *
+ */
+ public RegisterRequestType createRegisterRequestType() {
+ return new RegisterRequestType();
+ }
+
+ /**
+ * Create an instance of {@link StatusRequestType }
+ *
+ */
+ public StatusRequestType createStatusRequestType() {
+ return new StatusRequestType();
+ }
+
+ /**
+ * Create an instance of {@link PendingNotificationType }
+ *
+ */
+ public PendingNotificationType createPendingNotificationType() {
+ return new PendingNotificationType();
+ }
+
+ /**
+ * Create an instance of {@link UnverifiedKeyBindingType }
+ *
+ */
+ public UnverifiedKeyBindingType createUnverifiedKeyBindingType() {
+ return new UnverifiedKeyBindingType();
+ }
+
+ /**
+ * Create an instance of {@link ValidateRequestType }
+ *
+ */
+ public ValidateRequestType createValidateRequestType() {
+ return new ValidateRequestType();
+ }
+
+ /**
+ * Create an instance of {@link AuthenticationType }
+ *
+ */
+ public AuthenticationType createAuthenticationType() {
+ return new AuthenticationType();
+ }
+
+ /**
+ * Create an instance of {@link ProofOfPossessionType }
+ *
+ */
+ public ProofOfPossessionType createProofOfPossessionType() {
+ return new ProofOfPossessionType();
+ }
+
+ /**
+ * Create an instance of {@link KeyBindingType }
+ *
+ */
+ public KeyBindingType createKeyBindingType() {
+ return new KeyBindingType();
+ }
+
+ /**
+ * Create an instance of {@link LocateRequestType }
+ *
+ */
+ public LocateRequestType createLocateRequestType() {
+ return new LocateRequestType();
+ }
+
+ /**
+ * Create an instance of {@link PendingRequestType }
+ *
+ */
+ public PendingRequestType createPendingRequestType() {
+ return new PendingRequestType();
+ }
+
+ /**
+ * Create an instance of {@link RevokeRequestType }
+ *
+ */
+ public RevokeRequestType createRevokeRequestType() {
+ return new RevokeRequestType();
+ }
+
+ /**
+ * Create an instance of {@link QueryKeyBindingType }
+ *
+ */
+ public QueryKeyBindingType createQueryKeyBindingType() {
+ return new QueryKeyBindingType();
+ }
+
+ /**
+ * Create an instance of {@link CompoundResultType }
+ *
+ */
+ public CompoundResultType createCompoundResultType() {
+ return new CompoundResultType();
+ }
+
+ /**
+ * Create an instance of {@link RevokeResultType }
+ *
+ */
+ public RevokeResultType createRevokeResultType() {
+ return new RevokeResultType();
+ }
+
+ /**
+ * Create an instance of {@link StatusResultType }
+ *
+ */
+ public StatusResultType createStatusResultType() {
+ return new StatusResultType();
+ }
+
+ /**
+ * Create an instance of {@link KeyBindingAuthenticationType }
+ *
+ */
+ public KeyBindingAuthenticationType createKeyBindingAuthenticationType() {
+ return new KeyBindingAuthenticationType();
+ }
+
+ /**
+ * Create an instance of {@link RecoverResultType }
+ *
+ */
+ public RecoverResultType createRecoverResultType() {
+ return new RecoverResultType();
+ }
+
+ /**
+ * Create an instance of {@link UseKeyWithType }
+ *
+ */
+ public UseKeyWithType createUseKeyWithType() {
+ return new UseKeyWithType();
+ }
+
+ /**
+ * Create an instance of {@link StatusType }
+ *
+ */
+ public StatusType createStatusType() {
+ return new StatusType();
+ }
+
+ /**
+ * Create an instance of {@link ValidateResultType }
+ *
+ */
+ public ValidateResultType createValidateResultType() {
+ return new ValidateResultType();
+ }
+
+ /**
+ * Create an instance of {@link ValidityIntervalType }
+ *
+ */
+ public ValidityIntervalType createValidityIntervalType() {
+ return new ValidityIntervalType();
+ }
+
+ /**
+ * Create an instance of {@link PrototypeKeyBindingType }
+ *
+ */
+ public PrototypeKeyBindingType createPrototypeKeyBindingType() {
+ return new PrototypeKeyBindingType();
+ }
+
+ /**
+ * Create an instance of {@link LocateResultType }
+ *
+ */
+ public LocateResultType createLocateResultType() {
+ return new LocateResultType();
+ }
+
+ /**
+ * Create an instance of {@link ReissueRequestType }
+ *
+ */
+ public ReissueRequestType createReissueRequestType() {
+ return new ReissueRequestType();
+ }
+
+ /**
+ * Create an instance of {@link NotBoundAuthenticationType }
+ *
+ */
+ public NotBoundAuthenticationType createNotBoundAuthenticationType() {
+ return new NotBoundAuthenticationType();
+ }
+
+ /**
+ * Create an instance of {@link PrivateKeyType }
+ *
+ */
+ public PrivateKeyType createPrivateKeyType() {
+ return new PrivateKeyType();
+ }
+
+ /**
+ * Create an instance of {@link TimeInstantType }
+ *
+ */
+ public TimeInstantType createTimeInstantType() {
+ return new TimeInstantType();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ValidReason")
+ public JAXBElement<String> createValidReason(String value) {
+ return new JAXBElement<String>(_ValidReason_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link UseKeyWithType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "UseKeyWith")
+ public JAXBElement<UseKeyWithType> createUseKeyWith(UseKeyWithType value) {
+ return new JAXBElement<UseKeyWithType>(_UseKeyWith_QNAME, UseKeyWithType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ReissueRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ReissueRequest")
+ public JAXBElement<ReissueRequestType> createReissueRequest(ReissueRequestType value) {
+ return new JAXBElement<ReissueRequestType>(_ReissueRequest_QNAME, ReissueRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RegisterRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RegisterRequest")
+ public JAXBElement<RegisterRequestType> createRegisterRequest(RegisterRequestType value) {
+ return new JAXBElement<RegisterRequestType>(_RegisterRequest_QNAME, RegisterRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "D")
+ public JAXBElement<byte[]> createD(byte[] value) {
+ return new JAXBElement<byte[]>(_D_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ResponseMechanism")
+ public JAXBElement<String> createResponseMechanism(String value) {
+ return new JAXBElement<String>(_ResponseMechanism_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link CompoundResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "CompoundResult")
+ public JAXBElement<CompoundResultType> createCompoundResult(CompoundResultType value) {
+ return new JAXBElement<CompoundResultType>(_CompoundResult_QNAME, CompoundResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ValidateResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ValidateResult")
+ public JAXBElement<ValidateResultType> createValidateResult(ValidateResultType value) {
+ return new JAXBElement<ValidateResultType>(_ValidateResult_QNAME, ValidateResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "KeyUsage")
+ public JAXBElement<String> createKeyUsage(String value) {
+ return new JAXBElement<String>(_KeyUsage_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ValidityIntervalType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ValidityInterval")
+ public JAXBElement<ValidityIntervalType> createValidityInterval(ValidityIntervalType value) {
+ return new JAXBElement<ValidityIntervalType>(_ValidityInterval_QNAME, ValidityIntervalType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "DQ")
+ public JAXBElement<byte[]> createDQ(byte[] value) {
+ return new JAXBElement<byte[]>(_DQ_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AuthenticationType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Authentication")
+ public JAXBElement<AuthenticationType> createAuthentication(AuthenticationType value) {
+ return new JAXBElement<AuthenticationType>(_Authentication_QNAME, AuthenticationType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link KeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RevokeKeyBinding")
+ public JAXBElement<KeyBindingType> createRevokeKeyBinding(KeyBindingType value) {
+ return new JAXBElement<KeyBindingType>(_RevokeKeyBinding_QNAME, KeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PrototypeKeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "PrototypeKeyBinding")
+ public JAXBElement<PrototypeKeyBindingType> createPrototypeKeyBinding(PrototypeKeyBindingType value) {
+ return new JAXBElement<PrototypeKeyBindingType>(_PrototypeKeyBinding_QNAME, PrototypeKeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ProofOfPossessionType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ProofOfPossession")
+ public JAXBElement<ProofOfPossessionType> createProofOfPossession(ProofOfPossessionType value) {
+ return new JAXBElement<ProofOfPossessionType>(_ProofOfPossession_QNAME, ProofOfPossessionType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ValidateRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ValidateRequest")
+ public JAXBElement<ValidateRequestType> createValidateRequest(ValidateRequestType value) {
+ return new JAXBElement<ValidateRequestType>(_ValidateRequest_QNAME, ValidateRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "DP")
+ public JAXBElement<byte[]> createDP(byte[] value) {
+ return new JAXBElement<byte[]>(_DP_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "IndeterminateReason")
+ public JAXBElement<String> createIndeterminateReason(String value) {
+ return new JAXBElement<String>(_IndeterminateReason_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RevokeResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RevokeResult")
+ public JAXBElement<RevokeResultType> createRevokeResult(RevokeResultType value) {
+ return new JAXBElement<RevokeResultType>(_RevokeResult_QNAME, RevokeResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PrivateKeyType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "PrivateKey")
+ public JAXBElement<PrivateKeyType> createPrivateKey(PrivateKeyType value) {
+ return new JAXBElement<PrivateKeyType>(_PrivateKey_QNAME, PrivateKeyType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link OpaqueClientDataType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "OpaqueClientData")
+ public JAXBElement<OpaqueClientDataType> createOpaqueClientData(OpaqueClientDataType value) {
+ return new JAXBElement<OpaqueClientDataType>(_OpaqueClientData_QNAME, OpaqueClientDataType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Exponent")
+ public JAXBElement<byte[]> createExponent(byte[] value) {
+ return new JAXBElement<byte[]>(_Exponent_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RegisterResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RegisterResult")
+ public JAXBElement<RegisterResultType> createRegisterResult(RegisterResultType value) {
+ return new JAXBElement<RegisterResultType>(_RegisterResult_QNAME, RegisterResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link MessageExtensionAbstractType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "MessageExtension")
+ public JAXBElement<MessageExtensionAbstractType> createMessageExtension(MessageExtensionAbstractType value) {
+ return new JAXBElement<MessageExtensionAbstractType>(_MessageExtension_QNAME, MessageExtensionAbstractType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PendingNotificationType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "PendingNotification")
+ public JAXBElement<PendingNotificationType> createPendingNotification(PendingNotificationType value) {
+ return new JAXBElement<PendingNotificationType>(_PendingNotification_QNAME, PendingNotificationType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RevokeRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RevokeRequest")
+ public JAXBElement<RevokeRequestType> createRevokeRequest(RevokeRequestType value) {
+ return new JAXBElement<RevokeRequestType>(_RevokeRequest_QNAME, RevokeRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link KeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ReissueKeyBinding")
+ public JAXBElement<KeyBindingType> createReissueKeyBinding(KeyBindingType value) {
+ return new JAXBElement<KeyBindingType>(_ReissueKeyBinding_QNAME, KeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RSAKeyPairType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RSAKeyPair")
+ public JAXBElement<RSAKeyPairType> createRSAKeyPair(RSAKeyPairType value) {
+ return new JAXBElement<RSAKeyPairType>(_RSAKeyPair_QNAME, RSAKeyPairType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link KeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RecoverKeyBinding")
+ public JAXBElement<KeyBindingType> createRecoverKeyBinding(KeyBindingType value) {
+ return new JAXBElement<KeyBindingType>(_RecoverKeyBinding_QNAME, KeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RevocationCode")
+ public JAXBElement<byte[]> createRevocationCode(byte[] value) {
+ return new JAXBElement<byte[]>(_RevocationCode_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RespondWith")
+ public JAXBElement<String> createRespondWith(String value) {
+ return new JAXBElement<String>(_RespondWith_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link KeyBindingAuthenticationType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "KeyBindingAuthentication")
+ public JAXBElement<KeyBindingAuthenticationType> createKeyBindingAuthentication(KeyBindingAuthenticationType value) {
+ return new JAXBElement<KeyBindingAuthenticationType>(_KeyBindingAuthentication_QNAME, KeyBindingAuthenticationType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link LocateRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "LocateRequest")
+ public JAXBElement<LocateRequestType> createLocateRequest(LocateRequestType value) {
+ return new JAXBElement<LocateRequestType>(_LocateRequest_QNAME, LocateRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RecoverResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RecoverResult")
+ public JAXBElement<RecoverResultType> createRecoverResult(RecoverResultType value) {
+ return new JAXBElement<RecoverResultType>(_RecoverResult_QNAME, RecoverResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link QueryKeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "QueryKeyBinding")
+ public JAXBElement<QueryKeyBindingType> createQueryKeyBinding(QueryKeyBindingType value) {
+ return new JAXBElement<QueryKeyBindingType>(_QueryKeyBinding_QNAME, QueryKeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link CompoundRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "CompoundRequest")
+ public JAXBElement<CompoundRequestType> createCompoundRequest(CompoundRequestType value) {
+ return new JAXBElement<CompoundRequestType>(_CompoundRequest_QNAME, CompoundRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link LocateResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "LocateResult")
+ public JAXBElement<LocateResultType> createLocateResult(LocateResultType value) {
+ return new JAXBElement<LocateResultType>(_LocateResult_QNAME, LocateResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "OpaqueData")
+ public JAXBElement<byte[]> createOpaqueData(byte[] value) {
+ return new JAXBElement<byte[]>(_OpaqueData_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PendingRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "PendingRequest")
+ public JAXBElement<PendingRequestType> createPendingRequest(PendingRequestType value) {
+ return new JAXBElement<PendingRequestType>(_PendingRequest_QNAME, PendingRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SignatureValueType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RequestSignatureValue")
+ public JAXBElement<SignatureValueType> createRequestSignatureValue(SignatureValueType value) {
+ return new JAXBElement<SignatureValueType>(_RequestSignatureValue_QNAME, SignatureValueType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Q")
+ public JAXBElement<byte[]> createQ(byte[] value) {
+ return new JAXBElement<byte[]>(_Q_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "InvalidReason")
+ public JAXBElement<String> createInvalidReason(String value) {
+ return new JAXBElement<String>(_InvalidReason_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RevocationCodeIdentifier")
+ public JAXBElement<byte[]> createRevocationCodeIdentifier(byte[] value) {
+ return new JAXBElement<byte[]>(_RevocationCodeIdentifier_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link UnverifiedKeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "UnverifiedKeyBinding")
+ public JAXBElement<UnverifiedKeyBindingType> createUnverifiedKeyBinding(UnverifiedKeyBindingType value) {
+ return new JAXBElement<UnverifiedKeyBindingType>(_UnverifiedKeyBinding_QNAME, UnverifiedKeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "P")
+ public JAXBElement<byte[]> createP(byte[] value) {
+ return new JAXBElement<byte[]>(_P_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ReissueResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "ReissueResult")
+ public JAXBElement<ReissueResultType> createReissueResult(ReissueResultType value) {
+ return new JAXBElement<ReissueResultType>(_ReissueResult_QNAME, ReissueResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link NotBoundAuthenticationType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "NotBoundAuthentication")
+ public JAXBElement<NotBoundAuthenticationType> createNotBoundAuthentication(NotBoundAuthenticationType value) {
+ return new JAXBElement<NotBoundAuthenticationType>(_NotBoundAuthentication_QNAME, NotBoundAuthenticationType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TimeInstantType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "TimeInstant")
+ public JAXBElement<TimeInstantType> createTimeInstant(TimeInstantType value) {
+ return new JAXBElement<TimeInstantType>(_TimeInstant_QNAME, TimeInstantType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StatusRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "StatusRequest")
+ public JAXBElement<StatusRequestType> createStatusRequest(StatusRequestType value) {
+ return new JAXBElement<StatusRequestType>(_StatusRequest_QNAME, StatusRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "InverseQ")
+ public JAXBElement<byte[]> createInverseQ(byte[] value) {
+ return new JAXBElement<byte[]>(_InverseQ_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StatusType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Status")
+ public JAXBElement<StatusType> createStatus(StatusType value) {
+ return new JAXBElement<StatusType>(_Status_QNAME, StatusType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link KeyBindingType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "KeyBinding")
+ public JAXBElement<KeyBindingType> createKeyBinding(KeyBindingType value) {
+ return new JAXBElement<KeyBindingType>(_KeyBinding_QNAME, KeyBindingType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RecoverRequestType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "RecoverRequest")
+ public JAXBElement<RecoverRequestType> createRecoverRequest(RecoverRequestType value) {
+ return new JAXBElement<RecoverRequestType>(_RecoverRequest_QNAME, RecoverRequestType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Result")
+ public JAXBElement<ResultType> createResult(ResultType value) {
+ return new JAXBElement<ResultType>(_Result_QNAME, ResultType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "Modulus")
+ public JAXBElement<byte[]> createModulus(byte[] value) {
+ return new JAXBElement<byte[]>(_Modulus_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StatusResultType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2002/03/xkms#", name = "StatusResult")
+ public JAXBElement<StatusResultType> createStatusResult(StatusResultType value) {
+ return new JAXBElement<StatusResultType>(_StatusResult_QNAME, StatusResultType.class, null, value);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/OpaqueClientDataType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/OpaqueClientDataType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/OpaqueClientDataType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,75 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 OpaqueClientDataType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="OpaqueClientDataType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence maxOccurs="unbounded">
+ * <element ref="{http://www.w3.org/2002/03/xkms#}OpaqueData" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "OpaqueClientDataType", propOrder = {
+ "opaqueData"
+})
+public class OpaqueClientDataType {
+
+ @XmlElement(name = "OpaqueData")
+ protected List<byte[]> opaqueData;
+
+ /**
+ * Gets the value of the opaqueData 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 opaqueData property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getOpaqueData().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * byte[]
+ *
+ */
+ public List<byte[]> getOpaqueData() {
+ if (opaqueData == null) {
+ opaqueData = new ArrayList<byte[]>();
+ }
+ return this.opaqueData;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingNotificationType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingNotificationType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingNotificationType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,95 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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;
+
+
+/**
+ * <p>Java class for PendingNotificationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="PendingNotificationType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="Mechanism" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PendingNotificationType")
+public class PendingNotificationType {
+
+ @XmlAttribute(name = "Mechanism", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String mechanism;
+ @XmlAttribute(name = "Identifier", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String identifier;
+
+ /**
+ * Gets the value of the mechanism property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMechanism() {
+ return mechanism;
+ }
+
+ /**
+ * Sets the value of the mechanism property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMechanism(String value) {
+ this.mechanism = value;
+ }
+
+ /**
+ * Gets the value of the identifier property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getIdentifier() {
+ return identifier;
+ }
+
+ /**
+ * Sets the value of the identifier property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setIdentifier(String value) {
+ this.identifier = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PendingRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ * <p>Java class for PendingRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="PendingRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <attribute name="ResponseId" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PendingRequestType")
+@XmlSeeAlso({
+ StatusRequestType.class
+})
+public class PendingRequestType
+ extends RequestAbstractType
+{
+
+ @XmlAttribute(name = "ResponseId", required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlSchemaType(name = "NCName")
+ protected String responseId;
+
+ /**
+ * Gets the value of the responseId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getResponseId() {
+ return responseId;
+ }
+
+ /**
+ * Sets the value of the responseId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setResponseId(String value) {
+ this.responseId = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrivateKeyType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrivateKeyType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrivateKeyType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.identity.xmlsec.w3.xmlenc.EncryptedDataType;
+
+
+/**
+ * <p>Java class for PrivateKeyType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="PrivateKeyType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptedData"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PrivateKeyType", propOrder = {
+ "encryptedData"
+})
+public class PrivateKeyType {
+
+ @XmlElement(name = "EncryptedData", namespace = "http://www.w3.org/2001/04/xmlenc#", required = true)
+ protected EncryptedDataType encryptedData;
+
+ /**
+ * Gets the value of the encryptedData property.
+ *
+ * @return
+ * possible object is
+ * {@link EncryptedDataType }
+ *
+ */
+ public EncryptedDataType getEncryptedData() {
+ return encryptedData;
+ }
+
+ /**
+ * Sets the value of the encryptedData property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EncryptedDataType }
+ *
+ */
+ public void setEncryptedData(EncryptedDataType value) {
+ this.encryptedData = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ProofOfPossessionType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ProofOfPossessionType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ProofOfPossessionType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.SignatureType;
+
+
+/**
+ * <p>Java class for ProofOfPossessionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ProofOfPossessionType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ProofOfPossessionType", propOrder = {
+ "signature"
+})
+public class ProofOfPossessionType {
+
+ @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
+ protected SignatureType signature;
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureType }
+ *
+ */
+ public SignatureType getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureType }
+ *
+ */
+ public void setSignature(SignatureType value) {
+ this.signature = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrototypeKeyBindingType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrototypeKeyBindingType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/PrototypeKeyBindingType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,97 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 PrototypeKeyBindingType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="PrototypeKeyBindingType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}KeyBindingAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ValidityInterval" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RevocationCodeIdentifier" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PrototypeKeyBindingType", propOrder = {
+ "validityInterval",
+ "revocationCodeIdentifier"
+})
+public class PrototypeKeyBindingType
+ extends KeyBindingAbstractType
+{
+
+ @XmlElement(name = "ValidityInterval")
+ protected ValidityIntervalType validityInterval;
+ @XmlElement(name = "RevocationCodeIdentifier")
+ protected byte[] revocationCodeIdentifier;
+
+ /**
+ * Gets the value of the validityInterval property.
+ *
+ * @return
+ * possible object is
+ * {@link ValidityIntervalType }
+ *
+ */
+ public ValidityIntervalType getValidityInterval() {
+ return validityInterval;
+ }
+
+ /**
+ * Sets the value of the validityInterval property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ValidityIntervalType }
+ *
+ */
+ public void setValidityInterval(ValidityIntervalType value) {
+ this.validityInterval = value;
+ }
+
+ /**
+ * Gets the value of the revocationCodeIdentifier property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getRevocationCodeIdentifier() {
+ return revocationCodeIdentifier;
+ }
+
+ /**
+ * Sets the value of the revocationCodeIdentifier property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setRevocationCodeIdentifier(byte[] value) {
+ this.revocationCodeIdentifier = ((byte[]) value);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/QueryKeyBindingType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/QueryKeyBindingType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/QueryKeyBindingType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 QueryKeyBindingType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="QueryKeyBindingType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}KeyBindingAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}TimeInstant" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "QueryKeyBindingType", propOrder = {
+ "timeInstant"
+})
+public class QueryKeyBindingType
+ extends KeyBindingAbstractType
+{
+
+ @XmlElement(name = "TimeInstant")
+ protected TimeInstantType timeInstant;
+
+ /**
+ * Gets the value of the timeInstant property.
+ *
+ * @return
+ * possible object is
+ * {@link TimeInstantType }
+ *
+ */
+ public TimeInstantType getTimeInstant() {
+ return timeInstant;
+ }
+
+ /**
+ * Sets the value of the timeInstant property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TimeInstantType }
+ *
+ */
+ public void setTimeInstant(TimeInstantType value) {
+ this.timeInstant = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RSAKeyPairType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RSAKeyPairType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RSAKeyPairType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,249 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RSAKeyPairType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RSAKeyPairType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Modulus"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Exponent"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}P"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Q"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}DP"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}DQ"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}InverseQ"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}D"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RSAKeyPairType", propOrder = {
+ "modulus",
+ "exponent",
+ "p",
+ "q",
+ "dp",
+ "dq",
+ "inverseQ",
+ "d"
+})
+public class RSAKeyPairType {
+
+ @XmlElement(name = "Modulus", required = true)
+ protected byte[] modulus;
+ @XmlElement(name = "Exponent", required = true)
+ protected byte[] exponent;
+ @XmlElement(name = "P", required = true)
+ protected byte[] p;
+ @XmlElement(name = "Q", required = true)
+ protected byte[] q;
+ @XmlElement(name = "DP", required = true)
+ protected byte[] dp;
+ @XmlElement(name = "DQ", required = true)
+ protected byte[] dq;
+ @XmlElement(name = "InverseQ", required = true)
+ protected byte[] inverseQ;
+ @XmlElement(name = "D", required = true)
+ protected byte[] d;
+
+ /**
+ * 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);
+ }
+
+ /**
+ * 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 dp property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getDP() {
+ return dp;
+ }
+
+ /**
+ * Sets the value of the dp property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setDP(byte[] value) {
+ this.dp = ((byte[]) value);
+ }
+
+ /**
+ * Gets the value of the dq property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getDQ() {
+ return dq;
+ }
+
+ /**
+ * Sets the value of the dq property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setDQ(byte[] value) {
+ this.dq = ((byte[]) value);
+ }
+
+ /**
+ * Gets the value of the inverseQ property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getInverseQ() {
+ return inverseQ;
+ }
+
+ /**
+ * Sets the value of the inverseQ property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setInverseQ(byte[] value) {
+ this.inverseQ = ((byte[]) value);
+ }
+
+ /**
+ * Gets the value of the d property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getD() {
+ return d;
+ }
+
+ /**
+ * Sets the value of the d property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setD(byte[] value) {
+ this.d = ((byte[]) value);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,99 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RecoverRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RecoverRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RecoverKeyBinding"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Authentication"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RecoverRequestType", propOrder = {
+ "recoverKeyBinding",
+ "authentication"
+})
+public class RecoverRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "RecoverKeyBinding", required = true)
+ protected KeyBindingType recoverKeyBinding;
+ @XmlElement(name = "Authentication", required = true)
+ protected AuthenticationType authentication;
+
+ /**
+ * Gets the value of the recoverKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyBindingType }
+ *
+ */
+ public KeyBindingType getRecoverKeyBinding() {
+ return recoverKeyBinding;
+ }
+
+ /**
+ * Sets the value of the recoverKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyBindingType }
+ *
+ */
+ public void setRecoverKeyBinding(KeyBindingType value) {
+ this.recoverKeyBinding = value;
+ }
+
+ /**
+ * Gets the value of the authentication property.
+ *
+ * @return
+ * possible object is
+ * {@link AuthenticationType }
+ *
+ */
+ public AuthenticationType getAuthentication() {
+ return authentication;
+ }
+
+ /**
+ * Sets the value of the authentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AuthenticationType }
+ *
+ */
+ public void setAuthentication(AuthenticationType value) {
+ this.authentication = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RecoverResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,106 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RecoverResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RecoverResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}PrivateKey" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RecoverResultType", propOrder = {
+ "keyBinding",
+ "privateKey"
+})
+public class RecoverResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "KeyBinding")
+ protected List<KeyBindingType> keyBinding;
+ @XmlElement(name = "PrivateKey")
+ protected PrivateKeyType privateKey;
+
+ /**
+ * Gets the value of the keyBinding 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 keyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyBindingType }
+ *
+ *
+ */
+ public List<KeyBindingType> getKeyBinding() {
+ if (keyBinding == null) {
+ keyBinding = new ArrayList<KeyBindingType>();
+ }
+ return this.keyBinding;
+ }
+
+ /**
+ * Gets the value of the privateKey property.
+ *
+ * @return
+ * possible object is
+ * {@link PrivateKeyType }
+ *
+ */
+ public PrivateKeyType getPrivateKey() {
+ return privateKey;
+ }
+
+ /**
+ * Sets the value of the privateKey property.
+ *
+ * @param value
+ * allowed object is
+ * {@link PrivateKeyType }
+ *
+ */
+ public void setPrivateKey(PrivateKeyType value) {
+ this.privateKey = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,127 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RegisterRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RegisterRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}PrototypeKeyBinding"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Authentication"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ProofOfPossession" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RegisterRequestType", propOrder = {
+ "prototypeKeyBinding",
+ "authentication",
+ "proofOfPossession"
+})
+public class RegisterRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "PrototypeKeyBinding", required = true)
+ protected PrototypeKeyBindingType prototypeKeyBinding;
+ @XmlElement(name = "Authentication", required = true)
+ protected AuthenticationType authentication;
+ @XmlElement(name = "ProofOfPossession")
+ protected ProofOfPossessionType proofOfPossession;
+
+ /**
+ * Gets the value of the prototypeKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link PrototypeKeyBindingType }
+ *
+ */
+ public PrototypeKeyBindingType getPrototypeKeyBinding() {
+ return prototypeKeyBinding;
+ }
+
+ /**
+ * Sets the value of the prototypeKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link PrototypeKeyBindingType }
+ *
+ */
+ public void setPrototypeKeyBinding(PrototypeKeyBindingType value) {
+ this.prototypeKeyBinding = value;
+ }
+
+ /**
+ * Gets the value of the authentication property.
+ *
+ * @return
+ * possible object is
+ * {@link AuthenticationType }
+ *
+ */
+ public AuthenticationType getAuthentication() {
+ return authentication;
+ }
+
+ /**
+ * Sets the value of the authentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AuthenticationType }
+ *
+ */
+ public void setAuthentication(AuthenticationType value) {
+ this.authentication = value;
+ }
+
+ /**
+ * Gets the value of the proofOfPossession property.
+ *
+ * @return
+ * possible object is
+ * {@link ProofOfPossessionType }
+ *
+ */
+ public ProofOfPossessionType getProofOfPossession() {
+ return proofOfPossession;
+ }
+
+ /**
+ * Sets the value of the proofOfPossession property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ProofOfPossessionType }
+ *
+ */
+ public void setProofOfPossession(ProofOfPossessionType value) {
+ this.proofOfPossession = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RegisterResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,106 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RegisterResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RegisterResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}PrivateKey" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RegisterResultType", propOrder = {
+ "keyBinding",
+ "privateKey"
+})
+public class RegisterResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "KeyBinding")
+ protected List<KeyBindingType> keyBinding;
+ @XmlElement(name = "PrivateKey")
+ protected PrivateKeyType privateKey;
+
+ /**
+ * Gets the value of the keyBinding 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 keyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyBindingType }
+ *
+ *
+ */
+ public List<KeyBindingType> getKeyBinding() {
+ if (keyBinding == null) {
+ keyBinding = new ArrayList<KeyBindingType>();
+ }
+ return this.keyBinding;
+ }
+
+ /**
+ * Gets the value of the privateKey property.
+ *
+ * @return
+ * possible object is
+ * {@link PrivateKeyType }
+ *
+ */
+ public PrivateKeyType getPrivateKey() {
+ return privateKey;
+ }
+
+ /**
+ * Sets the value of the privateKey property.
+ *
+ * @param value
+ * allowed object is
+ * {@link PrivateKeyType }
+ *
+ */
+ public void setPrivateKey(PrivateKeyType value) {
+ this.privateKey = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,127 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 ReissueRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ReissueRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ReissueKeyBinding"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Authentication"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ProofOfPossession" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ReissueRequestType", propOrder = {
+ "reissueKeyBinding",
+ "authentication",
+ "proofOfPossession"
+})
+public class ReissueRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "ReissueKeyBinding", required = true)
+ protected KeyBindingType reissueKeyBinding;
+ @XmlElement(name = "Authentication", required = true)
+ protected AuthenticationType authentication;
+ @XmlElement(name = "ProofOfPossession")
+ protected ProofOfPossessionType proofOfPossession;
+
+ /**
+ * Gets the value of the reissueKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyBindingType }
+ *
+ */
+ public KeyBindingType getReissueKeyBinding() {
+ return reissueKeyBinding;
+ }
+
+ /**
+ * Sets the value of the reissueKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyBindingType }
+ *
+ */
+ public void setReissueKeyBinding(KeyBindingType value) {
+ this.reissueKeyBinding = value;
+ }
+
+ /**
+ * Gets the value of the authentication property.
+ *
+ * @return
+ * possible object is
+ * {@link AuthenticationType }
+ *
+ */
+ public AuthenticationType getAuthentication() {
+ return authentication;
+ }
+
+ /**
+ * Sets the value of the authentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AuthenticationType }
+ *
+ */
+ public void setAuthentication(AuthenticationType value) {
+ this.authentication = value;
+ }
+
+ /**
+ * Gets the value of the proofOfPossession property.
+ *
+ * @return
+ * possible object is
+ * {@link ProofOfPossessionType }
+ *
+ */
+ public ProofOfPossessionType getProofOfPossession() {
+ return proofOfPossession;
+ }
+
+ /**
+ * Sets the value of the proofOfPossession property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ProofOfPossessionType }
+ *
+ */
+ public void setProofOfPossession(ProofOfPossessionType value) {
+ this.proofOfPossession = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ReissueResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 ReissueResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ReissueResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ReissueResultType", propOrder = {
+ "keyBinding"
+})
+public class ReissueResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "KeyBinding")
+ protected List<KeyBindingType> keyBinding;
+
+ /**
+ * Gets the value of the keyBinding 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 keyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyBindingType }
+ *
+ *
+ */
+ public List<KeyBindingType> getKeyBinding() {
+ if (keyBinding == null) {
+ keyBinding = new ArrayList<KeyBindingType>();
+ }
+ return this.keyBinding;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RequestAbstractType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RequestAbstractType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RequestAbstractType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,211 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import java.math.BigInteger;
+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.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 RequestAbstractType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RequestAbstractType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}MessageAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ResponseMechanism" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RespondWith" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}PendingNotification" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="OriginalRequestId" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ * <attribute name="ResponseLimit" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RequestAbstractType", propOrder = {
+ "responseMechanism",
+ "respondWith",
+ "pendingNotification"
+})
+@XmlSeeAlso({
+ ReissueRequestType.class,
+ LocateRequestType.class,
+ RevokeRequestType.class,
+ RecoverRequestType.class,
+ CompoundRequestType.class,
+ ValidateRequestType.class,
+ PendingRequestType.class,
+ RegisterRequestType.class
+})
+public abstract class RequestAbstractType
+ extends MessageAbstractType
+{
+
+ @XmlElement(name = "ResponseMechanism")
+ protected List<String> responseMechanism;
+ @XmlElement(name = "RespondWith")
+ protected List<String> respondWith;
+ @XmlElement(name = "PendingNotification")
+ protected PendingNotificationType pendingNotification;
+ @XmlAttribute(name = "OriginalRequestId")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlSchemaType(name = "NCName")
+ protected String originalRequestId;
+ @XmlAttribute(name = "ResponseLimit")
+ protected BigInteger responseLimit;
+
+ /**
+ * Gets the value of the responseMechanism 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 responseMechanism property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getResponseMechanism().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getResponseMechanism() {
+ if (responseMechanism == null) {
+ responseMechanism = new ArrayList<String>();
+ }
+ return this.responseMechanism;
+ }
+
+ /**
+ * Gets the value of the respondWith 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 respondWith property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRespondWith().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getRespondWith() {
+ if (respondWith == null) {
+ respondWith = new ArrayList<String>();
+ }
+ return this.respondWith;
+ }
+
+ /**
+ * Gets the value of the pendingNotification property.
+ *
+ * @return
+ * possible object is
+ * {@link PendingNotificationType }
+ *
+ */
+ public PendingNotificationType getPendingNotification() {
+ return pendingNotification;
+ }
+
+ /**
+ * Sets the value of the pendingNotification property.
+ *
+ * @param value
+ * allowed object is
+ * {@link PendingNotificationType }
+ *
+ */
+ public void setPendingNotification(PendingNotificationType value) {
+ this.pendingNotification = value;
+ }
+
+ /**
+ * Gets the value of the originalRequestId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getOriginalRequestId() {
+ return originalRequestId;
+ }
+
+ /**
+ * Sets the value of the originalRequestId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setOriginalRequestId(String value) {
+ this.originalRequestId = value;
+ }
+
+ /**
+ * Gets the value of the responseLimit property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getResponseLimit() {
+ return responseLimit;
+ }
+
+ /**
+ * Sets the value of the responseLimit property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setResponseLimit(BigInteger value) {
+ this.responseLimit = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,171 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.SignatureValueType;
+
+
+/**
+ * <p>Java class for ResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}MessageAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RequestSignatureValue" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="ResultMajor" use="required" type="{http://www.w3.org/2002/03/xkms#}ResultMajorOpenEnum" />
+ * <attribute name="ResultMinor" type="{http://www.w3.org/2002/03/xkms#}ResultMinorOpenEnum" />
+ * <attribute name="RequestId" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ResultType", propOrder = {
+ "requestSignatureValue"
+})
+@XmlSeeAlso({
+ ReissueResultType.class,
+ StatusResultType.class,
+ RevokeResultType.class,
+ CompoundResultType.class,
+ ValidateResultType.class,
+ RecoverResultType.class,
+ RegisterResultType.class,
+ LocateResultType.class
+})
+public class ResultType
+ extends MessageAbstractType
+{
+
+ @XmlElement(name = "RequestSignatureValue")
+ protected SignatureValueType requestSignatureValue;
+ @XmlAttribute(name = "ResultMajor", required = true)
+ protected String resultMajor;
+ @XmlAttribute(name = "ResultMinor")
+ protected String resultMinor;
+ @XmlAttribute(name = "RequestId")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlSchemaType(name = "NCName")
+ protected String requestId;
+
+ /**
+ * Gets the value of the requestSignatureValue property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureValueType }
+ *
+ */
+ public SignatureValueType getRequestSignatureValue() {
+ return requestSignatureValue;
+ }
+
+ /**
+ * Sets the value of the requestSignatureValue property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureValueType }
+ *
+ */
+ public void setRequestSignatureValue(SignatureValueType value) {
+ this.requestSignatureValue = value;
+ }
+
+ /**
+ * Gets the value of the resultMajor property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getResultMajor() {
+ return resultMajor;
+ }
+
+ /**
+ * Sets the value of the resultMajor property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setResultMajor(String value) {
+ this.resultMajor = value;
+ }
+
+ /**
+ * Gets the value of the resultMinor property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getResultMinor() {
+ return resultMinor;
+ }
+
+ /**
+ * Sets the value of the resultMinor property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setResultMinor(String value) {
+ this.resultMinor = value;
+ }
+
+ /**
+ * Gets the value of the requestId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /**
+ * Sets the value of the requestId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRequestId(String value) {
+ this.requestId = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,127 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RevokeRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RevokeRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RevokeKeyBinding"/>
+ * <choice>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}Authentication"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}RevocationCode"/>
+ * </choice>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RevokeRequestType", propOrder = {
+ "revokeKeyBinding",
+ "authentication",
+ "revocationCode"
+})
+public class RevokeRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "RevokeKeyBinding", required = true)
+ protected KeyBindingType revokeKeyBinding;
+ @XmlElement(name = "Authentication")
+ protected AuthenticationType authentication;
+ @XmlElement(name = "RevocationCode")
+ protected byte[] revocationCode;
+
+ /**
+ * Gets the value of the revokeKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyBindingType }
+ *
+ */
+ public KeyBindingType getRevokeKeyBinding() {
+ return revokeKeyBinding;
+ }
+
+ /**
+ * Sets the value of the revokeKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyBindingType }
+ *
+ */
+ public void setRevokeKeyBinding(KeyBindingType value) {
+ this.revokeKeyBinding = value;
+ }
+
+ /**
+ * Gets the value of the authentication property.
+ *
+ * @return
+ * possible object is
+ * {@link AuthenticationType }
+ *
+ */
+ public AuthenticationType getAuthentication() {
+ return authentication;
+ }
+
+ /**
+ * Sets the value of the authentication property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AuthenticationType }
+ *
+ */
+ public void setAuthentication(AuthenticationType value) {
+ this.authentication = value;
+ }
+
+ /**
+ * Gets the value of the revocationCode property.
+ *
+ * @return
+ * possible object is
+ * byte[]
+ */
+ public byte[] getRevocationCode() {
+ return revocationCode;
+ }
+
+ /**
+ * Sets the value of the revocationCode property.
+ *
+ * @param value
+ * allowed object is
+ * byte[]
+ */
+ public void setRevocationCode(byte[] value) {
+ this.revocationCode = ((byte[]) value);
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/RevokeResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 RevokeResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="RevokeResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RevokeResultType", propOrder = {
+ "keyBinding"
+})
+public class RevokeResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "KeyBinding")
+ protected List<KeyBindingType> keyBinding;
+
+ /**
+ * Gets the value of the keyBinding 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 keyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyBindingType }
+ *
+ *
+ */
+ public List<KeyBindingType> getKeyBinding() {
+ if (keyBinding == null) {
+ keyBinding = new ArrayList<KeyBindingType>();
+ }
+ return this.keyBinding;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,39 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for StatusRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="StatusRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}PendingRequestType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StatusRequestType")
+public class StatusRequestType
+ extends PendingRequestType
+{
+
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,122 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.XmlType;
+
+
+/**
+ * <p>Java class for StatusResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="StatusResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <attribute name="Success" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * <attribute name="Failure" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * <attribute name="Pending" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StatusResultType")
+public class StatusResultType
+ extends ResultType
+{
+
+ @XmlAttribute(name = "Success")
+ protected BigInteger success;
+ @XmlAttribute(name = "Failure")
+ protected BigInteger failure;
+ @XmlAttribute(name = "Pending")
+ protected BigInteger pending;
+
+ /**
+ * Gets the value of the success property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getSuccess() {
+ return success;
+ }
+
+ /**
+ * Sets the value of the success property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setSuccess(BigInteger value) {
+ this.success = value;
+ }
+
+ /**
+ * Gets the value of the failure property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getFailure() {
+ return failure;
+ }
+
+ /**
+ * Sets the value of the failure property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setFailure(BigInteger value) {
+ this.failure = value;
+ }
+
+ /**
+ * Gets the value of the pending property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getPending() {
+ return pending;
+ }
+
+ /**
+ * Sets the value of the pending property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setPending(BigInteger value) {
+ this.pending = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/StatusType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,170 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.XmlType;
+
+
+/**
+ * <p>Java class for StatusType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="StatusType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ValidReason" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}IndeterminateReason" maxOccurs="unbounded" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}InvalidReason" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="StatusValue" use="required" type="{http://www.w3.org/2002/03/xkms#}KeyBindingEnum" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StatusType", propOrder = {
+ "validReason",
+ "indeterminateReason",
+ "invalidReason"
+})
+public class StatusType {
+
+ @XmlElement(name = "ValidReason")
+ protected List<String> validReason;
+ @XmlElement(name = "IndeterminateReason")
+ protected List<String> indeterminateReason;
+ @XmlElement(name = "InvalidReason")
+ protected List<String> invalidReason;
+ @XmlAttribute(name = "StatusValue", required = true)
+ protected String statusValue;
+
+ /**
+ * Gets the value of the validReason 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 validReason property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValidReason().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getValidReason() {
+ if (validReason == null) {
+ validReason = new ArrayList<String>();
+ }
+ return this.validReason;
+ }
+
+ /**
+ * Gets the value of the indeterminateReason 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 indeterminateReason property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getIndeterminateReason().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getIndeterminateReason() {
+ if (indeterminateReason == null) {
+ indeterminateReason = new ArrayList<String>();
+ }
+ return this.indeterminateReason;
+ }
+
+ /**
+ * Gets the value of the invalidReason 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 invalidReason property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getInvalidReason().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getInvalidReason() {
+ if (invalidReason == null) {
+ invalidReason = new ArrayList<String>();
+ }
+ return this.invalidReason;
+ }
+
+ /**
+ * Gets the value of the statusValue property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getStatusValue() {
+ return statusValue;
+ }
+
+ /**
+ * Sets the value of the statusValue property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setStatusValue(String value) {
+ this.statusValue = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/TimeInstantType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/TimeInstantType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/TimeInstantType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,68 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for TimeInstantType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TimeInstantType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TimeInstantType")
+public class TimeInstantType {
+
+ @XmlAttribute(name = "Time", required = true)
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar time;
+
+ /**
+ * Gets the value of the time property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getTime() {
+ return time;
+ }
+
+ /**
+ * Sets the value of the time property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setTime(XMLGregorianCalendar value) {
+ this.time = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UnverifiedKeyBindingType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UnverifiedKeyBindingType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UnverifiedKeyBindingType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,75 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UnverifiedKeyBindingType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="UnverifiedKeyBindingType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}KeyBindingAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}ValidityInterval" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UnverifiedKeyBindingType", propOrder = {
+ "validityInterval"
+})
+@XmlSeeAlso({
+ KeyBindingType.class
+})
+public class UnverifiedKeyBindingType
+ extends KeyBindingAbstractType
+{
+
+ @XmlElement(name = "ValidityInterval")
+ protected ValidityIntervalType validityInterval;
+
+ /**
+ * Gets the value of the validityInterval property.
+ *
+ * @return
+ * possible object is
+ * {@link ValidityIntervalType }
+ *
+ */
+ public ValidityIntervalType getValidityInterval() {
+ return validityInterval;
+ }
+
+ /**
+ * Sets the value of the validityInterval property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ValidityIntervalType }
+ *
+ */
+ public void setValidityInterval(ValidityIntervalType value) {
+ this.validityInterval = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UseKeyWithType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UseKeyWithType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/UseKeyWithType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,94 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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;
+
+
+/**
+ * <p>Java class for UseKeyWithType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="UseKeyWithType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="Application" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UseKeyWithType")
+public class UseKeyWithType {
+
+ @XmlAttribute(name = "Application", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String application;
+ @XmlAttribute(name = "Identifier", required = true)
+ protected String identifier;
+
+ /**
+ * Gets the value of the application property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getApplication() {
+ return application;
+ }
+
+ /**
+ * Sets the value of the application property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setApplication(String value) {
+ this.application = value;
+ }
+
+ /**
+ * Gets the value of the identifier property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getIdentifier() {
+ return identifier;
+ }
+
+ /**
+ * Sets the value of the identifier property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setIdentifier(String value) {
+ this.identifier = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateRequestType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateRequestType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateRequestType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,71 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 ValidateRequestType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ValidateRequestType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}RequestAbstractType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}QueryKeyBinding"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ValidateRequestType", propOrder = {
+ "queryKeyBinding"
+})
+public class ValidateRequestType
+ extends RequestAbstractType
+{
+
+ @XmlElement(name = "QueryKeyBinding", required = true)
+ protected QueryKeyBindingType queryKeyBinding;
+
+ /**
+ * Gets the value of the queryKeyBinding property.
+ *
+ * @return
+ * possible object is
+ * {@link QueryKeyBindingType }
+ *
+ */
+ public QueryKeyBindingType getQueryKeyBinding() {
+ return queryKeyBinding;
+ }
+
+ /**
+ * Sets the value of the queryKeyBinding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link QueryKeyBindingType }
+ *
+ */
+ public void setQueryKeyBinding(QueryKeyBindingType value) {
+ this.queryKeyBinding = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateResultType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateResultType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidateResultType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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 ValidateResultType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ValidateResultType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2002/03/xkms#}ResultType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2002/03/xkms#}KeyBinding" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ValidateResultType", propOrder = {
+ "keyBinding"
+})
+public class ValidateResultType
+ extends ResultType
+{
+
+ @XmlElement(name = "KeyBinding")
+ protected List<KeyBindingType> keyBinding;
+
+ /**
+ * Gets the value of the keyBinding 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 keyBinding property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyBinding().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyBindingType }
+ *
+ *
+ */
+ public List<KeyBindingType> getKeyBinding() {
+ if (keyBinding == null) {
+ keyBinding = new ArrayList<KeyBindingType>();
+ }
+ return this.keyBinding;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidityIntervalType.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidityIntervalType.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/ValidityIntervalType.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,96 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+
+package org.jboss.identity.xkms.v2.model;
+
+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.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for ValidityIntervalType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ValidityIntervalType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="NotBefore" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * <attribute name="NotOnOrAfter" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ValidityIntervalType")
+public class ValidityIntervalType {
+
+ @XmlAttribute(name = "NotBefore")
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar notBefore;
+ @XmlAttribute(name = "NotOnOrAfter")
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar notOnOrAfter;
+
+ /**
+ * Gets the value of the notBefore property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getNotBefore() {
+ return notBefore;
+ }
+
+ /**
+ * Sets the value of the notBefore property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setNotBefore(XMLGregorianCalendar value) {
+ this.notBefore = value;
+ }
+
+ /**
+ * Gets the value of the notOnOrAfter property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getNotOnOrAfter() {
+ return notOnOrAfter;
+ }
+
+ /**
+ * Sets the value of the notOnOrAfter property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setNotOnOrAfter(XMLGregorianCalendar value) {
+ this.notOnOrAfter = value;
+ }
+
+}
Added: xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/package-info.java
===================================================================
--- xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/package-info.java (rev 0)
+++ xmlkey/trunk/xkms/src/main/java/org/jboss/identity/xkms/v2/model/package-info.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.01.07 at 11:33:26 AM CST
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2002/03/xkms#", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.identity.xkms.v2.model;
Added: xmlkey/trunk/xkms/src/main/resources/schema/v2/xenc-schema.xsd
===================================================================
--- xmlkey/trunk/xkms/src/main/resources/schema/v2/xenc-schema.xsd (rev 0)
+++ xmlkey/trunk/xkms/src/main/resources/schema/v2/xenc-schema.xsd 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN"
+ "http://www.w3.org/2001/XMLSchema.dtd"
+ [
+ <!ATTLIST schema
+ xmlns:xenc CDATA #FIXED 'http://www.w3.org/2001/04/xmlenc#'
+ xmlns:ds CDATA #FIXED 'http://www.w3.org/2000/09/xmldsig#'>
+ <!ENTITY xenc 'http://www.w3.org/2001/04/xmlenc#'>
+ <!ENTITY % p ''>
+ <!ENTITY % s ''>
+ ]>
+
+<schema xmlns='http://www.w3.org/2001/XMLSchema' version='1.0'
+ xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
+ xmlns:ds='http://www.w3.org/2000/09/xmldsig#'
+ targetNamespace='http://www.w3.org/2001/04/xmlenc#'
+ elementFormDefault='qualified'>
+
+ <import namespace='http://www.w3.org/2000/09/xmldsig#'
+ schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'/>
+
+ <complexType name='EncryptedType' abstract='true'>
+
+ <sequence>
+ <element name='EncryptionMethod' type='xenc:EncryptionMethodType'
+ minOccurs='0'/>
+ <element ref='ds:KeyInfo' minOccurs='0'/>
+ <element ref='xenc:CipherData'/>
+ <element ref='xenc:EncryptionProperties' minOccurs='0'/>
+ </sequence>
+ <attribute name='Id' type='ID' use='optional'/>
+ <attribute name='Type' type='anyURI' use='optional'/>
+ <attribute name='MimeType' type='string' use='optional'/>
+
+ <attribute name='Encoding' type='anyURI' use='optional'/>
+ </complexType>
+
+ <complexType name='EncryptionMethodType' mixed='true'>
+ <sequence>
+ <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/>
+ <element name='OAEPparams' minOccurs='0' type='base64Binary'/>
+ <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
+ </sequence>
+ <attribute name='Algorithm' type='anyURI' use='required'/>
+
+ </complexType>
+
+ <simpleType name='KeySizeType'>
+ <restriction base="integer"/>
+ </simpleType>
+
+ <element name='CipherData' type='xenc:CipherDataType'/>
+ <complexType name='CipherDataType'>
+ <choice>
+ <element name='CipherValue' type='base64Binary'/>
+ <element ref='xenc:CipherReference'/>
+ </choice>
+ </complexType>
+
+ <element name='CipherReference' type='xenc:CipherReferenceType'/>
+ <complexType name='CipherReferenceType'>
+ <choice>
+ <element name='Transforms' type='xenc:TransformsType' minOccurs='0'/>
+ </choice>
+
+ <attribute name='URI' type='anyURI' use='required'/>
+ </complexType>
+
+ <complexType name='TransformsType'>
+ <sequence>
+ <element ref='ds:Transform' maxOccurs='unbounded'/>
+ </sequence>
+ </complexType>
+
+
+ <element name='EncryptedData' type='xenc:EncryptedDataType'/>
+ <complexType name='EncryptedDataType'>
+ <complexContent>
+ <extension base='xenc:EncryptedType'>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <!-- Children of ds:KeyInfo -->
+
+ <element name='EncryptedKey' type='xenc:EncryptedKeyType'/>
+ <complexType name='EncryptedKeyType'>
+ <complexContent>
+ <extension base='xenc:EncryptedType'>
+ <sequence>
+ <element ref='xenc:ReferenceList' minOccurs='0'/>
+ <element name='CarriedKeyName' type='string' minOccurs='0'/>
+ </sequence>
+ <attribute name='Recipient' type='string'
+ use='optional'/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="AgreementMethod" type="xenc:AgreementMethodType"/>
+ <complexType name="AgreementMethodType" mixed="true">
+ <sequence>
+ <element name="KA-Nonce" minOccurs="0" type="base64Binary"/>
+
+ <!-- <element ref="ds:DigestMethod" minOccurs="0"/> -->
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
+ <element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+ <!-- End Children of ds:KeyInfo -->
+
+ <element name='ReferenceList'>
+ <complexType>
+ <choice minOccurs='1' maxOccurs='unbounded'>
+ <element name='DataReference' type='xenc:ReferenceType'/>
+ <element name='KeyReference' type='xenc:ReferenceType'/>
+ </choice>
+ </complexType>
+ </element>
+
+ <complexType name='ReferenceType'>
+ <sequence>
+ <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
+ </sequence>
+ <attribute name='URI' type='anyURI' use='required'/>
+ </complexType>
+
+
+ <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
+
+ <complexType name='EncryptionPropertiesType'>
+ <sequence>
+ <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
+ </sequence>
+ <attribute name='Id' type='ID' use='optional'/>
+ </complexType>
+
+ <element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/>
+ <complexType name='EncryptionPropertyType' mixed='true'>
+
+ <choice maxOccurs='unbounded'>
+ <any namespace='##other' processContents='lax'/>
+ </choice>
+ <attribute name='Target' type='anyURI' use='optional'/>
+ <attribute name='Id' type='ID' use='optional'/>
+ <anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>
+ </complexType>
+
+</schema>
+
+
Added: xmlkey/trunk/xkms/src/main/resources/schema/v2/xkms.xsd
===================================================================
--- xmlkey/trunk/xkms/src/main/resources/schema/v2/xkms.xsd (rev 0)
+++ xmlkey/trunk/xkms/src/main/resources/schema/v2/xkms.xsd 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,439 @@
+<?xml version="1.0"?>
+<!DOCTYPE schema [
+ <!-- The URI for the XKMS namespace, and also the base URI used for
+ URI's defined by the specification. -->
+ <!ENTITY xkms 'http://www.w3.org/2002/03/xkms#'>
+]>
+<schema xmlns:xkms="http://www.w3.org/2002/03/xkms#"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
+ xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2002/03/xkms#" elementFormDefault="qualified" attributeFormDefault="unqualified">
+<import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"></import>
+<import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"></import>
+<annotation>
+<documentation xml:lang="en">
+ XML Schema for XKMS 2.0 Recommendation
+</documentation></annotation>
+<!-- /Namespace -->
+<!-- MessageAbstractType -->
+<complexType name="MessageAbstractType" abstract="true">
+<sequence>
+<element ref="ds:Signature" minOccurs="0"></element>
+<element ref="xkms:MessageExtension" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:OpaqueClientData" minOccurs="0"></element></sequence>
+<attribute name="Id" type="ID" use="required"></attribute>
+<attribute name="Service" type="anyURI" use="required"></attribute>
+<attribute name="Nonce" type="base64Binary" use="optional"></attribute></complexType>
+<!-- /MessageAbstractType -->
+<!-- MessageExtension -->
+<element name="MessageExtension" type="xkms:MessageExtensionAbstractType" abstract="true"></element>
+<complexType name="MessageExtensionAbstractType" abstract="true"></complexType>
+<!-- /MessageExtension -->
+<!-- OpaqueClientData -->
+<element name="OpaqueClientData" type="xkms:OpaqueClientDataType"></element>
+<complexType name="OpaqueClientDataType">
+<sequence maxOccurs="unbounded">
+<element ref="xkms:OpaqueData" minOccurs="0"></element></sequence></complexType>
+<element name="OpaqueData" type="base64Binary"></element>
+<!-- /OpaqueClientData -->
+<!-- RequestAbstractType -->
+<complexType name="RequestAbstractType" abstract="true">
+<complexContent>
+<extension base="xkms:MessageAbstractType">
+<sequence>
+<element ref="xkms:ResponseMechanism" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:RespondWith" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:PendingNotification" minOccurs="0"></element></sequence>
+<attribute name="OriginalRequestId" type="NCName" use="optional"></attribute>
+<attribute name="ResponseLimit" type="integer" use="optional"></attribute></extension></complexContent></complexType>
+<!-- /RequestAbstractType -->
+<!-- ResponseMechanism -->
+<simpleType name="ResponseMechanismEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#Pending"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Represent"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#RequestSignatureValue"></enumeration></restriction></simpleType>
+<simpleType name="ResponseMechanismOpenEnum">
+<union memberTypes="xkms:ResponseMechanismEnum anyURI"></union></simpleType>
+<element name="ResponseMechanism" type="xkms:ResponseMechanismOpenEnum"></element>
+<!-- /ResponseMechanism -->
+<!-- RespondWith -->
+<simpleType name="RespondWithEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#KeyName"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#KeyValue"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#X509Cert"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#X509Chain"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#X509CRL"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#RetrievalMethod"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#PGP"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#PGPWeb"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#SPKI"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#PrivateKey"></enumeration></restriction></simpleType>
+<simpleType name="RespondWithOpenEnum">
+<union memberTypes="xkms:RespondWithEnum anyURI"></union></simpleType>
+<element name="RespondWith" type="xkms:RespondWithOpenEnum"></element>
+<!-- /RespondWith -->
+<!-- PendingNotification -->
+<element name="PendingNotification" type="xkms:PendingNotificationType"></element>
+<complexType name="PendingNotificationType">
+<attribute name="Mechanism" type="anyURI" use="required"></attribute>
+<attribute name="Identifier" type="anyURI" use="required"></attribute></complexType>
+<!-- /PendingNotification -->
+<!-- PendingRequest -->
+<element name="PendingRequest" type="xkms:PendingRequestType"></element>
+<complexType name="PendingRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<attribute name="ResponseId" type="NCName" use="required"></attribute></extension></complexContent></complexType>
+<!-- /PendingRequest -->
+<!-- ResultType -->
+<element name="Result" type="xkms:ResultType"></element>
+<simpleType name="ResultMajorEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#Success"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#VersionMismatch"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Sender"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Receiver"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Represent"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Pending"></enumeration></restriction></simpleType>
+<simpleType name="ResultMajorOpenEnum">
+<union memberTypes="xkms:ResultMajorEnum anyURI"></union></simpleType>
+<simpleType name="ResultMinorEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#NoMatch"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#TooManyResponses"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Incomplete"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Failure"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Refused"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#NoAuthentication"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#MessageNotSupported"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#UnknownResponseId"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#RepresentRequired"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#NotSynchronous"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#OptionalElementNotSupported"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#ProofOfPossessionRequired"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#TimeInstantNotSupported"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#TimeInstantOutOfRange"></enumeration>
+
+</restriction></simpleType>
+<simpleType name="ResultMinorOpenEnum">
+<union memberTypes="xkms:ResultMinorEnum anyURI"></union></simpleType>
+<complexType name="ResultType">
+<complexContent>
+<extension base="xkms:MessageAbstractType">
+<sequence>
+<element ref="xkms:RequestSignatureValue" minOccurs="0"></element></sequence>
+<attribute name="ResultMajor" type="xkms:ResultMajorOpenEnum" use="required"></attribute>
+<attribute name="ResultMinor" type="xkms:ResultMinorOpenEnum" use="optional"></attribute>
+<attribute name="RequestId" type="NCName" use="optional"></attribute></extension></complexContent></complexType>
+<!-- /ResultType -->
+<!-- RequestSignatureValue -->
+<element name="RequestSignatureValue" type="ds:SignatureValueType"></element>
+<!-- /RequestSignatureValue -->
+<!-- CompoundRequest -->
+<element name="CompoundRequest" type="xkms:CompoundRequestType"></element>
+<complexType name="CompoundRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<choice maxOccurs="unbounded">
+<element ref="xkms:LocateRequest"></element>
+<element ref="xkms:ValidateRequest"></element>
+<element ref="xkms:RegisterRequest"></element>
+<element ref="xkms:ReissueRequest"></element>
+<element ref="xkms:RecoverRequest"></element>
+<element ref="xkms:RevokeRequest"></element></choice></extension></complexContent></complexType>
+<!-- /CompoundRequest -->
+<!-- CompoundResult -->
+<element name="CompoundResult" type="xkms:CompoundResultType"></element>
+<complexType name="CompoundResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<choice minOccurs="0" maxOccurs="unbounded">
+<element ref="xkms:LocateResult"></element>
+<element ref="xkms:ValidateResult"></element>
+<element ref="xkms:RegisterResult"></element>
+<element ref="xkms:ReissueResult"></element>
+<element ref="xkms:RecoverResult"></element>
+<element ref="xkms:RevokeResult"></element></choice></extension></complexContent></complexType>
+<!-- /CompoundResult -->
+<!-- StatusRequest -->
+<element name="StatusRequest" type="xkms:StatusRequestType"></element>
+<complexType name="StatusRequestType">
+<complexContent>
+<extension base="xkms:PendingRequestType"></extension></complexContent></complexType>
+<!-- /StatusRequest -->
+<!-- StatusResult -->
+<element name="StatusResult" type="xkms:StatusResultType"></element>
+<complexType name="StatusResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<attribute name="Success" type="integer" use="optional"></attribute>
+<attribute name="Failure" type="integer" use="optional"></attribute>
+<attribute name="Pending" type="integer" use="optional"></attribute></extension></complexContent></complexType>
+<!-- /StatusResult -->
+<!-- KeyBindingAbstractType-->
+<complexType name="KeyBindingAbstractType" abstract="true">
+<sequence>
+<element ref="ds:KeyInfo" minOccurs="0"></element>
+<element ref="xkms:KeyUsage" minOccurs="0" maxOccurs="3"></element>
+<element ref="xkms:UseKeyWith" minOccurs="0" maxOccurs="unbounded"></element></sequence>
+<attribute name="Id" type="ID" use="optional"></attribute></complexType>
+<!-- /KeyBindingAbstractType-->
+<!-- UnverifiedKeyBinding -->
+<element name="UnverifiedKeyBinding" type="xkms:UnverifiedKeyBindingType"></element>
+<complexType name="UnverifiedKeyBindingType">
+<complexContent>
+<extension base="xkms:KeyBindingAbstractType">
+<sequence>
+<element ref="xkms:ValidityInterval" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /UnverifiedKeyBinding -->
+<!-- KeyBinding -->
+<element name="KeyBinding" type="xkms:KeyBindingType"></element>
+<complexType name="KeyBindingType">
+<complexContent>
+<extension base="xkms:UnverifiedKeyBindingType">
+<sequence>
+<element ref="xkms:Status"></element></sequence></extension></complexContent></complexType>
+<!-- /KeyBinding -->
+<!-- KeyUsage -->
+<simpleType name="KeyUsageEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#Encryption"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Signature"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Exchange"></enumeration></restriction></simpleType>
+<element name="KeyUsage" type="xkms:KeyUsageEnum"></element>
+<!-- /KeyUsage -->
+<!-- UseKeyWith -->
+<element name="UseKeyWith" type="xkms:UseKeyWithType"></element>
+<complexType name="UseKeyWithType">
+<attribute name="Application" type="anyURI" use="required"></attribute>
+<attribute name="Identifier" type="string" use="required"></attribute></complexType>
+<!-- /UseKeyWith -->
+<!-- Status -->
+<element name="Status" type="xkms:StatusType"></element>
+<complexType name="StatusType">
+<sequence>
+<element ref="xkms:ValidReason" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:IndeterminateReason" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:InvalidReason" minOccurs="0" maxOccurs="unbounded"></element></sequence>
+<attribute name="StatusValue" type="xkms:KeyBindingEnum" use="required"></attribute></complexType>
+<simpleType name="KeyBindingEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#Valid"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Invalid"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Indeterminate"></enumeration></restriction></simpleType>
+<!-- /Status -->
+<!-- Reason -->
+<simpleType name="ReasonEnum">
+<restriction base="anyURI">
+<enumeration value="http://www.w3.org/2002/03/xkms#IssuerTrust"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#RevocationStatus"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#ValidityInterval"></enumeration>
+<enumeration value="http://www.w3.org/2002/03/xkms#Signature"></enumeration></restriction></simpleType>
+<simpleType name="ReasonOpenEnum">
+<union memberTypes="xkms:ReasonEnum anyURI"></union></simpleType>
+<element name="ValidReason" type="xkms:ReasonOpenEnum"></element>
+<element name="InvalidReason" type="xkms:ReasonOpenEnum"></element>
+<element name="IndeterminateReason" type="xkms:ReasonOpenEnum"></element>
+<!-- /Reason -->
+<!-- ValidityInterval -->
+<element name="ValidityInterval" type="xkms:ValidityIntervalType"></element>
+<complexType name="ValidityIntervalType">
+<attribute name="NotBefore" type="dateTime" use="optional"></attribute>
+<attribute name="NotOnOrAfter" type="dateTime" use="optional"></attribute></complexType>
+<!-- /ValidityInterval -->
+<!-- QueryKeyBinding -->
+<element name="QueryKeyBinding" type="xkms:QueryKeyBindingType"></element>
+<complexType name="QueryKeyBindingType">
+<complexContent>
+<extension base="xkms:KeyBindingAbstractType">
+<sequence>
+<element ref="xkms:TimeInstant" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /QueryKeyBinding -->
+<!-- TimeInstant -->
+<element name="TimeInstant" type="xkms:TimeInstantType"></element>
+<complexType name="TimeInstantType">
+<attribute name="Time" type="dateTime" use="required"></attribute></complexType>
+<!-- /TimeInstant -->
+<!-- PrototypeKeyBinding -->
+<element name="PrototypeKeyBinding" type="xkms:PrototypeKeyBindingType"></element>
+<complexType name="PrototypeKeyBindingType">
+<complexContent>
+<extension base="xkms:KeyBindingAbstractType">
+<sequence>
+<element ref="xkms:ValidityInterval" minOccurs="0"></element>
+<element ref="xkms:RevocationCodeIdentifier" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /PrototypeKeyBinding -->
+<!-- RevocationCodeIdentifier -->
+<element name="RevocationCodeIdentifier" type="xkms:RevocationCodeIdentifierType"></element>
+<simpleType name="RevocationCodeIdentifierType">
+<restriction base="base64Binary"></restriction></simpleType>
+<!-- /RevocationCodeIdentifier -->
+<!-- LocateRequest -->
+<element name="LocateRequest" type="xkms:LocateRequestType"></element>
+<complexType name="LocateRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:QueryKeyBinding"></element></sequence></extension></complexContent></complexType>
+<!-- /LocateRequest -->
+<!-- LocateResult -->
+<element name="LocateResult" type="xkms:LocateResultType"></element>
+<complexType name="LocateResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:UnverifiedKeyBinding" minOccurs="0" maxOccurs="unbounded"></element></sequence></extension></complexContent></complexType>
+<!-- /LocateResult -->
+<!-- ValidateRequest -->
+<element name="ValidateRequest" type="xkms:ValidateRequestType"></element>
+<complexType name="ValidateRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:QueryKeyBinding"></element></sequence></extension></complexContent></complexType>
+<!-- /ValidateRequest -->
+<!-- ValidateResult -->
+<element name="ValidateResult" type="xkms:ValidateResultType"></element>
+<complexType name="ValidateResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:KeyBinding" minOccurs="0" maxOccurs="unbounded"></element></sequence></extension></complexContent></complexType>
+<!-- /ValidateResult -->
+<!-- Authentication -->
+<element name="Authentication" type="xkms:AuthenticationType"></element>
+<complexType name="AuthenticationType">
+<sequence>
+<element ref="xkms:KeyBindingAuthentication" minOccurs="0"></element>
+<element ref="xkms:NotBoundAuthentication" minOccurs="0"></element></sequence></complexType>
+<!-- /Authentication -->
+<!-- KeyBindingAuthentication -->
+<element name="KeyBindingAuthentication" type="xkms:KeyBindingAuthenticationType"></element>
+<complexType name="KeyBindingAuthenticationType">
+<sequence>
+<element ref="ds:Signature"></element></sequence></complexType>
+<!-- /KeyBindingAuthentication -->
+<!-- NotBoundAuthentication -->
+<element name="NotBoundAuthentication" type="xkms:NotBoundAuthenticationType"></element>
+<complexType name="NotBoundAuthenticationType">
+<attribute name="Protocol" type="anyURI" use="required"></attribute>
+<attribute name="Value" type="base64Binary" use="required"></attribute></complexType>
+<!-- /NotBoundAuthentication -->
+<!-- ProofOfPossession -->
+<element name="ProofOfPossession" type="xkms:ProofOfPossessionType"></element>
+<complexType name="ProofOfPossessionType">
+<sequence>
+<element ref="ds:Signature"></element></sequence></complexType>
+<!-- /ProofOfPossession -->
+<!-- PrivateKey -->
+<element name="PrivateKey" type="xkms:PrivateKeyType"></element>
+<complexType name="PrivateKeyType">
+<sequence>
+<element ref="xenc:EncryptedData"></element></sequence></complexType>
+<!-- /PrivateKey -->
+<!-- RegisterRequest -->
+<element name="RegisterRequest" type="xkms:RegisterRequestType"></element>
+<complexType name="RegisterRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:PrototypeKeyBinding"></element>
+<element ref="xkms:Authentication"></element>
+<element ref="xkms:ProofOfPossession" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /RegisterRequest -->
+<!-- RegisterResult -->
+<element name="RegisterResult" type="xkms:RegisterResultType"></element>
+<complexType name="RegisterResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:KeyBinding" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:PrivateKey" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /RegisterResult -->
+<!-- ReissueRequest -->
+<element name="ReissueRequest" type="xkms:ReissueRequestType"></element>
+<complexType name="ReissueRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:ReissueKeyBinding"></element>
+<element ref="xkms:Authentication"></element>
+<element ref="xkms:ProofOfPossession" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<element name="ReissueKeyBinding" type="xkms:KeyBindingType"></element>
+<!-- /ReissueRequest -->
+<!-- ReissueResult -->
+<element name="ReissueResult" type="xkms:ReissueResultType"></element>
+<complexType name="ReissueResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:KeyBinding" minOccurs="0" maxOccurs="unbounded"></element></sequence></extension></complexContent></complexType>
+<!-- /ReissueResult -->
+<!-- RevokeRequest -->
+<element name="RevokeRequest" type="xkms:RevokeRequestType"></element>
+<complexType name="RevokeRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:RevokeKeyBinding"></element>
+<choice>
+<element ref="xkms:Authentication"></element>
+<element ref="xkms:RevocationCode"></element></choice></sequence></extension></complexContent></complexType>
+<element name="RevokeKeyBinding" type="xkms:KeyBindingType"></element>
+<!-- /RevokeRequest -->
+<!-- RevocationCode -->
+<element name="RevocationCode" type="xkms:RevocationCodeType"></element>
+<simpleType name="RevocationCodeType">
+<restriction base="base64Binary"></restriction></simpleType>
+<!-- /RevocationCode -->
+<!-- RevokeResult -->
+<element name="RevokeResult" type="xkms:RevokeResultType"></element>
+<complexType name="RevokeResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:KeyBinding" minOccurs="0" maxOccurs="unbounded"></element></sequence></extension></complexContent></complexType>
+<!-- /RevokeResult -->
+<!-- RecoverRequest -->
+<element name="RecoverRequest" type="xkms:RecoverRequestType"></element>
+<complexType name="RecoverRequestType">
+<complexContent>
+<extension base="xkms:RequestAbstractType">
+<sequence>
+<element ref="xkms:RecoverKeyBinding"></element>
+<element ref="xkms:Authentication"></element></sequence></extension></complexContent></complexType>
+<element name="RecoverKeyBinding" type="xkms:KeyBindingType"></element>
+<!-- /RecoverRequest -->
+<!-- RecoverResult -->
+<element name="RecoverResult" type="xkms:RecoverResultType"></element>
+<complexType name="RecoverResultType">
+<complexContent>
+<extension base="xkms:ResultType">
+<sequence>
+<element ref="xkms:KeyBinding" minOccurs="0" maxOccurs="unbounded"></element>
+<element ref="xkms:PrivateKey" minOccurs="0"></element></sequence></extension></complexContent></complexType>
+<!-- /RecoverResult -->
+<!-- RSAKeyPair -->
+<element name="RSAKeyPair" type="xkms:RSAKeyPairType"></element>
+<complexType name="RSAKeyPairType">
+<sequence>
+<element ref="xkms:Modulus"></element>
+<element ref="xkms:Exponent"></element>
+<element ref="xkms:P"></element>
+<element ref="xkms:Q"></element>
+<element ref="xkms:DP"></element>
+<element ref="xkms:DQ"></element>
+<element ref="xkms:InverseQ"></element>
+<element ref="xkms:D"></element></sequence></complexType>
+<element name="Modulus" type="ds:CryptoBinary"></element>
+<element name="Exponent" type="ds:CryptoBinary"></element>
+<element name="P" type="ds:CryptoBinary"></element>
+<element name="Q" type="ds:CryptoBinary"></element>
+<element name="DP" type="ds:CryptoBinary"></element>
+<element name="DQ" type="ds:CryptoBinary"></element>
+<element name="InverseQ" type="ds:CryptoBinary"></element>
+<element name="D" type="ds:CryptoBinary"></element>
+<!-- /RSAKeyPair -->
+<!-- End Schema --></schema>
Added: xmlkey/trunk/xkms/src/main/resources/schema/v2/xmldsig-core-schema.xsd
===================================================================
--- xmlkey/trunk/xkms/src/main/resources/schema/v2/xmldsig-core-schema.xsd (rev 0)
+++ xmlkey/trunk/xkms/src/main/resources/schema/v2/xmldsig-core-schema.xsd 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE schema
+ PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
+ [
+ <!ATTLIST schema
+ xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
+ <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
+ <!ENTITY % p ''>
+ <!ENTITY % s ''>
+ ]>
+
+<!-- Schema for XML Signatures
+ http://www.w3.org/2000/09/xmldsig#
+ $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
+
+ Copyright 2001 The Internet Society and W3C (Massachusetts Institute
+ of Technology, Institut National de Recherche en Informatique et en
+ Automatique, Keio University). All Rights Reserved.
+ http://www.w3.org/Consortium/Legal/
+
+ This document is governed by the W3C Software License [1] as described
+ in the FAQ [2].
+
+ [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+-->
+
+
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ targetNamespace="http://www.w3.org/2000/09/xmldsig#"
+ version="0.1" elementFormDefault="qualified">
+
+<!-- Basic Types Defined for Signatures -->
+
+<simpleType name="CryptoBinary">
+ <restriction base="base64Binary">
+ </restriction>
+</simpleType>
+
+<!-- Start Signature -->
+
+<element name="Signature" type="ds:SignatureType"/>
+<complexType name="SignatureType">
+ <sequence>
+ <element ref="ds:SignedInfo"/>
+ <element ref="ds:SignatureValue"/>
+ <element ref="ds:KeyInfo" minOccurs="0"/>
+ <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="SignatureValue" type="ds:SignatureValueType"/>
+ <complexType name="SignatureValueType">
+ <simpleContent>
+ <extension base="base64Binary">
+ <attribute name="Id" type="ID" use="optional"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+
+<!-- Start SignedInfo -->
+
+<element name="SignedInfo" type="ds:SignedInfoType"/>
+<complexType name="SignedInfoType">
+ <sequence>
+ <element ref="ds:CanonicalizationMethod"/>
+ <element ref="ds:SignatureMethod"/>
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
+ <complexType name="CanonicalizationMethodType" mixed="true">
+ <sequence>
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- (0,unbounded) elements from (1,1) namespace -->
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+ <element name="SignatureMethod" type="ds:SignatureMethodType"/>
+ <complexType name="SignatureMethodType" mixed="true">
+ <sequence>
+ <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- (0,unbounded) elements from (1,1) external namespace -->
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+<!-- Start Reference -->
+
+<element name="Reference" type="ds:ReferenceType"/>
+<complexType name="ReferenceType">
+ <sequence>
+ <element ref="ds:Transforms" minOccurs="0"/>
+ <element ref="ds:DigestMethod"/>
+ <element ref="ds:DigestValue"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+ <attribute name="URI" type="anyURI" use="optional"/>
+ <attribute name="Type" type="anyURI" use="optional"/>
+</complexType>
+
+ <element name="Transforms" type="ds:TransformsType"/>
+ <complexType name="TransformsType">
+ <sequence>
+ <element ref="ds:Transform" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="Transform" type="ds:TransformType"/>
+ <complexType name="TransformType" mixed="true">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <any namespace="##other" processContents="lax"/>
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
+ <element name="XPath" type="string"/>
+ </choice>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+<!-- End Reference -->
+
+<element name="DigestMethod" type="ds:DigestMethodType"/>
+<complexType name="DigestMethodType" mixed="true">
+ <sequence>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+</complexType>
+
+<element name="DigestValue" type="ds:DigestValueType"/>
+<simpleType name="DigestValueType">
+ <restriction base="base64Binary"/>
+</simpleType>
+
+<!-- End SignedInfo -->
+
+<!-- Start KeyInfo -->
+
+<element name="KeyInfo" type="ds:KeyInfoType"/>
+<complexType name="KeyInfoType" mixed="true">
+ <choice maxOccurs="unbounded">
+ <element ref="ds:KeyName"/>
+ <element ref="ds:KeyValue"/>
+ <element ref="ds:RetrievalMethod"/>
+ <element ref="ds:X509Data"/>
+ <element ref="ds:PGPData"/>
+ <element ref="ds:SPKIData"/>
+ <element ref="ds:MgmtData"/>
+ <any processContents="lax" namespace="##other"/>
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
+ </choice>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="KeyName" type="string"/>
+ <element name="MgmtData" type="string"/>
+
+ <element name="KeyValue" type="ds:KeyValueType"/>
+ <complexType name="KeyValueType" mixed="true">
+ <choice>
+ <element ref="ds:DSAKeyValue"/>
+ <element ref="ds:RSAKeyValue"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+
+ <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
+ <complexType name="RetrievalMethodType">
+ <sequence>
+ <element ref="ds:Transforms" minOccurs="0"/>
+ </sequence>
+ <attribute name="URI" type="anyURI"/>
+ <attribute name="Type" type="anyURI" use="optional"/>
+ </complexType>
+
+<!-- Start X509Data -->
+
+<element name="X509Data" type="ds:X509DataType"/>
+<complexType name="X509DataType">
+ <sequence maxOccurs="unbounded">
+ <choice>
+ <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
+ <element name="X509SKI" type="base64Binary"/>
+ <element name="X509SubjectName" type="string"/>
+ <element name="X509Certificate" type="base64Binary"/>
+ <element name="X509CRL" type="base64Binary"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </sequence>
+</complexType>
+
+<complexType name="X509IssuerSerialType">
+ <sequence>
+ <element name="X509IssuerName" type="string"/>
+ <element name="X509SerialNumber" type="integer"/>
+ </sequence>
+</complexType>
+
+<!-- End X509Data -->
+
+<!-- Begin PGPData -->
+
+<element name="PGPData" type="ds:PGPDataType"/>
+<complexType name="PGPDataType">
+ <choice>
+ <sequence>
+ <element name="PGPKeyID" type="base64Binary"/>
+ <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </sequence>
+ <sequence>
+ <element name="PGPKeyPacket" type="base64Binary"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </sequence>
+ </choice>
+</complexType>
+
+<!-- End PGPData -->
+
+<!-- Begin SPKIData -->
+
+<element name="SPKIData" type="ds:SPKIDataType"/>
+<complexType name="SPKIDataType">
+ <sequence maxOccurs="unbounded">
+ <element name="SPKISexp" type="base64Binary"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"/>
+ </sequence>
+</complexType>
+
+<!-- End SPKIData -->
+
+<!-- End KeyInfo -->
+
+<!-- Start Object (Manifest, SignatureProperty) -->
+
+<element name="Object" type="ds:ObjectType"/>
+<complexType name="ObjectType" mixed="true">
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <any namespace="##any" processContents="lax"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+ <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
+ <attribute name="Encoding" type="anyURI" use="optional"/>
+</complexType>
+
+<element name="Manifest" type="ds:ManifestType"/>
+<complexType name="ManifestType">
+ <sequence>
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+<element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
+<complexType name="SignaturePropertiesType">
+ <sequence>
+ <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
+ <complexType name="SignaturePropertyType" mixed="true">
+ <choice maxOccurs="unbounded">
+ <any namespace="##other" processContents="lax"/>
+ <!-- (1,1) elements from (1,unbounded) namespaces -->
+ </choice>
+ <attribute name="Target" type="anyURI" use="required"/>
+ <attribute name="Id" type="ID" use="optional"/>
+ </complexType>
+
+<!-- End Object (Manifest, SignatureProperty) -->
+
+<!-- Start Algorithm Parameters -->
+
+<simpleType name="HMACOutputLengthType">
+ <restriction base="integer"/>
+</simpleType>
+
+<!-- Start KeyValue Element-types -->
+
+<element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
+<complexType name="DSAKeyValueType">
+ <sequence>
+ <sequence minOccurs="0">
+ <element name="P" type="ds:CryptoBinary"/>
+ <element name="Q" type="ds:CryptoBinary"/>
+ </sequence>
+ <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
+ <element name="Y" type="ds:CryptoBinary"/>
+ <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
+ <sequence minOccurs="0">
+ <element name="Seed" type="ds:CryptoBinary"/>
+ <element name="PgenCounter" type="ds:CryptoBinary"/>
+ </sequence>
+ </sequence>
+</complexType>
+
+<element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
+<complexType name="RSAKeyValueType">
+ <sequence>
+ <element name="Modulus" type="ds:CryptoBinary"/>
+ <element name="Exponent" type="ds:CryptoBinary"/>
+ </sequence>
+</complexType>
+
+<!-- End KeyValue Element-types -->
+
+<!-- End Signature -->
+
+</schema>
Added: xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java
===================================================================
--- xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java (rev 0)
+++ xmlkey/trunk/xkms/src/test/java/org/jboss/test/identity/xkms/v2/model/LocateRequestUnitTest.java 2009-01-07 21:08:34 UTC (rev 204)
@@ -0,0 +1,90 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.identity.xkms.v2.model;
+
+import static org.junit.Assert.*;
+
+import java.io.ByteArrayOutputStream;
+import java.io.StringReader;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+
+import org.jboss.identity.xkms.v2.model.LocateRequestType;
+import org.jboss.identity.xkms.v2.model.ObjectFactory;
+import org.jboss.identity.xmlkey.common.JBossJAXBUtil;
+import org.junit.Test;
+
+/**
+ * Unit Test the LocateRequest construct
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jan 7, 2009
+ */
+public class LocateRequestUnitTest
+{
+ String pkg = "org.jboss.identity.xkms.v2.model";
+ String schema = "schema/v2/xkms.xsd";
+
+ ObjectFactory objectFactory = new ObjectFactory();
+
+ /**
+ <?xml version="1.0" encoding="utf-8"?>
+ <LocateRequest Id="Ia1d6ca7a067fdd545f1a1396d2f26779"
+ Service="http://www.example.org/XKMS"
+ xmlns="http://www.w3.org/2002/03/xkms#">
+ <ResponseMechanism>http://www.w3.org/2002/03/xkms#Represent</ResponseMechanism>
+ <QueryKeyBinding />
+ </LocateRequest>
+ * @throws Exception
+ */
+ @Test
+ public void testConstruction() throws Exception
+ {
+ String id = "Ia1d6ca7a067fdd545f1a1396d2f26779";
+ String service = "http://www.example.org/XKMS";
+ String responseMech = "http://www.w3.org/2002/03/xkms#Represent";
+
+ LocateRequestType lrt = objectFactory.createLocateRequestType();
+ lrt.setId(id);
+ lrt.setService(service);
+
+ lrt.setQueryKeyBinding(objectFactory.createQueryKeyBindingType());
+
+ lrt.getResponseMechanism().add(responseMech);
+
+ JAXBElement<LocateRequestType> jaxbLRT = objectFactory.createLocateRequest(lrt);
+
+ Marshaller m = JBossJAXBUtil.getValidatingMarshaller(pkg, schema);
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ m.marshal(jaxbLRT, baos);
+
+ StringReader sr = new StringReader(baos.toString());
+ Unmarshaller um = JBossJAXBUtil.getValidatingUnmarshaller(pkg, schema);
+ JAXBElement<LocateRequestType> jaxbLRTUM = (JAXBElement<LocateRequestType>) um.unmarshal(sr);
+
+ LocateRequestType lrtum = jaxbLRTUM.getValue();
+ assertEquals(id, lrtum.getId());
+ assertEquals(service, lrtum.getService());
+ assertEquals(responseMech, lrtum.getResponseMechanism().get(0));
+ }
+}
\ No newline at end of file
15 years, 4 months
JBoss Identity SVN: r203 - in identity-federation/trunk/identity-fed-model: src/test/java/org/jboss/test/identity/federation and 4 other directories.
by jboss-identity-commits@lists.jboss.org
Author: sguilhen(a)redhat.com
Date: 2009-01-07 14:31:25 -0500 (Wed, 07 Jan 2009)
New Revision: 203
Added:
identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/
identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/
identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java
identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/
identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/collection-request.xml
identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/simple-request.xml
Modified:
identity-federation/trunk/identity-fed-model/.classpath
identity-federation/trunk/identity-fed-model/.project
identity-federation/trunk/identity-fed-model/pom.xml
Log:
Added testcase to validate the unmarshalling of ws-trust messages
Modified: identity-federation/trunk/identity-fed-model/.classpath
===================================================================
--- identity-federation/trunk/identity-fed-model/.classpath 2009-01-07 19:16:28 UTC (rev 202)
+++ identity-federation/trunk/identity-fed-model/.classpath 2009-01-07 19:31:25 UTC (rev 203)
@@ -1,30 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="src" path="src/test/resources"/>
- <classpathentry kind="src" path="src/main/resources"/>
- <classpathentry kind="src" path="src/test/java"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="var" path="M2_REPO/opensaml/opensaml/2.1.0/opensaml-2.1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/opensaml/xmltooling/1.0.1/xmltooling-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.0/slf4j-api-1.5.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.0/slf4j-log4j12-1.5.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-xmlsec/xmlsec/1.3.0/xmlsec-1.3.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-logging/commons-logging-api/1.0.3/commons-logging-api-1.0.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-velocity/velocity/1.5/velocity-1.5.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/apache-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/opensaml/openws/1.1.0/openws-1.1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/joda-time/joda-time/1.5.2/joda-time-1.5.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-xacml-saml/2.0.3-SNAPSHOT/jboss-xacml-saml-2.0.3-SNAPSHOT.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-xacml/2.0.2.GA/jboss-xacml-2.0.2.GA.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar"/>
- <classpathentry kind="var" path="M2_REPO/sun-jaf/activation/1.1/activation-1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/codehaus-stax/stax/1.1.1/stax-1.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-api-1.0.jar"/>
- <classpathentry combineaccessrules="false" kind="src" path="/identity-xmlsecmodel"/>
- <classpathentry kind="output" path="target-eclipse/"/>
-</classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
+ <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
+ <classpathentry kind="src" path="src/test/resources" output="target/test-classes" excluding="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaf/activation/1.1/activation-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-logging/commons-logging-api/1.0.3/commons-logging-api-1.0.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/javolution/4.1.0/javolution-4.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-impl/2.1.4/jaxb-impl-2.1.4-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-xjc/2.1.4/jaxb-xjc-2.1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/jboss-identity-xmlsec-model/1.0.0-SNAPSHOT/jboss-identity-xmlsec-model-1.0.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/jboss/identity/jboss-identity-xmlsec-model/1.0.0-SNAPSHOT/jboss-identity-xmlsec-model-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-sunxacml/2.0.3-SNAPSHOT/jboss-sunxacml-2.0.3-SNAPSHOT.jar" sourcepath="M2_REPO/org/jboss/security/jboss-sunxacml/2.0.3-SNAPSHOT/jboss-sunxacml-2.0.3-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-xacml/2.0.3-SNAPSHOT/jboss-xacml-2.0.3-SNAPSHOT.jar" sourcepath="M2_REPO/org/jboss/security/jboss-xacml/2.0.3-SNAPSHOT/jboss-xacml-2.0.3-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-xacml-saml/2.0.3-SNAPSHOT/jboss-xacml-saml-2.0.3-SNAPSHOT.jar" sourcepath="M2_REPO/org/jboss/security/jboss-xacml-saml/2.0.3-SNAPSHOT/jboss-xacml-saml-2.0.3-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/net/sf/joda-time/1.4/joda-time-1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar"/>
+ <classpathentry kind="var" path="M2_REPO/opensaml/opensaml/2.2.0/opensaml-2.2.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/opensaml/openws/1.2.0/openws-1.2.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-xalan/serializer/2.7.0.patch01-brew/serializer-2.7.0.patch01-brew.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar" sourcepath="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.4.3/slf4j-log4j12-1.4.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/codehaus-stax/stax/1.1.1/stax-1.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-api-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/velocity/velocity-dep/1.5/velocity-dep-1.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-xalan/xalan/j_2.7.0/xalan-j_2.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-xerces/xml-apis/2.7.1/xml-apis-2.7.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apache-xmlsec/xmlsec/1.3.0/xmlsec-1.3.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/xmlsec/1.4.1/xmlsec-1.4.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/opensaml/xmltooling/1.1.0/xmltooling-1.1.0.jar"/>
+</classpath>
\ No newline at end of file
Modified: identity-federation/trunk/identity-fed-model/.project
===================================================================
--- identity-federation/trunk/identity-fed-model/.project 2009-01-07 19:16:28 UTC (rev 202)
+++ identity-federation/trunk/identity-fed-model/.project 2009-01-07 19:31:25 UTC (rev 203)
@@ -1,17 +1,13 @@
-<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>identity-fed-model</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+ <name>jboss-identity-fed-model</name>
+ <comment>JBoss Identity Federation Model contains the JAXB2 model.</comment>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Modified: identity-federation/trunk/identity-fed-model/pom.xml
===================================================================
--- identity-federation/trunk/identity-fed-model/pom.xml 2009-01-07 19:16:28 UTC (rev 202)
+++ identity-federation/trunk/identity-fed-model/pom.xml 2009-01-07 19:31:25 UTC (rev 203)
@@ -95,5 +95,11 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>apache-xalan</groupId>
+ <artifactId>serializer</artifactId>
+ <version>2.7.0.patch01-brew</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
Added: identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java
===================================================================
--- identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/test/java/org/jboss/test/identity/federation/ws/trust/UnmarshallingTestCase.java 2009-01-07 19:31:25 UTC (rev 203)
@@ -0,0 +1,140 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.identity.federation.ws.trust;
+
+import java.io.File;
+import java.net.URI;
+import java.util.List;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.bind.ValidationEvent;
+import javax.xml.bind.ValidationEventHandler;
+import javax.xml.bind.ValidationEventLocator;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+
+import junit.framework.TestCase;
+
+import org.jboss.identity.federation.ws.trust.RequestSecurityTokenType;
+
+/**
+ * <p>
+ * A {@code TestCase} that validates the unmarshalling of ws-trust messages.
+ * </p>
+ *
+ * @author <a href="mailto:sguilhen@redhat.com">Stefan Guilhen</a>
+ */
+public class UnmarshallingTestCase extends TestCase
+{
+
+ /**
+ * <p>
+ * Tests unmarshalling a simple ws-trust security token request.
+ * </p>
+ *
+ * @throws Exception if an error occurs while running the test.
+ */
+ @SuppressWarnings("unchecked")
+ public void testUnmarshallTokenRequest() throws Exception
+ {
+ JAXBContext context = JAXBContext.newInstance("org.jboss.identity.federation.ws.trust");
+ Unmarshaller unmarshaller = context.createUnmarshaller();
+ // this.setValidatingSchema("/schema/wstrust/v1_3/ws-trust-1.3.xsd", unmarshaller);
+
+ // unmarshall the sample security token request.
+ URI sampleURI = this.getClass().getResource("/wstrust/simple-request.xml").toURI();
+ Object object = unmarshaller.unmarshal(new File(sampleURI));
+ assertNotNull("Unexpected null object", object);
+ assertTrue("Unexpected object type", object instanceof JAXBElement);
+
+ JAXBElement element = (JAXBElement) object;
+ assertEquals("Invalid element name", "RequestSecurityToken", element.getName().getLocalPart());
+ assertEquals("Invalid element type", RequestSecurityTokenType.class, element.getDeclaredType());
+
+ // validate the request contents.
+ RequestSecurityTokenType request = (RequestSecurityTokenType) element.getValue();
+ List<Object> contents = request.getAny();
+ assertNotNull("Unexpected null request contents", contents);
+ assertEquals("Unexpected number of elements", 2, contents.size());
+
+ // first element should be TokenType.
+ JAXBElement<String> tokenType = (JAXBElement<String>) contents.get(0);
+ assertEquals("TokenType", tokenType.getName().getLocalPart());
+ assertEquals("http://example.org/mySpecialToken", tokenType.getValue());
+
+ // second element should be RequestType.
+ JAXBElement<String> requestType = (JAXBElement<String>) contents.get(1);
+ assertEquals("RequestType", requestType.getName().getLocalPart());
+ assertEquals("http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue", requestType.getValue());
+ }
+
+ public void testUnmarshallTokenCollectionRequest() throws Exception
+ {
+ JAXBContext context = JAXBContext
+ .newInstance("org.jboss.identity.federation.ws.trust");
+ Unmarshaller unmarshaller = context.createUnmarshaller();
+ // this.setValidatingSchema("/schema/wstrust/v1_3/ws-trust-1.3.xsd", unmarshaller);
+
+ // unmarshall the sample security token request.
+ URI sampleURI = this.getClass().getResource("/wstrust/collection-request.xml").toURI();
+ Object object = unmarshaller.unmarshal(new File(sampleURI));
+
+ JAXBElement element = (JAXBElement) object;
+ }
+
+ /**
+ * <p>
+ * Enable schema validation for the specified {@code Unmarshaller}.
+ * </p>
+ *
+ * @param schemaFile the location of the schema file.
+ * @param unmarshaller the {@code Unmarshaller} where schema validation will be enabled.
+ * @throws Exception if an error occurs while setting the schema.
+ */
+ private void setValidatingSchema(String schemaFile, Unmarshaller unmarshaller) throws Exception
+ {
+ // create the schema based on the schema file.
+ URI schemaURI = this.getClass().getResource(schemaFile).toURI();
+ SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = factory.newSchema(new File(schemaURI));
+
+ // set the schema and the event handler.
+ unmarshaller.setSchema(schema);
+ unmarshaller.setEventHandler(new ValidationEventHandler()
+ {
+ // allow unmarshalling to continue even if there are errors.
+ public boolean handleEvent(ValidationEvent ve)
+ {
+ if (ve.getSeverity() != ValidationEvent.WARNING)
+ {
+ ValidationEventLocator vel = ve.getLocator();
+ System.out.println("Line:Col[" + vel.getLineNumber() + ":" + vel.getColumnNumber() + "]:"
+ + ve.getMessage());
+ }
+ return true;
+ }
+ });
+ }
+}
Added: identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/collection-request.xml
===================================================================
--- identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/collection-request.xml (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/collection-request.xml 2009-01-07 19:31:25 UTC (rev 203)
@@ -0,0 +1,24 @@
+<wst:RequestSecurityTokenCollection xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy/"
+ xmlns:wsa="http://www.w3.org/2005/08/addressing/">
+
+ <!-- identity token request -->
+ <wst:RequestSecurityToken Context="http://www.example.com/1">
+ <wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</wst:TokenType>
+ <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/BatchIssue</wst:RequestType>
+ <wsp:AppliesTo>
+ <wsa:EndpointReference>
+ <wsa:Address>http://manufacturer.example.com/</wsa:Address>
+ </wsa:EndpointReference>
+ </wsp:AppliesTo>
+ <wsp:PolicyReference URI="http://manufacturer.example.com/IdentityPolicy"/>
+ </wst:RequestSecurityToken>
+
+ <!-- certification claim token request -->
+ <wst:RequestSecurityToken Context="http://www.example.com/2">
+ <wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</wst:TokenType>
+ <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512 /BatchIssue</wst:RequestType>
+ <wst:Claims>http://manufacturer.example.com/certification</wst:Claims>
+ <wsp:PolicyReference URI="http://certificationbody.example.org/certificationPolicy"/>
+ </wst:RequestSecurityToken>
+
+</wst:RequestSecurityTokenCollection>
Added: identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/simple-request.xml
===================================================================
--- identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/simple-request.xml (rev 0)
+++ identity-federation/trunk/identity-fed-model/src/test/resources/wstrust/simple-request.xml 2009-01-07 19:31:25 UTC (rev 203)
@@ -0,0 +1,4 @@
+<wst:RequestSecurityToken xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512/">
+ <wst:TokenType>http://example.org/mySpecialToken</wst:TokenType>
+ <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType>
+</wst:RequestSecurityToken>
\ No newline at end of file
15 years, 4 months
JBoss Identity SVN: r198 - idm and 1 other directory.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 12:49:52 -0500 (Wed, 07 Jan 2009)
New Revision: 198
Added:
trunk/
Removed:
idm/trunk/
Log:
move trunk into idm
Copied: trunk (from rev 197, idm/trunk)
15 years, 4 months
JBoss Identity SVN: r197 - xmlkey.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 12:48:16 -0500 (Wed, 07 Jan 2009)
New Revision: 197
Added:
xmlkey/trunk/
Log:
project xmlkey trunk
15 years, 4 months
JBoss Identity SVN: r196 - /.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 12:47:14 -0500 (Wed, 07 Jan 2009)
New Revision: 196
Added:
xmlkey/
Log:
project xmlkey
15 years, 4 months
JBoss Identity SVN: r195 - idm and 1 other directory.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-01-07 12:46:23 -0500 (Wed, 07 Jan 2009)
New Revision: 195
Added:
idm/tags/
Removed:
tags/
Log:
move tags into idm
Copied: idm/tags (from rev 194, tags)
15 years, 4 months