JBoss Identity SVN: r631 - in identity-federation/trunk: jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/util and 13 other directories.
by jboss-identity-commits@lists.jboss.org
Author: sguilhen(a)redhat.com
Date: 2009-06-24 17:18:18 -0400 (Wed, 24 Jun 2009)
New Revision: 631
Added:
identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/
identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-request.xml
identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-response.xml
Removed:
identity-federation/trunk/jboss-identity-fed-api/src/test/resources/keystore/sts_keystore.jks
Modified:
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/wstrust/JBossSTSConfiguration.java
identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/util/JNDIUtilUnitTestCase.java
identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/JBossSTSUnitTestCase.java
identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/SpecialTokenProvider.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/SecurityToken.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardRequestHandler.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardSecurityToken.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustConstants.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustRequestContext.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAML20TokenProvider.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAMLUtil.java
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/MockSTSConfiguration.java
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/SAML20TokenProviderUnitTestCase.java
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/WSTrustJAXBFactoryUnitTestCase.java
identity-federation/trunk/jboss-identity-webapps/circleoftrust/
identity-federation/trunk/jboss-identity-webapps/employee/
identity-federation/trunk/jboss-identity-webapps/idp/
identity-federation/trunk/jboss-identity-webapps/metadata/
identity-federation/trunk/jboss-identity-webapps/sales/
identity-federation/trunk/parent/pom.xml
Log:
JBID-124: Moved token signature and signature validation to the request handler. Changed WSTrustJAXBFactory to preserve token elements from the JAXB marshalling/unmarshalling. Updated the tests to reflect the changes.
Modified: identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/wstrust/JBossSTSConfiguration.java
===================================================================
--- identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/wstrust/JBossSTSConfiguration.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/wstrust/JBossSTSConfiguration.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -141,7 +141,7 @@
*
* @see org.jboss.identity.federation.api.wstrust.STSConfiguration#getEncryptIssuedToken()
*/
- public boolean getEncryptIssuedToken()
+ public boolean encryptIssuedToken()
{
return this.delegate.isEncryptToken();
}
@@ -149,6 +149,17 @@
/*
* (non-Javadoc)
*
+ * @see org.jboss.identity.federation.api.wstrust.STSConfiguration#signIssuedToken()
+ */
+ public boolean signIssuedToken()
+ {
+ //TODO: add the sign-by-default property to the configuration schema.
+ return true;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
* @see org.jboss.identity.federation.api.wstrust.STSConfiguration#getIssuedTokenTimeout()
*/
public long getIssuedTokenTimeout()
Modified: identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/util/JNDIUtilUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/util/JNDIUtilUnitTestCase.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/util/JNDIUtilUnitTestCase.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -31,7 +31,7 @@
*/
public class JNDIUtilUnitTestCase extends TestCase
{
- @SuppressWarnings("unchecked")
+// @SuppressWarnings("unchecked")
public void testJNDIConnection() throws Exception
{
/*Hashtable env = new Hashtable();
Modified: identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/JBossSTSUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/JBossSTSUnitTestCase.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/JBossSTSUnitTestCase.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -134,7 +134,8 @@
*
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testSTSConfiguration() throws Exception
{
@@ -144,7 +145,7 @@
// check the values that have been configured.
assertEquals("Unexpected service name", "Test STS", config.getSTSName());
assertEquals("Unexpected token timeout value", 7200 * 1000, config.getIssuedTokenTimeout());
- assertTrue("Encrypt token should be true", config.getEncryptIssuedToken());
+ assertTrue("Encrypt token should be true", config.encryptIssuedToken());
WSTrustRequestHandler handler = config.getRequestHandler();
assertNotNull("Unexpected null request handler found", handler);
assertTrue("Unexpected request handler type", handler instanceof StandardRequestHandler);
@@ -198,7 +199,8 @@
*
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeCustom() throws Exception
{
@@ -254,7 +256,8 @@
*
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeSAML20() throws Exception
{
@@ -282,7 +285,8 @@
* case, the request should be handled by the custom {@code SpecialTokenProvider}.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeCustomAppliesTo() throws Exception
{
@@ -310,7 +314,8 @@
* case, the request should be handled by the standard {@code SAML20TokenProvider}.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeSAML20AppliesTo() throws Exception
{
@@ -347,7 +352,8 @@
* the assertion validated, checking the validation results.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeSAML20Validate() throws Exception
{
@@ -361,7 +367,7 @@
// invoke the token service.
Source responseMessage = this.tokenService.invoke(requestMessage);
- BaseRequestSecurityTokenResponse baseResponse = WSTrustJAXBFactory.getInstance()
+ BaseRequestSecurityTokenResponse baseResponse = factory
.parseRequestSecurityTokenResponse(responseMessage);
// get the SAML assertion from the request.
@@ -378,7 +384,7 @@
// invoke the token service.
responseMessage = this.tokenService.invoke(factory.marshallRequestSecurityToken(request));
- baseResponse = WSTrustJAXBFactory.getInstance().parseRequestSecurityTokenResponse(responseMessage);
+ baseResponse = factory.parseRequestSecurityTokenResponse(responseMessage);
// validate the response contents.
assertNotNull("Unexpected null response", baseResponse);
@@ -395,6 +401,7 @@
// now let's temper the SAML assertion and try to validate it again.
assertion.getFirstChild().getFirstChild().setNodeValue("Tempered Issuer");
+ request.getValidateTarget().setAny(assertion);
responseMessage = this.tokenService.invoke(factory.marshallRequestSecurityToken(request));
collection = (RequestSecurityTokenResponseCollection) WSTrustJAXBFactory.getInstance()
.parseRequestSecurityTokenResponse(responseMessage);
@@ -414,7 +421,8 @@
* security token service.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testInvokeUnknownTokenType() throws Exception
{
@@ -443,12 +451,14 @@
/**
* <p>
- * Validates the contents of a WS-Trust response message that contains a custom token issued by the test
- * {@code SpecialTokenProvider}.
+ * Validates the contents of a WS-Trust response message that contains a custom token issued by the test {@code
+ * SpecialTokenProvider}.
* </p>
*
- * @param baseResponse a reference to the WS-Trust response that was sent by the STS.
- * @throws Exception if one of the validation performed fail.
+ * @param baseResponse
+ * a reference to the WS-Trust response that was sent by the STS.
+ * @throws Exception
+ * if one of the validation performed fail.
*/
private void validateCustomTokenResponse(BaseRequestSecurityTokenResponse baseResponse) throws Exception
{
@@ -481,14 +491,16 @@
/**
* <p>
- * Validates the contents of a WS-Trust response message that contains a SAMLV2.0 assertion issued by the
- * {@code SAML20TokenProvider}.
+ * Validates the contents of a WS-Trust response message that contains a SAMLV2.0 assertion issued by the {@code
+ * SAML20TokenProvider}.
* </p>
*
- * @param baseResponse a reference to the WS-Trust response that was sent by the STS.
+ * @param baseResponse
+ * a reference to the WS-Trust response that was sent by the STS.
* @return the SAMLV2.0 assertion that has been extracted from the response. This object can be used by the test
* methods to perform extra validations depending on the scenario being tested.
- * @throws Exception if one of the validation performed fail.
+ * @throws Exception
+ * if one of the validation performed fail.
*/
private AssertionType validateSAMLAssertionResponse(BaseRequestSecurityTokenResponse baseResponse) throws Exception
{
@@ -568,10 +580,14 @@
* Utility method that creates a simple WS-Trust request using the specified information.
* </p>
*
- * @param context a {@code String} that represents the request context.
- * @param requestType a {@code String} that represents the WS-Trust request type.
- * @param tokenType a {@code String} that represents the requested token type.
- * @param appliesToString a {@code String} that represents the URL of a service provider.
+ * @param context
+ * a {@code String} that represents the request context.
+ * @param requestType
+ * a {@code String} that represents the WS-Trust request type.
+ * @param tokenType
+ * a {@code String} that represents the requested token type.
+ * @param appliesToString
+ * a {@code String} that represents the URL of a service provider.
* @return the constructed {@code RequestSecurityToken} object.
*/
private RequestSecurityToken createRequest(String context, String requestType, String tokenType,
@@ -674,7 +690,8 @@
* Sets the principal to be used in the test case.
* </p>
*
- * @param principal the {@code Principal} to be set.
+ * @param principal
+ * the {@code Principal} to be set.
*/
public void setUserPrincipal(Principal principal)
{
Modified: identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/SpecialTokenProvider.java
===================================================================
--- identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/SpecialTokenProvider.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-bindings/src/test/java/org/jboss/test/identity/federation/bindings/wstrust/SpecialTokenProvider.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -26,6 +26,7 @@
import javax.xml.parsers.ParserConfigurationException;
+import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
import org.jboss.identity.federation.api.wstrust.SecurityToken;
import org.jboss.identity.federation.api.wstrust.SecurityTokenProvider;
import org.jboss.identity.federation.api.wstrust.StandardSecurityToken;
@@ -83,10 +84,12 @@
Element root = doc.createElementNS("http://www.tokens.org", "token:SpecialToken");
root.appendChild(doc.createTextNode("Principal:" + caller));
+ String id = IDGenerator.create("ID_");
+ root.setAttribute("ID", id);
root.setAttribute("TokenType", tokenType.toString());
doc.appendChild(root);
- SecurityToken token = new StandardSecurityToken(tokenType.toString(), root);
+ SecurityToken token = new StandardSecurityToken(tokenType.toString(), root, id);
context.setSecurityToken(token);
}
catch(ParserConfigurationException pce)
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -46,15 +46,24 @@
/**
* <p>
- * Indicates whether the issued token must be encrypted or not.
+ * Indicates whether the issued token should be encrypted or not.
* </p>
*
- * @return {@code true} if the issued token must be encrypted; {@code false} otherwise.
+ * @return {@code true} if the issued token is to be encrypted; {@code false} otherwise.
*/
- public boolean getEncryptIssuedToken();
+ public boolean encryptIssuedToken();
/**
* <p>
+ * Indicates whether the issued token should be digitally signed or not.
+ * </p>
+ *
+ * @return {@code true} if the issued token is to be signed; {@code false} otherwise.
+ */
+ public boolean signIssuedToken();
+
+ /**
+ * <p>
* Obtains the timeout value (in milliseconds) for issued tokens.
* </p>
*
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/SecurityToken.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/SecurityToken.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/SecurityToken.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -33,6 +33,15 @@
/**
* <p>
+ * Obtains the security token unique identifier.
+ * </p>
+ *
+ * @return a {@code String} representing the token id.
+ */
+ public String getTokenID();
+
+ /**
+ * <p>
* Obtains the type of the security token.
* </p>
*
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardRequestHandler.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardRequestHandler.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardRequestHandler.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -22,14 +22,23 @@
package org.jboss.identity.federation.api.wstrust;
import java.net.URI;
+import java.security.KeyPair;
import java.security.Principal;
import java.security.PublicKey;
+import javax.xml.crypto.dsig.DigestMethod;
+import javax.xml.crypto.dsig.SignatureMethod;
+
+import org.jboss.identity.federation.api.util.XMLSignatureUtil;
import org.jboss.identity.federation.api.wstrust.plugins.saml.SAMLUtil;
+import org.jboss.identity.federation.core.saml.v2.util.DocumentUtil;
import org.jboss.identity.federation.core.wstrust.RequestSecurityToken;
import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenResponse;
import org.jboss.identity.federation.ws.policy.AppliesTo;
import org.jboss.identity.federation.ws.trust.RequestedSecurityTokenType;
+import org.jboss.identity.federation.ws.trust.StatusType;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
/**
* <p>
@@ -48,7 +57,9 @@
/*
* (non-Javadoc)
*
- * @see org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#initialize(org.jboss.identity.federation.api.wstrust.STSConfiguration)
+ * @see
+ * org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#initialize(org.jboss.identity.federation.api.wstrust
+ * .STSConfiguration)
*/
public void initialize(STSConfiguration configuration)
{
@@ -58,8 +69,9 @@
/*
* (non-Javadoc)
*
- * @see org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#issue(org.jboss.identity.federation.api.wstrust.protocol.RequestSecurityToken,
- * java.security.Principal)
+ * @see
+ * org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#issue(org.jboss.identity.federation.api.wstrust
+ * .protocol.RequestSecurityToken, java.security.Principal)
*/
public RequestSecurityTokenResponse issue(RequestSecurityToken request, Principal callerPrincipal)
throws WSTrustException
@@ -97,13 +109,33 @@
// if no lifetime has been specified, use the configured timeout value.
request.setLifetime(WSTrustUtil.createDefaultLifetime(this.configuration.getIssuedTokenTimeout()));
}
- requestContext.setSTSKeyPair(this.configuration.getSTSKeyPair());
requestContext.setServiceProviderPublicKey(providerPublicKey);
provider.issueToken(requestContext);
if (requestContext.getSecurityToken() == null)
throw new WSTrustException("Token issued by provider " + provider.getClass().getName() + " is null");
+ // sign the issued token if needed.
+ if (this.configuration.signIssuedToken() && this.configuration.getSTSKeyPair() != null)
+ {
+ KeyPair keyPair = this.configuration.getSTSKeyPair();
+ if (keyPair != null)
+ {
+ URI signatureURI = request.getSignatureAlgorithm();
+ String signatureMethod = signatureURI != null ? signatureURI.toString() : SignatureMethod.RSA_SHA1;
+ try
+ {
+ Element tokenElement = (Element) requestContext.getSecurityToken().getTokenValue();
+ XMLSignatureUtil.sign(tokenElement.getOwnerDocument(), keyPair, DigestMethod.SHA1, signatureMethod,
+ "#" + requestContext.getSecurityToken().getTokenID());
+ }
+ catch (Exception e)
+ {
+ throw new WSTrustException("Failed to sign security token", e);
+ }
+ }
+ }
+
// construct the ws-trust security token response.
RequestedSecurityTokenType requestedSecurityToken = new RequestedSecurityTokenType();
requestedSecurityToken.setAny(requestContext.getSecurityToken().getTokenValue());
@@ -134,8 +166,9 @@
/*
* (non-Javadoc)
*
- * @see org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#renew(org.jboss.identity.federation.api.wstrust.protocol.RequestSecurityToken,
- * java.security.Principal)
+ * @see
+ * org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#renew(org.jboss.identity.federation.api.wstrust
+ * .protocol.RequestSecurityToken, java.security.Principal)
*/
public RequestSecurityTokenResponse renew(RequestSecurityToken request, Principal callerPrincipal)
throws WSTrustException
@@ -147,36 +180,73 @@
/*
* (non-Javadoc)
*
- * @see org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#validate(org.jboss.identity.federation.api.wstrust.protocol.RequestSecurityToken,
- * java.security.Principal)
+ * @see
+ * org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#validate(org.jboss.identity.federation.api.wstrust
+ * .protocol.RequestSecurityToken, java.security.Principal)
*/
public RequestSecurityTokenResponse validate(RequestSecurityToken request, Principal callerPrincipal)
throws WSTrustException
{
- if(request.getTokenType() == null)
+ if (request.getValidateTarget() == null)
+ throw new WSTrustException("Unable to validate token: validate target is null");
+
+ if (request.getTokenType() == null)
request.setTokenType(URI.create(WSTrustConstants.STATUS_TYPE));
-
+
// TODO: get the provider using the token from the request.
SecurityTokenProvider provider = this.configuration.getProviderForTokenType(SAMLUtil.SAML2_TOKEN_TYPE);
WSTrustRequestContext context = new WSTrustRequestContext(request, callerPrincipal);
- context.setSTSKeyPair(this.configuration.getSTSKeyPair());
+
+ StatusType status = null;
- provider.validateToken(context);
+ // validate the security token digital signature.
+ if (this.configuration.signIssuedToken() && this.configuration.getSTSKeyPair() != null)
+ {
+ KeyPair keyPair = this.configuration.getSTSKeyPair();
+ try
+ {
+ Element tokenElement = (Element) request.getValidateTarget().getAny();
+ Document tokenDocument = DocumentUtil.createDocument();
+ tokenDocument.appendChild(tokenDocument.importNode(tokenElement, true));
+ if (!XMLSignatureUtil.validate(tokenDocument, keyPair.getPublic()))
+ {
+ status = new StatusType();
+ status.setCode(WSTrustConstants.STATUS_CODE_INVALID);
+ status.setReason("Validation failure: digital signature is invalid");
+ }
+ }
+ catch (Exception e)
+ {
+ status = new StatusType();
+ status.setCode(WSTrustConstants.STATUS_CODE_INVALID);
+ status.setReason("Validation failure: unable to verify digital signature: " + e.getMessage());
+ }
+ }
+ // TODO: add logging statements alerting that signature validation was not perfomed.
+ // if the signature is valid, then let the provider handle perform any additional validation checks.
+ if(status == null)
+ {
+ provider.validateToken(context);
+ status = context.getStatus();
+ }
+
+ // construct and return the response.
RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
if (request.getContext() != null)
response.setContext(request.getContext());
response.setTokenType(request.getTokenType());
- response.setStatus(context.getStatus());
-
+ response.setStatus(status);
+
return response;
}
/*
* (non-Javadoc)
*
- * @see org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#cancel(org.jboss.identity.federation.api.wstrust.protocol.RequestSecurityToken,
- * java.security.Principal)
+ * @see
+ * org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler#cancel(org.jboss.identity.federation.api.wstrust
+ * .protocol.RequestSecurityToken, java.security.Principal)
*/
public RequestSecurityTokenResponse cancel(RequestSecurityToken request, Principal callerPrincipal)
throws WSTrustException
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardSecurityToken.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardSecurityToken.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/StandardSecurityToken.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -21,8 +21,6 @@
*/
package org.jboss.identity.federation.api.wstrust;
-import java.util.UUID;
-
import org.w3c.dom.Element;
/**
@@ -48,25 +46,14 @@
* Creates an instance of {@code StandardSecurityToken} with the specified parameters.
* </p>
*
- * @param tokenType a {@code String} representing the type of the security token. This is usually the same type as
- * specified in the WS-Trust request message.
- * @param token the security token in its {@code Element} form (i.e. the marshaled security token).
+ * @param tokenType
+ * a {@code String} representing the type of the security token. This is usually the same type as specified
+ * in the WS-Trust request message.
+ * @param token
+ * the security token in its {@code Element} form (i.e. the marshaled security token).
+ * @param tokenID
+ * a {@code String} representing the id of the security token.
*/
- public StandardSecurityToken(String tokenType, Element token)
- {
- this(tokenType, token, UUID.randomUUID().toString());
- }
-
- /**
- * <p>
- * Creates an instance of {@code StandardSecurityToken} with the specified parameters.
- * </p>
- *
- * @param tokenType a {@code String} representing the type of the security token. This is usually the same type as
- * specified in the WS-Trust request message.
- * @param token the security token in its {@code Element} form (i.e. the marshaled security token).
- * @param tokenID a {@code String} representing the id of the security token.
- */
public StandardSecurityToken(String tokenType, Element token, String tokenID)
{
this.tokenType = tokenType;
@@ -94,14 +81,12 @@
return this.token;
}
- /**
- * <p>
- * Obtains the id of the security token.
- * </p>
+ /*
+ * (non-Javadoc)
*
- * @return a {@code String} representing the security token id.
+ * @see org.jboss.identity.federation.api.wstrust.SecurityToken#getTokenID()
*/
- public String getTokenId()
+ public String getTokenID()
{
return this.tokenId;
}
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustConstants.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustConstants.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustConstants.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -30,13 +30,13 @@
*/
public class WSTrustConstants
{
- public static final String BASE_NAMESPACE = "http://docs.oasis-open.org/ws-sx/ws-trust/200512";
+ public static final String BASE_NAMESPACE = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/";
// WS-Trust request types.
- public static final String ISSUE_REQUEST = BASE_NAMESPACE + "/Issue";
- public static final String RENEW_REQUEST = BASE_NAMESPACE + "/Renew";
- public static final String CANCEL_REQUEST = BASE_NAMESPACE + "/Cancel";
- public static final String VALIDATE_REQUEST = BASE_NAMESPACE + "/Validate";
+ public static final String ISSUE_REQUEST = BASE_NAMESPACE + "Issue";
+ public static final String RENEW_REQUEST = BASE_NAMESPACE + "Renew";
+ public static final String CANCEL_REQUEST = BASE_NAMESPACE + "Cancel";
+ public static final String VALIDATE_REQUEST = BASE_NAMESPACE + "Validate";
// WS-Trust validation constants.
public static final String STATUS_TYPE = BASE_NAMESPACE + "/RSTR/Status";
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -25,21 +25,23 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
-import javax.xml.bind.util.JAXBSource;
import javax.xml.transform.Source;
+import javax.xml.transform.dom.DOMSource;
+import org.jboss.identity.federation.core.saml.v2.util.DocumentUtil;
import org.jboss.identity.federation.core.util.JAXBUtil;
import org.jboss.identity.federation.core.wstrust.BaseRequestSecurityToken;
import org.jboss.identity.federation.core.wstrust.BaseRequestSecurityTokenResponse;
import org.jboss.identity.federation.core.wstrust.RequestSecurityToken;
-import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenCollection;
import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenResponse;
import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenResponseCollection;
import org.jboss.identity.federation.ws.trust.ObjectFactory;
-import org.jboss.identity.federation.ws.trust.RequestSecurityTokenCollectionType;
import org.jboss.identity.federation.ws.trust.RequestSecurityTokenResponseCollectionType;
-import org.jboss.identity.federation.ws.trust.RequestSecurityTokenResponseType;
import org.jboss.identity.federation.ws.trust.RequestSecurityTokenType;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
/**
* <p>
@@ -51,12 +53,12 @@
public class WSTrustJAXBFactory
{
private static final WSTrustJAXBFactory instance = new WSTrustJAXBFactory();
-
+
private Marshaller marshaller;
-
+
private Unmarshaller unmarshaller;
- private final ObjectFactory factory;
+ private final ObjectFactory objectFactory;
/**
* <p>
@@ -64,11 +66,12 @@
* </p>
*/
private WSTrustJAXBFactory()
- {
+ {
try
- {
- marshaller = JAXBUtil.getMarshaller(getPackage());
- this.factory = new ObjectFactory();
+ {
+ this.marshaller = JAXBUtil.getMarshaller(this.getPackages());
+ this.unmarshaller = JAXBUtil.getUnmarshaller(this.getPackages());
+ this.objectFactory = new ObjectFactory();
}
catch (JAXBException e)
{
@@ -87,8 +90,8 @@
{
return instance;
}
-
- public String getPackage()
+
+ private String getPackages()
{
StringBuilder packages = new StringBuilder();
packages.append("org.jboss.identity.federation.ws.addressing");
@@ -98,36 +101,46 @@
packages.append(":org.jboss.identity.federation.ws.wss.utility");
return packages.toString();
}
-
+
/**
* <p>
* Creates a {@code BaseRequestSecurityToken} from the specified XML source.
* </p>
*
- * @param request the XML source containing the security token request message.
- * @return the constructed {@code BaseRequestSecurityToken} instance. It will be an instance of
- * {@code RequestSecurityToken} the message contains a single token request, and an instance of
- * {@code RequestSecurityTokenCollection} if multiples requests are being made in the same message.
+ * @param request
+ * the XML source containing the security token request message.
+ * @return the constructed {@code BaseRequestSecurityToken} instance. It will be an instance of {@code
+ * RequestSecurityToken} the message contains a single token request, and an instance of {@code
+ * RequestSecurityTokenCollection} if multiples requests are being made in the same message.
*/
public BaseRequestSecurityToken parseRequestSecurityToken(Source request)
{
+ // if the request contains a validate, cancel, or renew target, we must preserve it from JAXB unmarshalling.
+ Document document = (Document) ((DOMSource) request).getNode();
+ Element targetElement = this.getValidateOrRenewOrCancelTarget(document);
+
try
{
- Object object = getUnmarshaller().unmarshal(request);
-
- // check the type of the unmarshalled object.
- if (object instanceof RequestSecurityTokenType)
- return new RequestSecurityToken((RequestSecurityTokenType) object);
- else if (object instanceof RequestSecurityTokenCollectionType)
- return new RequestSecurityTokenCollection((RequestSecurityTokenCollectionType) object);
- else if (object instanceof JAXBElement)
+ Object object = this.unmarshaller.unmarshal(request);
+ if (object instanceof JAXBElement)
{
JAXBElement<?> element = (JAXBElement<?>) unmarshaller.unmarshal(request);
- // is this a single token request or a collection of token requests
if (element.getDeclaredType().equals(RequestSecurityTokenType.class))
- return new RequestSecurityToken((RequestSecurityTokenType) element.getValue());
- else if (element.getDeclaredType().equals(RequestSecurityTokenCollectionType.class))
- return new RequestSecurityTokenCollection((RequestSecurityTokenCollectionType) element.getValue());
+ {
+ RequestSecurityToken parsedRequest = new RequestSecurityToken((RequestSecurityTokenType) element
+ .getValue());
+ // insert the request target in the parsed request.
+ if (targetElement != null)
+ {
+ if (parsedRequest.getValidateTarget() != null)
+ parsedRequest.getValidateTarget().setAny(targetElement);
+ else if (parsedRequest.getRenewTarget() != null)
+ parsedRequest.getRenewTarget().setAny(targetElement);
+ else if (parsedRequest.getCancelTarget() != null)
+ parsedRequest.getCancelTarget().setAny(targetElement);
+ }
+ return parsedRequest;
+ }
else
throw new RuntimeException("Invalid request type: " + element.getDeclaredType());
}
@@ -145,30 +158,39 @@
* Creates a {@code BaseRequestSecurityTokenResponse} from the specified XML source.
* </p>
*
- * @param response the XML source containing the security token response message.
- * @return the constructed {@code BaseRequestSecurityTokenResponse} instance. It should return an instance of
- * {@code RequestSecurityTokenResponseCollection} according to the specification, but we allow a single
- * response to be returned in the form of a {@code RequestSecurityTokenResponse} instance.
+ * @param response
+ * the XML source containing the security token response message.
+ * @return the constructed {@code BaseRequestSecurityTokenResponse} instance. According to the WS-Trust
+ * specification, the returned object will be an instance of {@code RequestSecurityTokenResponseCollection}.
*/
public BaseRequestSecurityTokenResponse parseRequestSecurityTokenResponse(Source response)
{
+ // if the response contains an issued token, we must preserve it from the JAXB unmarshalling.
+ Element tokenElement = null;
+ Document document = (Document) ((DOMSource) response).getNode();
+ Node requestedTokenNode = this.findNodeByNameNS(document, "RequestedSecurityToken",
+ WSTrustConstants.BASE_NAMESPACE);
+ if (requestedTokenNode != null)
+ tokenElement = (Element) requestedTokenNode.getFirstChild();
+
try
{
- Object object = getUnmarshaller().unmarshal(response);
- // check the type of the response object.
- if (object instanceof RequestSecurityTokenResponseType)
- return new RequestSecurityTokenResponse((RequestSecurityTokenResponseType) object);
- else if (object instanceof RequestSecurityTokenResponseCollectionType)
- return new RequestSecurityTokenResponseCollection((RequestSecurityTokenResponseCollectionType) object);
- else if (object instanceof JAXBElement)
+ Object object = this.unmarshaller.unmarshal(response);
+ if (object instanceof JAXBElement)
{
JAXBElement<?> element = (JAXBElement<?>) unmarshaller.unmarshal(response);
- // is this a single token response or a collection of token responses
- if (element.getDeclaredType().equals(RequestSecurityTokenResponseType.class))
- return new RequestSecurityTokenResponse((RequestSecurityTokenResponseType) element.getValue());
- else if (element.getDeclaredType().equals(RequestSecurityTokenResponseCollectionType.class))
- return new RequestSecurityTokenResponseCollection((RequestSecurityTokenResponseCollectionType) element
- .getValue());
+ if (element.getDeclaredType().equals(RequestSecurityTokenResponseCollectionType.class))
+ {
+ RequestSecurityTokenResponseCollection collection = new RequestSecurityTokenResponseCollection(
+ (RequestSecurityTokenResponseCollectionType) element.getValue());
+ // insert the security token in the parsed response.
+ if (tokenElement != null)
+ {
+ RequestSecurityTokenResponse parsedResponse = collection.getRequestSecurityTokenResponses().get(0);
+ parsedResponse.getRequestedSecurityToken().setAny(tokenElement);
+ }
+ return collection;
+ }
else
throw new RuntimeException("Invalid response type: " + element.getDeclaredType());
}
@@ -186,33 +208,56 @@
* Creates a {@code javax.xml.transform.Source} from the specified request object.
* </p>
*
- * @param request a {@code BaseRequestSecurityToken} representing the object model of the security token request.
+ * @param request
+ * a {@code RequestSecurityToken} representing the object model of the security token request.
* @return the constructed {@code Source} instance.
*/
- public Source marshallRequestSecurityToken(BaseRequestSecurityToken request)
+ public Source marshallRequestSecurityToken(RequestSecurityToken request)
{
- JAXBElement<?> element = null;
- if (request instanceof RequestSecurityToken)
+ Element targetElement = null;
+ // if the request has a validate, cancel, or renew target, we must preserve it from JAXB marshaling.
+ String requestType = request.getRequestType().toString();
+ if (requestType.equalsIgnoreCase(WSTrustConstants.VALIDATE_REQUEST))
{
- RequestSecurityToken requestSecurityToken = (RequestSecurityToken) request;
- element = this.factory.createRequestSecurityToken(requestSecurityToken.getDelegate());
+ targetElement = (Element) request.getValidateTarget().getAny();
+ request.getValidateTarget().setAny(null);
}
- else if (request instanceof RequestSecurityTokenCollection)
+ else if (requestType.equalsIgnoreCase(WSTrustConstants.RENEW_REQUEST))
{
- RequestSecurityTokenCollection collection = (RequestSecurityTokenCollection) request;
- element = this.factory.createRequestSecurityTokenCollection(collection.getDelegate());
+ targetElement = (Element) request.getRenewTarget().getAny();
+ request.getRenewTarget().setAny(null);
}
- else
- throw new RuntimeException("Failed to determine the type of the security token request");
+ else if (requestType.equalsIgnoreCase(WSTrustConstants.CANCEL_REQUEST))
+ {
+ targetElement = (Element) request.getCancelTarget().getAny();
+ request.getCancelTarget().setAny(null);
+ }
+ Document result = null;
try
{
- return new JAXBSource(getMarshaller(), element);
+ result = DocumentUtil.createDocument();
+ this.marshaller.marshal(this.objectFactory.createRequestSecurityToken(request.getDelegate()), result);
+
+ // insert the original target in the appropriate element.
+ if (targetElement != null)
+ {
+ Node node = null;
+ if (requestType.equalsIgnoreCase(WSTrustConstants.VALIDATE_REQUEST))
+ node = this.findNodeByNameNS(result, "ValidateTarget", WSTrustConstants.BASE_NAMESPACE);
+ else if (requestType.equalsIgnoreCase(WSTrustConstants.RENEW_REQUEST))
+ node = this.findNodeByNameNS(result, "RenewTarget", WSTrustConstants.BASE_NAMESPACE);
+ else if (requestType.equalsIgnoreCase(WSTrustConstants.CANCEL_REQUEST))
+ node = this.findNodeByNameNS(result, "CancelTarget", WSTrustConstants.BASE_NAMESPACE);
+ node.appendChild(result.importNode(targetElement, true));
+ }
}
- catch (JAXBException je)
+ catch (Exception e)
{
- throw new RuntimeException("Failed to marshall security token request", je);
+ throw new RuntimeException("Failed to marshall security token request", e);
}
+
+ return new DOMSource(result);
}
/**
@@ -220,49 +265,92 @@
* Creates a {@code javax.xml.transform.Source} from the specified response object.
* </p>
*
- * @param response a {@code BaseRequestSecurityTokenResponse} representing the object model of the security token
- * response.
+ * @param collection
+ * a {@code RequestSecurityTokenResponseCollection} representing the object model of the security token
+ * response.
* @return the constructed {@code Source} instance.
*/
- public Source marshallRequestSecurityTokenResponse(BaseRequestSecurityTokenResponse response)
+ public Source marshallRequestSecurityTokenResponse(RequestSecurityTokenResponseCollection collection)
{
- JAXBElement<?> element = null;
- if (response instanceof RequestSecurityTokenResponse)
+ if (collection.getRequestSecurityTokenResponses().size() == 0)
+ throw new IllegalArgumentException("The response collection must contain at least one response");
+
+ // if the response contains an issued token, we must preserve it from the JAXB marshaling.
+ Element tokenElement = null;
+ RequestSecurityTokenResponse response = collection.getRequestSecurityTokenResponses().get(0);
+ if (response.getRequestedSecurityToken() != null)
{
- RequestSecurityTokenResponse requestSecurityTokenResponse = (RequestSecurityTokenResponse) response;
- element = this.factory.createRequestSecurityTokenResponse(requestSecurityTokenResponse.getDelegate());
+ tokenElement = (Element) response.getRequestedSecurityToken().getAny();
+ // we don't want to marshall any token - it will be inserted in the DOM document later.
+ response.getRequestedSecurityToken().setAny(null);
}
- else if (response instanceof RequestSecurityTokenResponseCollection)
- {
- RequestSecurityTokenResponseCollection collection = (RequestSecurityTokenResponseCollection) response;
- element = this.factory.createRequestSecurityTokenResponseCollection(collection.getDelegate());
- }
- else
- throw new RuntimeException("Failed to determine the type of the security token response");
+ Document result = null;
try
{
- return new JAXBSource(getMarshaller(), element);
+ // marshall the response to a document and insert the issued token directly on the document.
+ result = DocumentUtil.createDocument();
+ this.marshaller.marshal(this.objectFactory.createRequestSecurityTokenResponseCollection(collection
+ .getDelegate()), result);
+
+ // the document is a ws-trust template - we need to insert the token in the appropriate element.
+ if (tokenElement != null)
+ {
+ Node node = this.findNodeByNameNS(result, "RequestedSecurityToken", WSTrustConstants.BASE_NAMESPACE);
+ node.appendChild(result.importNode(tokenElement, true));
+ }
}
- catch (JAXBException je)
+ catch (Exception e)
{
- throw new RuntimeException("Failed to marshall security token request", je);
+ throw new RuntimeException("Failed to marshall security token response", e);
}
+ return new DOMSource(result);
}
-
- private Unmarshaller getUnmarshaller() throws JAXBException
+ /**
+ * <p>
+ * Finds in the specified document a node that matches the specified name and namespace.
+ * </p>
+ *
+ * @param document
+ * the {@code Document} instance upon which the search is made.
+ * @param localName
+ * a {@code String} containing the local name of the searched node.
+ * @param namespace
+ * a {@code String} containing the namespace of the searched node.
+ * @return a {@code Node} representing the searched node. If more than one node is found in the document, the first
+ * one will be returned. If no nodes were found according to the search parameters, then {@code null} is
+ * returned.
+ */
+ private Node findNodeByNameNS(Document document, String localName, String namespace)
{
- if(unmarshaller == null)
- unmarshaller = JAXBUtil.getUnmarshaller(getPackage());
- return unmarshaller;
+ NodeList list = document.getElementsByTagNameNS(namespace, localName);
+ if (list == null || list.getLength() == 0)
+ // log("Unable to locate element " + localName + " with namespace " + namespace);
+ return null;
+ return list.item(0);
}
- private Marshaller getMarshaller() throws JAXBException
+ /**
+ * <p>
+ * Searches the specified document for an element that represents a validate, renew, or cancel target.
+ * </p>
+ *
+ * @param document
+ * the {@code Document} upon which the search is to be made.
+ * @return an {@code Element} representing the validate, renew, or cancel target.
+ */
+ private Element getValidateOrRenewOrCancelTarget(Document document)
{
- if(marshaller == null)
- marshaller = JAXBUtil.getMarshaller(getPackage());
- return marshaller;
+ Node target = this.findNodeByNameNS(document, "ValidateTarget", WSTrustConstants.BASE_NAMESPACE);
+ if (target != null)
+ return (Element) target.getFirstChild();
+ target = this.findNodeByNameNS(document, "RenewTarget", WSTrustConstants.BASE_NAMESPACE);
+ if (target != null)
+ return (Element) target.getFirstChild();
+ target = this.findNodeByNameNS(document, "CancelTarget", WSTrustConstants.BASE_NAMESPACE);
+ if (target != null)
+ return (Element) target.getFirstChild();
+ return null;
}
-
}
\ No newline at end of file
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustRequestContext.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustRequestContext.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustRequestContext.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -21,7 +21,6 @@
*/
package org.jboss.identity.federation.api.wstrust;
-import java.security.KeyPair;
import java.security.Principal;
import java.security.PublicKey;
@@ -44,8 +43,6 @@
// information supplied by the request handler.
private String tokenIssuer;
- private KeyPair stsKeyPair;
-
private PublicKey providerPublicKey;
private final Principal callerPrincipal;
@@ -102,30 +99,6 @@
/**
* <p>
- * Returns a reference to the {@code KeyPair} instance that holds the STS {@code PrivateKey} and {@code PublicKey}.
- * </p>
- *
- * @return a reference to the STS {@code KeyPair}.
- */
- public KeyPair getSTSKeyPair()
- {
- return this.stsKeyPair;
- }
-
- /**
- * <p>
- * Sets the {@code KeyPair} instance that holds the STS {@code PrivateKey} and {@code PublicKey}.
- * </p>
- *
- * @param stsKeyPair a reference to the {@code KeyPair} instance to be set.
- */
- public void setSTSKeyPair(KeyPair stsKeyPair)
- {
- this.stsKeyPair = stsKeyPair;
- }
-
- /**
- * <p>
* Obtains the {@code PublicKey} of the service provider that requires a security token.
* </p>
*
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAML20TokenProvider.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAML20TokenProvider.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAML20TokenProvider.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -21,18 +21,13 @@
*/
package org.jboss.identity.federation.api.wstrust.plugins.saml;
-import java.net.URI;
-import java.security.KeyPair;
import java.security.Principal;
import java.util.HashMap;
import java.util.Map;
-import javax.xml.crypto.dsig.DigestMethod;
-import javax.xml.crypto.dsig.SignatureMethod;
import javax.xml.namespace.QName;
import org.jboss.identity.federation.api.saml.v2.common.IDGenerator;
-import org.jboss.identity.federation.api.util.XMLSignatureUtil;
import org.jboss.identity.federation.api.wstrust.SecurityToken;
import org.jboss.identity.federation.api.wstrust.SecurityTokenProvider;
import org.jboss.identity.federation.api.wstrust.StandardSecurityToken;
@@ -40,7 +35,6 @@
import org.jboss.identity.federation.api.wstrust.WSTrustException;
import org.jboss.identity.federation.api.wstrust.WSTrustRequestContext;
import org.jboss.identity.federation.api.wstrust.WSTrustUtil;
-import org.jboss.identity.federation.core.exceptions.ConfigurationException;
import org.jboss.identity.federation.core.saml.v2.factories.SAMLAssertionFactory;
import org.jboss.identity.federation.core.saml.v2.util.AssertionUtil;
import org.jboss.identity.federation.core.wstrust.Lifetime;
@@ -55,7 +49,6 @@
import org.jboss.identity.federation.ws.trust.StatusType;
import org.jboss.identity.federation.ws.trust.ValidateTargetType;
import org.jboss.identity.federation.ws.wss.secext.KeyIdentifierType;
-import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
@@ -86,7 +79,7 @@
public void issueToken(WSTrustRequestContext context) throws WSTrustException
{
// generate an id for the new assertion.
- String assertionID = IDGenerator.create("ID-");
+ String assertionID = IDGenerator.create("ID_");
// lifetime and audience restrictions.
Lifetime lifetime = context.getRequestSecurityToken().getLifetime();
@@ -116,34 +109,18 @@
conditions, subject, null);
// convert the constructed assertion to element.
- Document document = null;
+ Element assertionElement = null;
try
{
- document = SAMLUtil.toDocument(assertion);
+ assertionElement = SAMLUtil.toElement(assertion);
}
catch (Exception e)
{
throw new WSTrustException("Failed to marshall SAMLV2 assertion", e);
}
- // sign the generated SAML assertion.
- KeyPair keyPair = context.getSTSKeyPair();
- if (keyPair != null)
- {
- URI signatureURI = context.getRequestSecurityToken().getSignatureAlgorithm();
- String signatureMethod = signatureURI != null ? signatureURI.toString() : SignatureMethod.RSA_SHA1;
- try
- {
- XMLSignatureUtil.sign(document, keyPair, DigestMethod.SHA1, signatureMethod, "#" + assertionID);
- }
- catch (Exception e)
- {
- throw new WSTrustException("Failed to sign SAMLV2 assertion", e);
- }
- }
-
SecurityToken token = new StandardSecurityToken(context.getRequestSecurityToken().getTokenType().toString(),
- document.getDocumentElement(), assertionID);
+ assertionElement, assertionID);
context.setSecurityToken(token);
// set the SAML assertion attached reference.
@@ -187,35 +164,17 @@
}
else
{
- AssertionType assertion = null;
-
- // validate the SAML assertion digital signature.
- KeyPair keyPair = context.getSTSKeyPair();
+ // check the assertion lifetime.
try
{
- assertion = SAMLUtil.fromDocument(assertionElement.getOwnerDocument());
- if(!XMLSignatureUtil.validate(SAMLUtil.toDocument(assertion), keyPair.getPublic()))
- {
- code = WSTrustConstants.STATUS_CODE_INVALID;
- reason = "Validation failure: digital signature is invalid";
- }
- }
- catch (Exception e)
- {
- code = WSTrustConstants.STATUS_CODE_INVALID;
- reason = "Validation failure: unable to verify digital signature: " + e.getMessage();
- }
-
- // if the signature is valid, check the lifetime.
- try
- {
+ AssertionType assertion = SAMLUtil.fromElement(assertionElement);
if(AssertionUtil.hasExpired(assertion))
{
code = WSTrustConstants.STATUS_CODE_INVALID;
reason = "Validation failure: assertion expired or used before its lifetime period";
}
}
- catch(ConfigurationException ce)
+ catch(Exception ce)
{
code = WSTrustConstants.STATUS_CODE_INVALID;
reason = "Validation failure: unable to verify assertion lifetime: " + ce.getMessage();
Modified: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAMLUtil.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAMLUtil.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/plugins/saml/SAMLUtil.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -27,15 +27,13 @@
import javax.xml.bind.Unmarshaller;
import javax.xml.transform.dom.DOMResult;
-import org.jboss.identity.federation.api.wstrust.WSTrustConstants;
import org.jboss.identity.federation.core.saml.v2.util.DocumentUtil;
import org.jboss.identity.federation.core.util.JAXBUtil;
import org.jboss.identity.federation.saml.v2.assertion.AssertionType;
import org.jboss.identity.federation.saml.v2.assertion.ObjectFactory;
import org.w3c.dom.Document;
+import org.w3c.dom.Element;
-import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
-
/**
* <p>
* This class contains utility methods and constants that are used by the SAML token providers.
@@ -54,37 +52,39 @@
/**
* <p>
- * Utility method that marshals the specified {@code AssertionType} object into a {@code Document} instance.
+ * Utility method that marshals the specified {@code AssertionType} object into an {@code Element} instance.
* </p>
*
- * @param assertion an {@code AssertionType} object representing the SAML assertion to be marshaled.
- * @return a reference to the {@code Document} that contains the marshaled SAML assertion.
- * @throws Exception if an error occurs while marshaling the assertion.
+ * @param assertion
+ * an {@code AssertionType} object representing the SAML assertion to be marshaled.
+ * @return a reference to the {@code Element} that contains the marshaled SAML assertion.
+ * @throws Exception
+ * if an error occurs while marshaling the assertion.
*/
- public static Document toDocument(AssertionType assertion) throws Exception
+ public static Element toElement(AssertionType assertion) throws Exception
{
- Document document = DocumentUtil.createDocument();
+ Document document = DocumentUtil.createDocument();
DOMResult result = new DOMResult(document);
Marshaller marshaller = JAXBUtil.getMarshaller("org.jboss.identity.federation.saml.v2.assertion");
- marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper", new DefaultPrefixMapper());
marshaller.marshal(new ObjectFactory().createAssertion(assertion), result);
- return document;
+ return document.getDocumentElement();
}
/**
* <p>
- * Utility method that unmarshals the specified {@code Document} into an {@code AssertionType} instance.
+ * Utility method that unmarshals the specified {@code Element} into an {@code AssertionType} instance.
* </p>
*
- * @param document the {@code Document} that contains a marshaled SAMLV2.0 Assertion.
+ * @param assertionElement
+ * the {@code Element} that contains the marshaled SAMLV2.0 assertion.
* @return a reference to the unmarshaled {@code AssertionType} instance.
- * @throws JAXBException if an error occurs while unmarshaling the document.
+ * @throws JAXBException if an error occurs while unmarshalling the document.
*/
- public static AssertionType fromDocument(Document document) throws JAXBException
- {
+ public static AssertionType fromElement(Element assertionElement) throws JAXBException
+ {
Unmarshaller unmarshaller = JAXBUtil.getUnmarshaller("org.jboss.identity.federation.saml.v2.assertion");
- Object object = unmarshaller.unmarshal(document);
+ Object object = unmarshaller.unmarshal(assertionElement);
if (object instanceof AssertionType)
return (AssertionType) object;
else if (object instanceof JAXBElement)
@@ -95,35 +95,4 @@
}
throw new IllegalArgumentException("Supplied document does not contain a SAMLV2.0 Assertion");
}
-
- /**
- * <p>
- * A {@code NamespacePrefixMapper} implementation that maps the most used namespaces to commonly used prefixes.
- * </p>
- *
- * @author <a href="mailto:sguilhen@redhat.com">Stefan Guilhen</a>
- */
- static class DefaultPrefixMapper extends NamespacePrefixMapper
- {
- @Override
- public String getPreferredPrefix(String namespaceURI, String suggestion, boolean requirePrefix)
- {
- if (WSTrustConstants.WSA_NS.equals(namespaceURI))
- return "wsa";
- else if (WSTrustConstants.WSU_NS.equals(namespaceURI))
- return "wsu";
- else if (WSTrustConstants.WSSE_NS.equals(namespaceURI))
- return "wsse";
- else if (WSTrustConstants.WSSE11_NS.equals(namespaceURI))
- return "wsse11";
- else if (WSTrustConstants.XENC_NS.equals(namespaceURI))
- return "xenc";
- else if (WSTrustConstants.DSIG_NS.equals(namespaceURI))
- return "ds";
- else if (WSTrustConstants.SAML2_ASSERTION_NS.equals(namespaceURI))
- return "saml2";
- else
- return null;
- }
- }
}
Modified: identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/MockSTSConfiguration.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/MockSTSConfiguration.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/MockSTSConfiguration.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -45,13 +45,22 @@
*
* @see org.jboss.identity.federation.api.wstrust.STSConfiguration#getEncryptIssuedToken()
*/
- public boolean getEncryptIssuedToken()
+ public boolean encryptIssuedToken()
{
return false;
}
/*
* (non-Javadoc)
+ * @see org.jboss.identity.federation.api.wstrust.STSConfiguration#signIssuedToken()
+ */
+ public boolean signIssuedToken()
+ {
+ return true;
+ }
+
+ /*
+ * (non-Javadoc)
*
* @see org.jboss.identity.federation.api.wstrust.STSConfiguration#getIssuedTokenTimeout()
*/
Modified: identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/SAML20TokenProviderUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/SAML20TokenProviderUnitTestCase.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/SAML20TokenProviderUnitTestCase.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -21,13 +21,8 @@
*/
package org.jboss.test.identity.federation.api.wstrust;
-import java.io.InputStream;
import java.net.URI;
-import java.security.KeyPair;
-import java.security.KeyStore;
import java.security.Principal;
-import java.security.PrivateKey;
-import java.security.PublicKey;
import java.util.GregorianCalendar;
import javax.xml.bind.JAXBContext;
@@ -85,7 +80,6 @@
WSTrustRequestContext context = new WSTrustRequestContext(request, new TestPrincipal("sguilhen"));
context.setTokenIssuer("JBossSTS");
- context.setSTSKeyPair(this.getKeyPair("keystore/sts_keystore.jks", "testpass", "sts", "keypass"));
// call the SAML token provider and check the generated token.
new SAML20TokenProvider().issueToken(context);
@@ -100,7 +94,7 @@
AssertionType assertion = (AssertionType) parsedElement.getValue();
StandardSecurityToken securityToken = (StandardSecurityToken) context.getSecurityToken();
- assertEquals("Unexpected token id", securityToken.getTokenId(), assertion.getID());
+ assertEquals("Unexpected token id", securityToken.getTokenID(), assertion.getID());
assertEquals("Unexpected token issuer", "JBossSTS", assertion.getIssuer().getValue());
// check the contents of the assertion conditions.
@@ -133,9 +127,6 @@
SubjectConfirmationType confirmation = (SubjectConfirmationType) content.getValue();
assertEquals("Unexpected confirmation method", SAMLUtil.SAML2_BEARER_URI, confirmation.getMethod());
- // verify if the assertion has been signed.
- assertNotNull("Assertion should have been signed", assertion.getSignature());
-
// validate the attached token reference created by the SAML provider.
RequestedReferenceType reference = context.getAttachedReference();
assertNotNull("Unexpected null attached reference", reference);
@@ -179,14 +170,6 @@
assertEquals("Unexpected status code", WSTrustConstants.STATUS_CODE_VALID, status.getCode());
assertEquals("Unexpected status reason", "SAMLV2.0 Assertion successfuly validated", status.getReason());
- // now let's temper the assertion and try to validate it again.
- assertion.getFirstChild().getFirstChild().setNodeValue("Tempered Issuer");
- provider.validateToken(context);
- status = context.getStatus();
- assertNotNull("Unexpected null status type", status);
- assertEquals("Unexpected status code", WSTrustConstants.STATUS_CODE_INVALID, status.getCode());
- assertEquals("Unexpected status reason", "Validation failure: digital signature is invalid", status.getReason());
-
// now let's create a new SAMLV2.0 assertion with an expired lifetime.
long currentTimeMillis = System.currentTimeMillis();
GregorianCalendar created = new GregorianCalendar();
@@ -210,30 +193,6 @@
/**
* <p>
- * Utility method that retrieves the signing key and corresponding public key from the specified keystore.
- * </p>
- *
- * @param keyStoreFile a {@code String} representing the keystore file path.
- * @param keyStorePass a {@code String} representing the keystore password.
- * @param signingKeyAlias a {@code String} representing the alias of the private key.
- * @param signingKeyPass a {@code String} representing the password that protects the private key.
- *
- * @return a {@code KeyPair} instance containing the retrieved private and public keys.
- */
- private KeyPair getKeyPair(String keyStoreFile, String keyStorePass, String signingKeyAlias, String signingKeyPass)
- throws Exception
- {
- InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(keyStoreFile);
- KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
- keyStore.load(stream, keyStorePass.toCharArray());
-
- PrivateKey privateKey = (PrivateKey) keyStore.getKey(signingKeyAlias, signingKeyPass.toCharArray());
- PublicKey publicKey = keyStore.getCertificate(signingKeyAlias).getPublicKey();
- return new KeyPair(publicKey, privateKey);
- }
-
- /**
- * <p>
* Creates a {@code WSTrustRequestContext} using the specified lifetime. The created context is used in the issuing
* test scenarios.
* </p>
@@ -252,9 +211,7 @@
request.setTokenType(URI.create(SAMLUtil.SAML2_TOKEN_TYPE));
WSTrustRequestContext context = new WSTrustRequestContext(request, new TestPrincipal("sguilhen"));
- KeyPair keyPair = this.getKeyPair("keystore/sts_keystore.jks", "testpass", "sts", "keypass");
context.setTokenIssuer("JBossSTS");
- context.setSTSKeyPair(keyPair);
return context;
}
@@ -278,8 +235,6 @@
request.setValidateTarget(validateTarget);
WSTrustRequestContext context = new WSTrustRequestContext(request, new TestPrincipal("sguilhen"));
- KeyPair keyPair = this.getKeyPair("keystore/sts_keystore.jks", "testpass", "sts", "keypass");
- context.setSTSKeyPair(keyPair);
return context;
}
Modified: identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/WSTrustJAXBFactoryUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/WSTrustJAXBFactoryUnitTestCase.java 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/wstrust/WSTrustJAXBFactoryUnitTestCase.java 2009-06-24 21:18:18 UTC (rev 631)
@@ -23,21 +23,19 @@
import java.net.URI;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.util.JAXBSource;
import javax.xml.transform.Source;
+import javax.xml.transform.dom.DOMSource;
import junit.framework.TestCase;
import org.jboss.identity.federation.api.wstrust.WSTrustJAXBFactory;
+import org.jboss.identity.federation.core.saml.v2.util.DocumentUtil;
import org.jboss.identity.federation.core.wstrust.BaseRequestSecurityToken;
import org.jboss.identity.federation.core.wstrust.BaseRequestSecurityTokenResponse;
import org.jboss.identity.federation.core.wstrust.RequestSecurityToken;
-import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenCollection;
import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenResponse;
import org.jboss.identity.federation.core.wstrust.RequestSecurityTokenResponseCollection;
-import org.jboss.identity.federation.ws.trust.ObjectFactory;
+import org.w3c.dom.Document;
/**
* <p>
@@ -49,45 +47,23 @@
public class WSTrustJAXBFactoryUnitTestCase extends TestCase
{
- private JAXBContext context;
-
- /*
- * (non-Javadoc)
- *
- * @see junit.framework.TestCase#setUp()
- */
- @Override
- protected void setUp() throws Exception
- {
- StringBuffer packages = new StringBuffer();
- packages.append("org.jboss.identity.federation.ws.addressing");
- packages.append(":org.jboss.identity.federation.ws.policy");
- packages.append(":org.jboss.identity.federation.ws.trust");
- packages.append(":org.jboss.identity.federation.ws.wss.secext");
- packages.append(":org.jboss.identity.federation.ws.wss.utility");
- this.context = JAXBContext.newInstance(packages.toString());
- }
-
/**
* <p>
* Tests parsing a WS-Trust request message.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testParseRequestSecurityToken() throws Exception
{
- // create a sample ws-trust request.
- RequestSecurityToken request = new RequestSecurityToken();
- request.setContext("testcontext");
- request.setTokenType(new URI("http://example.org/specialToken"));
- request.setRequestType(new URI("http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue"));
+ // load a sample ws-trust request from a test file.
+ Document document = DocumentUtil
+ .getDocument(this.getClass().getResourceAsStream("/wstrust/ws-trust-request.xml"));
// encapsulate the request in a source object.
- ObjectFactory objectFactory = new ObjectFactory();
- JAXBElement<?> element = objectFactory.createRequestSecurityToken(request.getDelegate());
- JAXBSource source = new JAXBSource(this.context, element);
-
+ Source source = new DOMSource(document);
+
// parse the request using the WSTrustJAXBFactory.
WSTrustJAXBFactory factory = WSTrustJAXBFactory.getInstance();
BaseRequestSecurityToken baseRequest = factory.parseRequestSecurityToken(source);
@@ -97,22 +73,9 @@
assertTrue("Unexpected request message type", baseRequest instanceof RequestSecurityToken);
RequestSecurityToken parsedRequest = (RequestSecurityToken) baseRequest;
assertEquals("Unexpected context name", "testcontext", parsedRequest.getContext());
- assertEquals("Unexpected token type", "http://example.org/specialToken", parsedRequest.getTokenType().toString());
+ assertEquals("Unexpected token type", "http://www.tokens.org/SpecialToken", parsedRequest.getTokenType().toString());
assertEquals("Unexpected request type", "http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue", parsedRequest
.getRequestType().toString());
-
- // repeat the test, this time using a request collection instead of a single request.
- RequestSecurityTokenCollection collection = new RequestSecurityTokenCollection();
- collection.addRequestSecurityToken(request);
- element = objectFactory.createRequestSecurityTokenCollection(collection.getDelegate());
- source = new JAXBSource(this.context, element);
-
- baseRequest = factory.parseRequestSecurityToken(source);
- assertNotNull("Unexpected null request message", baseRequest);
- assertTrue("Unexpected request message type", baseRequest instanceof RequestSecurityTokenCollection);
- RequestSecurityTokenCollection parsedCollection = (RequestSecurityTokenCollection) baseRequest;
- assertNotNull("Unexpected null request list", parsedCollection.getRequestSecurityTokens());
- assertEquals("Unexpected number of requests", 1, parsedCollection.getRequestSecurityTokens().size());
}
/**
@@ -120,20 +83,17 @@
* Tests parsing a WS-Trust response message.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testParseRequestSecurityTokenResponse() throws Exception
{
- // create a sample ws-trust response message.
- RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
- response.setContext("testcontext");
- response.setTokenType(new URI("http://example.org/specialToken"));
- response.setForwardable(false);
+ // load a ws-trust response from a file.
+ Document document = DocumentUtil.getDocument(this.getClass()
+ .getResourceAsStream("/wstrust/ws-trust-response.xml"));
// encapsulate the response in a source object.
- ObjectFactory objectFactory = new ObjectFactory();
- JAXBElement<?> element = objectFactory.createRequestSecurityTokenResponse(response.getDelegate());
- JAXBSource source = new JAXBSource(this.context, element);
+ Source source = new DOMSource(document);
// parse the response using the WSTrustJAXBFactory.
WSTrustJAXBFactory factory = WSTrustJAXBFactory.getInstance();
@@ -141,24 +101,16 @@
assertNotNull("Unexpected null response message", baseResponse);
// check the contents of the parsed response.
- assertTrue("Unexpected response message type", baseResponse instanceof RequestSecurityTokenResponse);
- RequestSecurityTokenResponse parsedResponse = (RequestSecurityTokenResponse) baseResponse;
- assertEquals("Unexpected context name", "testcontext", parsedResponse.getContext());
- assertEquals("Unexpected token type", "http://example.org/specialToken", parsedResponse.getTokenType().toString());
- assertFalse(parsedResponse.isForwardable());
-
- // repeat the test, this time using a response collection instead of a single response.
- RequestSecurityTokenResponseCollection collection = new RequestSecurityTokenResponseCollection();
- collection.addRequestSecurityTokenResponse(response);
- element = objectFactory.createRequestSecurityTokenResponseCollection(collection.getDelegate());
- source = new JAXBSource(this.context, element);
-
- baseResponse = factory.parseRequestSecurityTokenResponse(source);
- assertNotNull("Unexpected null response message", baseResponse);
assertTrue("Unexpected response message type", baseResponse instanceof RequestSecurityTokenResponseCollection);
RequestSecurityTokenResponseCollection parsedCollection = (RequestSecurityTokenResponseCollection) baseResponse;
assertNotNull("Unexpected null response list", parsedCollection.getRequestSecurityTokenResponses());
assertEquals("Unexpected number of responses", 1, parsedCollection.getRequestSecurityTokenResponses().size());
+
+ RequestSecurityTokenResponse parsedResponse = parsedCollection.getRequestSecurityTokenResponses().get(0);
+ assertEquals("Unexpected context name", "testcontext", parsedResponse.getContext());
+ assertEquals("Unexpected token type", "http://www.tokens.org/SpecialToken", parsedResponse.getTokenType()
+ .toString());
+ assertFalse(parsedResponse.isForwardable());
}
/**
@@ -166,21 +118,22 @@
* Tests the marshalling of a WS-Trust request.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testMarshallRequestSecurityToken() throws Exception
{
// create a request object.
RequestSecurityToken request = new RequestSecurityToken();
request.setContext("testcontext");
- request.setTokenType(new URI("http://example.org/specialToken"));
+ request.setTokenType(new URI("http://www.tokens.org/SpecialToken"));
request.setRequestType(new URI("http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue"));
// use the factory to marshall the request.
WSTrustJAXBFactory factory = WSTrustJAXBFactory.getInstance();
Source source = factory.marshallRequestSecurityToken(request);
assertNotNull("Unexpected null source", source);
- assertTrue("Unexpected source type", source instanceof JAXBSource);
+ assertTrue("Unexpected source type", source instanceof DOMSource);
// at this point we know that the parsing works, so parse the generated source and compare to the original request.
BaseRequestSecurityToken baseRequest = factory.parseRequestSecurityToken(source);
@@ -190,64 +143,44 @@
assertEquals("Unexpected context value", request.getContext(), parsedRequest.getContext());
assertTrue("Unexpected token type", request.getTokenType().equals(parsedRequest.getTokenType()));
assertTrue("Unexpected request type", request.getRequestType().equals(parsedRequest.getRequestType()));
-
- // repeat the test, now using a collection of requests.
- RequestSecurityTokenCollection collection = new RequestSecurityTokenCollection();
- collection.addRequestSecurityToken(request);
- source = factory.marshallRequestSecurityToken(collection);
- assertNotNull("Unexpected null source", source);
- assertTrue("Unexpected source type", source instanceof JAXBSource);
-
- baseRequest = factory.parseRequestSecurityToken(source);
- assertNotNull("Unexpected null value for the parsed request", baseRequest);
- assertTrue("Unexpected parsed request type", baseRequest instanceof RequestSecurityTokenCollection);
- RequestSecurityTokenCollection parsedCollection = (RequestSecurityTokenCollection) baseRequest;
- assertNotNull("Unexpected null request list", parsedCollection.getRequestSecurityTokens());
- assertEquals("Unexpected number of requests", 1, parsedCollection.getRequestSecurityTokens().size());
}
-
+
/**
* <p>
* Tests the marshalling of a WS-Trust response.
* </p>
*
- * @throws Exception if an error occurs while running the test.
+ * @throws Exception
+ * if an error occurs while running the test.
*/
public void testMarshallRequestSecurityTokenResponse() throws Exception
{
// create a sample ws-trust response message.
RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
response.setContext("testcontext");
- response.setTokenType(new URI("http://example.org/specialToken"));
+ response.setTokenType(new URI("http://www.tokens.org/SpecialToken"));
response.setForwardable(false);
+ RequestSecurityTokenResponseCollection collection = new RequestSecurityTokenResponseCollection();
+ collection.addRequestSecurityTokenResponse(response);
+
// use the factory to marshall the response.
WSTrustJAXBFactory factory = WSTrustJAXBFactory.getInstance();
- Source source = factory.marshallRequestSecurityTokenResponse(response);
+ Source source = factory.marshallRequestSecurityTokenResponse(collection);
assertNotNull("Unexpected null source", source);
- assertTrue("Unexpected source type", source instanceof JAXBSource);
-
+ assertTrue("Unexpected source type", source instanceof DOMSource);
+
// at this point we know that the parsing works, so parse the generated source and compare to the original response.
BaseRequestSecurityTokenResponse baseResponse = factory.parseRequestSecurityTokenResponse(source);
assertNotNull("Unexpected null value for the parsed response", baseResponse);
- assertTrue("Unexpected parsed response type", baseResponse instanceof RequestSecurityTokenResponse);
- RequestSecurityTokenResponse parsedResponse = (RequestSecurityTokenResponse) baseResponse;
- assertEquals("Unexpected context value", response.getContext(), parsedResponse.getContext());
- assertTrue("Unexpected token type", response.getTokenType().equals(parsedResponse.getTokenType()));
- assertFalse(parsedResponse.isForwardable());
-
- // repeat the test, now using a collection of responses.
- RequestSecurityTokenResponseCollection collection = new RequestSecurityTokenResponseCollection();
- collection.addRequestSecurityTokenResponse(response);
- source = factory.marshallRequestSecurityTokenResponse(collection);
- assertNotNull("Unexpected null source", source);
- assertTrue("Unexpected source type", source instanceof JAXBSource);
-
- baseResponse = factory.parseRequestSecurityTokenResponse(source);
- assertNotNull("Unexpected null value for the parsed response", baseResponse);
assertTrue("Unexpected parsed request type", baseResponse instanceof RequestSecurityTokenResponseCollection);
RequestSecurityTokenResponseCollection parsedCollection = (RequestSecurityTokenResponseCollection) baseResponse;
assertNotNull("Unexpected null response list", parsedCollection.getRequestSecurityTokenResponses());
assertEquals("Unexpected number of responses", 1, parsedCollection.getRequestSecurityTokenResponses().size());
+
+ RequestSecurityTokenResponse parsedResponse = parsedCollection.getRequestSecurityTokenResponses().get(0);
+ assertEquals("Unexpected context value", response.getContext(), parsedResponse.getContext());
+ assertTrue("Unexpected token type", response.getTokenType().equals(parsedResponse.getTokenType()));
+ assertFalse(parsedResponse.isForwardable());
}
}
Deleted: identity-federation/trunk/jboss-identity-fed-api/src/test/resources/keystore/sts_keystore.jks
===================================================================
(Binary files differ)
Added: identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-request.xml
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-request.xml (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-request.xml 2009-06-24 21:18:18 UTC (rev 631)
@@ -0,0 +1,4 @@
+<wst:RequestSecurityToken xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" Context="testcontext">
+ <wst:TokenType>http://www.tokens.org/SpecialToken</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
Added: identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-response.xml
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-response.xml (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/resources/wstrust/ws-trust-response.xml 2009-06-24 21:18:18 UTC (rev 631)
@@ -0,0 +1,7 @@
+<wst:RequestSecurityTokenResponseCollection
+ xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512/">
+ <wst:RequestSecurityTokenResponse Context="testcontext">
+ <wst:TokenType>http://www.tokens.org/SpecialToken</wst:TokenType>
+ <wst:Forwardable>false</wst:Forwardable>
+ </wst:RequestSecurityTokenResponse>
+</wst:RequestSecurityTokenResponseCollection>
Property changes on: identity-federation/trunk/jboss-identity-webapps/circleoftrust
___________________________________________________________________
Name: svn:ignore
- target
.metadata
.classpath
target-eclipse
.settings
+ .classpath
.project
.metadata
.settings
target
target-eclipse
Property changes on: identity-federation/trunk/jboss-identity-webapps/employee
___________________________________________________________________
Name: svn:ignore
- target
.metadata
.classpath
target-eclipse
.settings
+ .classpath
.project
.metadata
.settings
target
target-eclipse
Property changes on: identity-federation/trunk/jboss-identity-webapps/idp
___________________________________________________________________
Name: svn:ignore
- target
.metadata
.classpath
target-eclipse
.settings
+ .classpath
.project
.metadata
.settings
target
target-eclipse
Property changes on: identity-federation/trunk/jboss-identity-webapps/metadata
___________________________________________________________________
Name: svn:ignore
- target
.metadata
.classpath
target-eclipse
.settings
+ .classpath
.project
.metadata
.settings
target
target-eclipse
Property changes on: identity-federation/trunk/jboss-identity-webapps/sales
___________________________________________________________________
Name: svn:ignore
- target
.metadata
.classpath
target-eclipse
.settings
+ .classpath
.project
.metadata
.settings
target
target-eclipse
Modified: identity-federation/trunk/parent/pom.xml
===================================================================
--- identity-federation/trunk/parent/pom.xml 2009-06-24 14:33:53 UTC (rev 630)
+++ identity-federation/trunk/parent/pom.xml 2009-06-24 21:18:18 UTC (rev 631)
@@ -134,7 +134,7 @@
<dependency>
<groupId>org.jboss.security</groupId>
<artifactId>jbossxacml</artifactId>
- <version>2.0.3</version>
+ <version>2.0.3.SP2</version>
</dependency>
</dependencies>
</dependencyManagement>
14 years, 10 months
JBoss Identity SVN: r630 - idm/tags/1.0.0.Beta1/assembly/src/main/files/db/jdbc.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 10:33:53 -0400 (Wed, 24 Jun 2009)
New Revision: 630
Modified:
idm/tags/1.0.0.Beta1/assembly/src/main/files/db/jdbc/postgresql.properties
Log:
* update the jdbc.url
Modified: idm/tags/1.0.0.Beta1/assembly/src/main/files/db/jdbc/postgresql.properties
===================================================================
--- idm/tags/1.0.0.Beta1/assembly/src/main/files/db/jdbc/postgresql.properties 2009-06-24 14:31:11 UTC (rev 629)
+++ idm/tags/1.0.0.Beta1/assembly/src/main/files/db/jdbc/postgresql.properties 2009-06-24 14:33:53 UTC (rev 630)
@@ -2,6 +2,6 @@
jdbc.port=5432
jdbc.server=dev01.qa.atl.jboss.com
jdbc.databasename=portal
-jdbc.url=jdbc:postgresql://dev01.qa.atl.jboss.com:5432:portal
+jdbc.url=jdbc:postgresql://dev01.qa.atl.jboss.com:5432/portal
jdbc.username=portal
jdbc.password=password
14 years, 10 months
JBoss Identity SVN: r629 - idm/trunk/assembly/src/main/files/db/jdbc.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 10:31:11 -0400 (Wed, 24 Jun 2009)
New Revision: 629
Modified:
idm/trunk/assembly/src/main/files/db/jdbc/postgresql.properties
Log:
* update the jdbc.url
Modified: idm/trunk/assembly/src/main/files/db/jdbc/postgresql.properties
===================================================================
--- idm/trunk/assembly/src/main/files/db/jdbc/postgresql.properties 2009-06-24 07:38:35 UTC (rev 628)
+++ idm/trunk/assembly/src/main/files/db/jdbc/postgresql.properties 2009-06-24 14:31:11 UTC (rev 629)
@@ -2,6 +2,6 @@
jdbc.port=5432
jdbc.server=dev01.qa.atl.jboss.com
jdbc.databasename=portal
-jdbc.url=jdbc:postgresql://dev01.qa.atl.jboss.com:5432:portal
+jdbc.url=jdbc:postgresql://dev01.qa.atl.jboss.com:5432/portal
jdbc.username=portal
jdbc.password=password
14 years, 10 months
JBoss Identity SVN: r628 - idm/tags/1.0.0.Beta1/assembly/src/main.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 03:38:35 -0400 (Wed, 24 Jun 2009)
New Revision: 628
Modified:
idm/tags/1.0.0.Beta1/assembly/src/main/build.properties
Log:
* Update the version into 1.0.0.Beta1
Modified: idm/tags/1.0.0.Beta1/assembly/src/main/build.properties
===================================================================
--- idm/tags/1.0.0.Beta1/assembly/src/main/build.properties 2009-06-24 07:35:01 UTC (rev 627)
+++ idm/tags/1.0.0.Beta1/assembly/src/main/build.properties 2009-06-24 07:38:35 UTC (rev 628)
@@ -1,5 +1,5 @@
jbossidm.home=..
database=hsqldburl
-jbossidm.version=1.0.0-SANPSHOT
+jbossidm.version=1.0.0.Beta1
jboss.home=/local/deploy/jboss-5.0.1.GA
-jboss.server.configuration=default
\ No newline at end of file
+jboss.server.configuration=default
14 years, 10 months
JBoss Identity SVN: r627 - in idm/tags/1.0.0.Beta1: assembly and 16 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 03:35:01 -0400 (Wed, 24 Jun 2009)
New Revision: 627
Modified:
idm/tags/1.0.0.Beta1/assembly/pom.xml
idm/tags/1.0.0.Beta1/example/auth-simple/pom.xml
idm/tags/1.0.0.Beta1/example/auth/pom.xml
idm/tags/1.0.0.Beta1/example/simple/pom.xml
idm/tags/1.0.0.Beta1/idm-api/pom.xml
idm/tags/1.0.0.Beta1/idm-auth/pom.xml
idm/tags/1.0.0.Beta1/idm-cache/pom.xml
idm/tags/1.0.0.Beta1/idm-common/pom.xml
idm/tags/1.0.0.Beta1/idm-core/pom.xml
idm/tags/1.0.0.Beta1/idm-hibernate/pom.xml
idm/tags/1.0.0.Beta1/idm-ldap/pom.xml
idm/tags/1.0.0.Beta1/idm-spi/pom.xml
idm/tags/1.0.0.Beta1/idm-testsuite/pom.xml
idm/tags/1.0.0.Beta1/integration/deployer/pom.xml
idm/tags/1.0.0.Beta1/integration/jboss5/pom.xml
idm/tags/1.0.0.Beta1/integration/pom.xml
idm/tags/1.0.0.Beta1/parent/pom.xml
idm/tags/1.0.0.Beta1/pom.xml
Log:
* Update the version to 1.0.0.Beta1
Modified: idm/tags/1.0.0.Beta1/assembly/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/assembly/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/assembly/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -4,14 +4,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>jbossidm</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<packaging>pom</packaging>
<name>JBoss Identity IDM Assembly </name>
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
Modified: idm/tags/1.0.0.Beta1/example/auth/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/example/auth/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/example/auth/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -1,7 +1,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.identity.idm.example</groupId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<artifactId>example-auth</artifactId>
<packaging>jar</packaging>
<name>Example - JEE authentication</name>
Modified: idm/tags/1.0.0.Beta1/example/auth-simple/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/example/auth-simple/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/example/auth-simple/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -1,7 +1,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.identity.idm.example</groupId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<artifactId>example-auth-simple</artifactId>
<packaging>jar</packaging>
<name>Example - JEE authentication (using deployer)</name>
Modified: idm/tags/1.0.0.Beta1/example/simple/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/example/simple/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/example/simple/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -1,7 +1,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.identity.idm.example</groupId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<artifactId>example-simple</artifactId>
<packaging>jar</packaging>
<name>Example - Simple JBoss Identity IDM Maven2 project</name>
Modified: idm/tags/1.0.0.Beta1/idm-api/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-api/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-api/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-auth/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-auth/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-auth/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-cache/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-cache/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-cache/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-common/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-common/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-common/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-core/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-core/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-core/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-hibernate/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-hibernate/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-hibernate/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-ldap/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-ldap/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-ldap/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-spi/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-spi/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-spi/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/idm-testsuite/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/idm-testsuite/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/idm-testsuite/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: idm/tags/1.0.0.Beta1/integration/deployer/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/integration/deployer/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/integration/deployer/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -8,12 +8,12 @@
<groupId>org.jboss.identity.idm.integration</groupId>
<artifactId>idm-jboss5-deployer</artifactId>
<packaging>jar</packaging>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-integration</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
</parent>
<properties>
Modified: idm/tags/1.0.0.Beta1/integration/jboss5/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/integration/jboss5/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/integration/jboss5/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -8,12 +8,12 @@
<groupId>org.jboss.identity.idm.integration</groupId>
<artifactId>idm-jboss5</artifactId>
<packaging>jar</packaging>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-integration</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
</parent>
<dependencies>
Modified: idm/tags/1.0.0.Beta1/integration/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/integration/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/integration/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -13,7 +13,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
Modified: idm/tags/1.0.0.Beta1/parent/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/parent/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/parent/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -8,7 +8,7 @@
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
<packaging>pom</packaging>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<name>JBoss Identity IDM- Parent</name>
<url>http://labs.jboss.org/portal/jbosssecurity/</url>
<description>JBoss Identity is a cross-cutting project that handles identity needs for the JEMS projects</description>
Modified: idm/tags/1.0.0.Beta1/pom.xml
===================================================================
--- idm/tags/1.0.0.Beta1/pom.xml 2009-06-24 07:17:02 UTC (rev 626)
+++ idm/tags/1.0.0.Beta1/pom.xml 2009-06-24 07:35:01 UTC (rev 627)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.identity.idm</groupId>
<artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.Beta1</version>
<relativePath>parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
14 years, 10 months
JBoss Identity SVN: r626 - idm/tags.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 03:17:02 -0400 (Wed, 24 Jun 2009)
New Revision: 626
Added:
idm/tags/1.0.0.Beta1/
Log:
* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1* tag the 1.0.0.Beta1
Copied: idm/tags/1.0.0.Beta1 (from rev 625, idm/trunk)
14 years, 10 months
JBoss Identity SVN: r625 - in idm/trunk/assembly: src/main and 5 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-24 03:01:49 -0400 (Wed, 24 Jun 2009)
New Revision: 625
Added:
idm/trunk/assembly/src/main/config/hsqldburl.hibernate.cfg.xml
idm/trunk/assembly/src/main/files/db/hibernate.cfg/hsqldburl.hibernate.cfg.xml
idm/trunk/assembly/src/main/files/db/jdbc/hsqldburl.properties
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldburl-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldburl-ds.xml
Modified:
idm/trunk/assembly/scripts/antrun-schema.xml
idm/trunk/assembly/src/main/build.properties
idm/trunk/assembly/src/main/files/db/jdbc/hsqldb.properties
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldb-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mssql-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mysql-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-oracle-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-postgresql-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-sybase-jboss-beans.xml
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldb-ds.xml
Log:
* Added another one, hsqldb url, which uses the hsql mem db.
* Update the db-jboss-beans.xml
Modified: idm/trunk/assembly/scripts/antrun-schema.xml
===================================================================
--- idm/trunk/assembly/scripts/antrun-schema.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/scripts/antrun-schema.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -31,6 +31,8 @@
<mkdir dir="${db.scripts.dir}" />
<!-- HsqlDB -->
+ <create-ddl db="hsqldburl"/>
+
<create-ddl db="hsqldb"/>
<!-- MySQL -->
Modified: idm/trunk/assembly/src/main/build.properties
===================================================================
--- idm/trunk/assembly/src/main/build.properties 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/build.properties 2009-06-24 07:01:49 UTC (rev 625)
@@ -1,5 +1,5 @@
jbossidm.home=..
-database=hsqldb
+database=hsqldburl
jbossidm.version=1.0.0-SANPSHOT
jboss.home=/local/deploy/jboss-5.0.1.GA
jboss.server.configuration=default
\ No newline at end of file
Added: idm/trunk/assembly/src/main/config/hsqldburl.hibernate.cfg.xml
===================================================================
--- idm/trunk/assembly/src/main/config/hsqldburl.hibernate.cfg.xml (rev 0)
+++ idm/trunk/assembly/src/main/config/hsqldburl.hibernate.cfg.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -0,0 +1,53 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt 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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.format_sql">true</property>
+
+
+ <!-- Mapping classes -->
+ <!-- all nessesary mappings are added programatically to the configuration in the store-->
+ <!-- this is for manual SF creation-->
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttributeValue"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>
+
+
+ </session-factory>
+</hibernate-configuration>
Added: idm/trunk/assembly/src/main/files/db/hibernate.cfg/hsqldburl.hibernate.cfg.xml
===================================================================
--- idm/trunk/assembly/src/main/files/db/hibernate.cfg/hsqldburl.hibernate.cfg.xml (rev 0)
+++ idm/trunk/assembly/src/main/files/db/hibernate.cfg/hsqldburl.hibernate.cfg.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -0,0 +1,63 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt 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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+
+ <property name="show_sql">false</property>
+ <property name="cache.use_second_level_cache">true</property>
+ <property name="cache.use_query_cache">false</property>
+
+ <property name="current_session_context_class">thread</property>
+ <!-- ask hibernate to do the schema population -->
+ <!-- property name="hibernate.hbm2ddl.auto">create-drop</property-->
+
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.connection.driver_class">@jdbc.driver@</property>
+ <property name="hibernate.connection.url">@jdbc.url@</property>
+ <property name="hibernate.connection.username">@jdbc.username@</property>
+ <property name="hibernate.connection.password">@jdbc.password@</property>
+
+ <!-- Mapping classes -->
+ <!-- all nessesary mappings are added programatically to the configuration in the store-->
+ <!-- this is for manual SF creation-->
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttributeValue"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>
+
+
+ </session-factory>
+</hibernate-configuration>
Modified: idm/trunk/assembly/src/main/files/db/jdbc/hsqldb.properties
===================================================================
--- idm/trunk/assembly/src/main/files/db/jdbc/hsqldb.properties 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/db/jdbc/hsqldb.properties 2009-06-24 07:01:49 UTC (rev 625)
@@ -1,4 +1,4 @@
jdbc.driver=org.hsqldb.jdbcDriver
-jdbc.url=jdbc:hsqldb:mem:.
+jdbc.url=jdbc:hsqldb:hsql://localhost:1701
jdbc.username=sa
jdbc.password=
Added: idm/trunk/assembly/src/main/files/db/jdbc/hsqldburl.properties
===================================================================
--- idm/trunk/assembly/src/main/files/db/jdbc/hsqldburl.properties (rev 0)
+++ idm/trunk/assembly/src/main/files/db/jdbc/hsqldburl.properties 2009-06-24 07:01:49 UTC (rev 625)
@@ -0,0 +1,4 @@
+jdbc.driver=org.hsqldb.jdbcDriver
+jdbc.url=jdbc:hsqldb:mem:.
+jdbc.username=sa
+jdbc.password=
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldb-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldb-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldb-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.hsqldb.create.sql</property>
Added: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldburl-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldburl-jboss-beans.xml (rev 0)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-hsqldburl-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!--
+ IDM Service
+ -->
+ <bean name="jboss.identity.IDMService"
+ class="org.jboss.identity.idm.integration.jboss5.IDMService">
+ <constructor>
+ <parameter>jboss.idm.cfg.xml</parameter>
+ </constructor>
+ <property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
+ <property name="SQLScript">idm-sql/jboss.idm.hsqldburl.create.sql</property>
+ <property name="datasource">java:jbossidmDS</property>
+ <property name="exitSQL">select * from jbid_io</property>
+ <depends>jboss.jca:service=DataSourceBinding,name=jbossidmDS</depends>
+ </bean>
+
+</deployment>
\ No newline at end of file
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mssql-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mssql-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mssql-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.mssql.create.sql</property>
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mysql-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mysql-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-mysql-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.mysql.create.sql</property>
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-oracle-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-oracle-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-oracle-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.oracle.create.sql</property>
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-postgresql-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-postgresql-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-postgresql-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.postgresql.create.sql</property>
Modified: idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-sybase-jboss-beans.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-sybase-jboss-beans.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/config.jboss5/deploy/idm-service/idm-service-sybase-jboss-beans.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -9,7 +9,6 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss.idm.cfg.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">idm-sql/jboss.idm.sybase.create.sql</property>
Modified: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldb-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldb-ds.xml 2009-06-23 09:33:03 UTC (rev 624)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldb-ds.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -4,7 +4,7 @@
<local-tx-datasource>
<jndi-name>jbossidmDS</jndi-name>
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbossidm</connection-url>
+ <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
@@ -31,7 +31,7 @@
<mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbossidm">
<attribute name="Database">jbossidm</attribute>
- <attribute name="InProcessMode">true</attribute>
+ <attribute name="InProcessMode">false</attribute>
</mbean>
</datasources>
Added: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldburl-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldburl-ds.xml (rev 0)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-hsqldburl-ds.xml 2009-06-24 07:01:49 UTC (rev 625)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+ <local-tx-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbossidm</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+
+ <!-- connection pool parameters -->
+ <min-pool-size>1</min-pool-size>
+ <max-pool-size>5</max-pool-size>
+
+ <!-- disable idle connection removal, hsqldb does not reap threads on closed connections -->
+ <idle-timeout-minutes>0</idle-timeout-minutes>
+ <!-- check all statements are closed when the connection is returned to the pool -->
+ <track-statements />
+ <!-- hsqldb benefits from prepared statement caching -->
+ <prepared-statement-cache-size>32</prepared-statement-cache-size>
+
+ <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+ <metadata>
+ <type-mapping>Hypersonic SQL</type-mapping>
+ </metadata>
+
+ <!-- ensure the datasource is not initialized before the database itself -->
+ <depends>jboss:service=Hypersonic,database=jbossidm</depends>
+ </local-tx-datasource>
+
+ <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbossidm">
+ <attribute name="Database">jbossidm</attribute>
+ <attribute name="InProcessMode">true</attribute>
+ </mbean>
+
+</datasources>
14 years, 10 months
JBoss Identity SVN: r624 - in idm/trunk: example/simple/src/test/resources and 8 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-23 05:33:03 -0400 (Tue, 23 Jun 2009)
New Revision: 624
Removed:
idm/trunk/example/simple/src/test/resources/identity-config.xsd
Modified:
idm/trunk/example/auth/src/main/resources/jboss.idm.cfg.xml
idm/trunk/example/simple/src/test/resources/example-db-config.xml
idm/trunk/example/simple/src/test/resources/example-db-inject-sf-config.xml
idm/trunk/example/simple/src/test/resources/example-ldap-config.xml
idm/trunk/example/simple/src/test/resources/example-mixed-config.xml
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/AttributesType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityObjectTypeType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingsType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoresType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityTypeMappingsType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/JbossIdentityType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/ObjectFactory.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/OptionsType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmsType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RelationshipsType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoriesType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoryType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/StoresType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/SupportedIdentityObjectTypesType.java
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/package-info.java
idm/trunk/idm-core/src/test/resources/example-db-config.xml
idm/trunk/idm-core/src/test/resources/identity-config.xml
idm/trunk/idm-core/src/test/resources/identity-config.xsd
idm/trunk/idm-core/src/test/resources/store-test-config.xml
idm/trunk/idm-core/src/test/resources/test-config.xml
idm/trunk/idm-testsuite/src/test/resources/identity-config.xsd
idm/trunk/idm-testsuite/src/test/resources/minimal-flexible-identity-config.xml
idm/trunk/idm-testsuite/src/test/resources/store-test-config.xml
idm/trunk/idm-testsuite/src/test/resources/test-identity-config.xml
idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/InitializerType.java
idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/JbossIDMDeployerType.java
idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/ObjectFactory.java
idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/OptionsType.java
idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/package-info.java
idm/trunk/integration/deployer/src/main/resources/META-INF/default-jboss-idm.xml
idm/trunk/integration/deployer/src/main/resources/identity-deployer.xsd
idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml
idm/trunk/integration/deployer/src/test/resources/jbpm.identity/META-INF/jbpm-jboss-idm.xml
idm/trunk/integration/deployer/src/test/resources/jbpm.identity/jbpm.idm.cfg.xml
Log:
* Update the configuration xsd namespace, from alpha to beta.
Modified: idm/trunk/example/auth/src/main/resources/jboss.idm.cfg.xml
===================================================================
--- idm/trunk/example/auth/src/main/resources/jboss.idm.cfg.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/auth/src/main/resources/jboss.idm.cfg.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentity</id>
Modified: idm/trunk/example/simple/src/test/resources/example-db-config.xml
===================================================================
--- idm/trunk/example/simple/src/test/resources/example-db-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/simple/src/test/resources/example-db-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentityExample/SampleRealm</id>
Modified: idm/trunk/example/simple/src/test/resources/example-db-inject-sf-config.xml
===================================================================
--- idm/trunk/example/simple/src/test/resources/example-db-inject-sf-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/simple/src/test/resources/example-db-inject-sf-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentityExample/SampleRealm</id>
Modified: idm/trunk/example/simple/src/test/resources/example-ldap-config.xml
===================================================================
--- idm/trunk/example/simple/src/test/resources/example-ldap-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/simple/src/test/resources/example-ldap-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentityExample/SampleRealm</id>
Modified: idm/trunk/example/simple/src/test/resources/example-mixed-config.xml
===================================================================
--- idm/trunk/example/simple/src/test/resources/example-mixed-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/simple/src/test/resources/example-mixed-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentityExample/SampleRealm</id>
Deleted: idm/trunk/example/simple/src/test/resources/identity-config.xsd
===================================================================
--- idm/trunk/example/simple/src/test/resources/identity-config.xsd 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/example/simple/src/test/resources/identity-config.xsd 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="jboss-identity" type="urn:jboss-identityType" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha">
- <xs:annotation>
- <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha"xmlns="urn:jboss:identity:idm:config:v1_0_alpha"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:config:v1_0_alpha"></xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:complexType name="identity-object-typesType">
- <xs:sequence>
- <xs:element type="xs:string" name="identity-object-type" maxOccurs="unbounded" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="repositoryType">
- <xs:sequence>
- <xs:element type="xs:string" name="id"/>
- <xs:element type="xs:string" name="class"/>
- <xs:element type="urn:external-configType" name="external-config" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="xs:string" name="default-identity-store-id" minOccurs="0"/>
- <xs:element type="xs:string" name="default-attribute-store-id" minOccurs="0"/>
- <xs:element type="urn:identity-store-mappingsType" name="identity-store-mappings" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:optionsType" name="options" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="identity-storeType">
- <xs:sequence>
- <xs:element type="xs:string" name="id"/>
- <xs:element type="xs:string" name="class"/>
- <xs:element type="urn:external-configType" name="external-config" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:supported-relationship-typesType" name="supported-relationship-types" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:supported-identity-object-typesType" name="supported-identity-object-types" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element name="options">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="external-configType">
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute type="xs:string" name="override" use="optional"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- <xs:complexType name="identity-store-mappingsType">
- <xs:sequence>
- <xs:element type="urn:identity-store-mappingType" name="identity-store-mapping" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="storesType">
- <xs:sequence>
- <xs:element type="xs:string" name="attribute-stores"/>
- <xs:element type="urn:identity-storesType" name="identity-stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="jboss-identityType">
- <xs:sequence>
- <xs:element type="urn:realmsType" name="realms" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:repositoriesType" name="repositories" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:storesType" name="stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="supported-identity-object-typesType">
- <xs:sequence>
- <xs:element type="urn:identity-object-typeType" name="identity-object-type" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="optionType">
- <xs:sequence>
- <xs:element type="xs:string" name="name"/>
- <xs:element type="xs:string" name="value" maxOccurs="unbounded" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="group-type-mappingType">
- <xs:sequence>
- <xs:element type="xs:string" name="group-type-name"/>
- <xs:element type="xs:string" name="identity-object-type-name"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="credentialsType">
- <xs:sequence>
- <xs:element type="xs:string" name="credential-type" maxOccurs="unbounded" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="repositoriesType">
- <xs:sequence>
- <xs:element type="urn:repositoryType" name="repository" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="realmType">
- <xs:sequence>
- <xs:element type="xs:string" name="id"/>
- <xs:element type="xs:string" name="repository-id-ref"/>
- <xs:element type="urn:identity-type-mappingsType" name="identity-type-mappings" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:optionsType" name="options" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="relationshipsType">
- <xs:sequence>
- <xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="realmsType">
- <xs:sequence>
- <xs:element type="urn:realmType" name="realm" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="identity-type-mappingsType">
- <xs:sequence>
- <xs:element type="xs:string" name="user-mapping"/>
- <xs:element type="urn:group-type-mappingType" name="group-type-mapping" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="supported-relationship-typesType">
- <xs:sequence>
- <xs:element type="xs:string" name="relationship-type" maxOccurs="unbounded" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="identity-storesType">
- <xs:sequence>
- <xs:element type="urn:identity-storeType" name="identity-store" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="attributesType">
- <xs:sequence>
- <xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="identity-store-mappingType">
- <xs:sequence>
- <xs:element type="xs:string" name="identity-store-id"/>
- <xs:element type="urn:identity-object-typesType" name="identity-object-types" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:optionsType" name="options" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="relationshipType">
- <xs:sequence>
- <xs:element type="xs:string" name="relationship-type-ref"/>
- <xs:element type="xs:string" name="identity-object-type-ref"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="optionsType">
- <xs:sequence>
- <xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="identity-object-typeType">
- <xs:sequence>
- <xs:element type="xs:string" name="name"/>
- <xs:element name="relationships">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="credentials">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="xs:string" name="credential-type" maxOccurs="unbounded" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="attributes">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="options">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="attributeType">
- <xs:sequence>
- <xs:element type="xs:string" name="name"/>
- <xs:element type="xs:string" name="mapping"/>
- <xs:element type="xs:string" name="type"/>
- <xs:element name="isRequired">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value=""/>
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="isMultivalued">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value=""/>
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element type="xs:string" name="isReadOnly" minOccurs="0"/>
- </xs:sequence>
- </xs:complexType>
-</xs:schema>
\ No newline at end of file
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/AttributesType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/AttributesType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/AttributesType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_alpha}attributeType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_beta}attributeType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityObjectTypeType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityObjectTypeType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityObjectTypeType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -32,7 +32,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_alpha}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_beta}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -54,7 +54,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_alpha}attributeType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_beta}attributeType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -65,7 +65,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_beta}optionType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -231,7 +231,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_alpha}attributeType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="attribute" type="{urn:jboss:identity:idm:config:v1_0_beta}attributeType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -350,7 +350,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_beta}optionType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -409,7 +409,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_alpha}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_beta}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,8 +25,8 @@
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="identity-store-id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="identity-object-types" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-object-typesType"/>
- * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionsType"/>
+ * <element name="identity-object-types" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-object-typesType"/>
+ * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_beta}optionsType"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingsType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreMappingsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,7 +26,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="identity-store-mapping" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-store-mappingType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="identity-store-mapping" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-store-mappingType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoreType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -28,15 +28,15 @@
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="class" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="external-config" type="{urn:jboss:identity:idm:config:v1_0_alpha}external-configType"/>
- * <element name="supported-relationship-types" type="{urn:jboss:identity:idm:config:v1_0_alpha}supported-relationship-typesType"/>
- * <element name="supported-identity-object-types" type="{urn:jboss:identity:idm:config:v1_0_alpha}supported-identity-object-typesType"/>
+ * <element name="external-config" type="{urn:jboss:identity:idm:config:v1_0_beta}external-configType"/>
+ * <element name="supported-relationship-types" type="{urn:jboss:identity:idm:config:v1_0_beta}supported-relationship-typesType"/>
+ * <element name="supported-identity-object-types" type="{urn:jboss:identity:idm:config:v1_0_beta}supported-identity-object-typesType"/>
* <element name="options">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_beta}optionType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
@@ -229,7 +229,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_beta}optionType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoresType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoresType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityStoresType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,7 +26,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="identity-store" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-storeType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="identity-store" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-storeType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityTypeMappingsType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityTypeMappingsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/IdentityTypeMappingsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -27,7 +27,7 @@
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="identity-mapping" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="group-type-mapping" type="{urn:jboss:identity:idm:config:v1_0_alpha}group-type-mappingType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="group-type-mapping" type="{urn:jboss:identity:idm:config:v1_0_beta}group-type-mappingType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/JbossIdentityType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/JbossIdentityType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/JbossIdentityType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -24,9 +24,9 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="realms" type="{urn:jboss:identity:idm:config:v1_0_alpha}realmsType"/>
- * <element name="repositories" type="{urn:jboss:identity:idm:config:v1_0_alpha}repositoriesType"/>
- * <element name="stores" type="{urn:jboss:identity:idm:config:v1_0_alpha}storesType"/>
+ * <element name="realms" type="{urn:jboss:identity:idm:config:v1_0_beta}realmsType"/>
+ * <element name="repositories" type="{urn:jboss:identity:idm:config:v1_0_beta}repositoriesType"/>
+ * <element name="stores" type="{urn:jboss:identity:idm:config:v1_0_beta}storesType"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/ObjectFactory.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/ObjectFactory.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/ObjectFactory.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -31,7 +31,7 @@
@XmlRegistry
public class ObjectFactory {
- private final static QName _JbossIdentity_QNAME = new QName("urn:jboss:identity:idm:config:v1_0_alpha", "jboss-identity");
+ private final static QName _JbossIdentity_QNAME = new QName("urn:jboss:identity:idm:config:v1_0_beta", "jboss-identity");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.identity.impl.configuration.jaxb2.generated
@@ -276,7 +276,7 @@
* Create an instance of {@link JAXBElement }{@code <}{@link JbossIdentityType }{@code >}}
*
*/
- @XmlElementDecl(namespace = "urn:jboss:identity:idm:config:v1_0_alpha", name = "jboss-identity")
+ @XmlElementDecl(namespace = "urn:jboss:identity:idm:config:v1_0_beta", name = "jboss-identity")
public JAXBElement<JbossIdentityType> createJbossIdentity(JbossIdentityType value) {
return new JAXBElement<JbossIdentityType>(_JbossIdentity_QNAME, JbossIdentityType.class, null, value);
}
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/OptionsType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/OptionsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/OptionsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="option" type="{urn:jboss:identity:idm:config:v1_0_beta}optionType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,8 +26,8 @@
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="repository-id-ref" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="identity-type-mappings" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-type-mappingsType" minOccurs="0"/>
- * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionsType" minOccurs="0"/>
+ * <element name="identity-type-mappings" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-type-mappingsType" minOccurs="0"/>
+ * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_beta}optionsType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmsType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RealmsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="realm" type="{urn:jboss:identity:idm:config:v1_0_alpha}realmType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="realm" type="{urn:jboss:identity:idm:config:v1_0_beta}realmType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RelationshipsType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RelationshipsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RelationshipsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_alpha}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="relationship" type="{urn:jboss:identity:idm:config:v1_0_beta}relationshipType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoriesType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoriesType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoriesType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="repository" type="{urn:jboss:identity:idm:config:v1_0_alpha}repositoryType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="repository" type="{urn:jboss:identity:idm:config:v1_0_beta}repositoryType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoryType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoryType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/RepositoryType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,11 +26,11 @@
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="class" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="external-config" type="{urn:jboss:identity:idm:config:v1_0_alpha}external-configType" minOccurs="0"/>
+ * <element name="external-config" type="{urn:jboss:identity:idm:config:v1_0_beta}external-configType" minOccurs="0"/>
* <element name="default-identity-store-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="default-attribute-store-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="identity-store-mappings" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-store-mappingsType" minOccurs="0"/>
- * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_alpha}optionsType" minOccurs="0"/>
+ * <element name="identity-store-mappings" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-store-mappingsType" minOccurs="0"/>
+ * <element name="options" type="{urn:jboss:identity:idm:config:v1_0_beta}optionsType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/StoresType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/StoresType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/StoresType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -25,7 +25,7 @@
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="attribute-stores" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="identity-stores" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-storesType"/>
+ * <element name="identity-stores" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-storesType"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/SupportedIdentityObjectTypesType.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/SupportedIdentityObjectTypesType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/SupportedIdentityObjectTypesType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,7 +26,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="identity-object-type" type="{urn:jboss:identity:idm:config:v1_0_alpha}identity-object-typeType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="identity-object-type" type="{urn:jboss:identity:idm:config:v1_0_beta}identity-object-typeType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/package-info.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/package-info.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/configuration/jaxb2/generated/package-info.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -5,5 +5,5 @@
// Generated on: 2008.12.18 at 03:00:04 PM CET
//
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:jboss:identity:idm:config:v1_0_alpha", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:jboss:identity:idm:config:v1_0_beta", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.jboss.identity.idm.impl.configuration.jaxb2.generated;
Modified: idm/trunk/idm-core/src/test/resources/example-db-config.xml
===================================================================
--- idm/trunk/idm-core/src/test/resources/example-db-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/test/resources/example-db-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://Example/DB</id>
Modified: idm/trunk/idm-core/src/test/resources/identity-config.xml
===================================================================
--- idm/trunk/idm-core/src/test/resources/identity-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/test/resources/identity-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,17 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--<xs:schema-->
-<!--attributeFormDefault="unqualified"-->
-<!--elementFormDefault="qualified"-->
-<!--xmlns:xs="http://www.w3.org/2001/XMLSchema"-->
-<!--targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha"-->
-<!--xmlns="urn:jboss:identity:idm:config:v1_0_alpha"-->
-<!--xmlns:xml="http://www.w3.org/XML/1998/namespace"-->
-<!--xmlns:wcc="urn:jboss:identity:idm:config:v1_0_alpha"> -->
-
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id></id>
Modified: idm/trunk/idm-core/src/test/resources/identity-config.xsd
===================================================================
--- idm/trunk/idm-core/src/test/resources/identity-config.xsd 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/test/resources/identity-config.xsd 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
- targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="jboss-identity" type="urn:jboss-identityType" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha">
+ targetNamespace="urn:jboss:identity:idm:config:v1_0_beta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="jboss-identity" type="urn:jboss-identityType" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta">
<xs:annotation>
- <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha"xmlns="urn:jboss:identity:idm:config:v1_0_alpha"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:config:v1_0_alpha"></xs:documentation>
+ <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:config:v1_0_beta"xmlns="urn:jboss:identity:idm:config:v1_0_beta"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:config:v1_0_beta"></xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="identity-object-typesType">
@@ -16,13 +16,13 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="class"/>
<xs:element type="urn:external-configType" name="external-config" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="xs:string" name="default-identity-store-id" minOccurs="0"/>
<xs:element type="xs:string" name="default-attribute-store-id" minOccurs="0"/>
<xs:element type="urn:identity-store-mappingsType" name="identity-store-mappings" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:optionsType" name="options" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-storeType">
@@ -30,16 +30,16 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="class"/>
<xs:element type="urn:external-configType" name="external-config"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:supported-relationship-typesType" name="supported-relationship-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:supported-identity-object-typesType" name="supported-identity-object-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element name="options">
<xs:complexType>
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -55,27 +55,27 @@
<xs:complexType name="identity-store-mappingsType">
<xs:sequence>
<xs:element type="urn:identity-store-mappingType" name="identity-store-mapping" maxOccurs="unbounded"
- minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="storesType">
<xs:sequence>
<xs:element type="xs:string" name="attribute-stores"/>
<xs:element type="urn:identity-storesType" name="identity-stores"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="jboss-identityType">
<xs:sequence>
- <xs:element type="urn:realmsType" name="realms" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:repositoriesType" name="repositories" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:storesType" name="stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ <xs:element type="urn:realmsType" name="realms" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:repositoriesType" name="repositories" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:storesType" name="stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="supported-identity-object-typesType">
<xs:sequence>
<xs:element type="urn:identity-object-typeType" name="identity-object-type" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="optionType">
@@ -98,7 +98,7 @@
<xs:complexType name="repositoriesType">
<xs:sequence>
<xs:element type="urn:repositoryType" name="repository" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="realmType">
@@ -106,28 +106,28 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="repository-id-ref"/>
<xs:element type="urn:identity-type-mappingsType" name="identity-type-mappings" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:optionsType" name="options" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="relationshipsType">
<xs:sequence>
<xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="realmsType">
<xs:sequence>
<xs:element type="urn:realmType" name="realm" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-type-mappingsType">
<xs:sequence>
<xs:element type="xs:string" name="user-mapping"/>
<xs:element type="urn:group-type-mappingType" name="group-type-mapping" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="supported-relationship-typesType">
@@ -138,21 +138,21 @@
<xs:complexType name="identity-storesType">
<xs:sequence>
<xs:element type="urn:identity-storeType" name="identity-store" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="attributesType">
<xs:sequence>
<xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-store-mappingType">
<xs:sequence>
<xs:element type="xs:string" name="identity-store-id"/>
<xs:element type="urn:identity-object-typesType" name="identity-object-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:optionsType" name="options" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:optionsType" name="options" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="relationshipType">
@@ -164,7 +164,7 @@
<xs:complexType name="optionsType">
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-object-typeType">
@@ -174,7 +174,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -189,7 +189,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -197,7 +197,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Modified: idm/trunk/idm-core/src/test/resources/store-test-config.xml
===================================================================
--- idm/trunk/idm-core/src/test/resources/store-test-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/test/resources/store-test-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://Dymmy</id>
Modified: idm/trunk/idm-core/src/test/resources/test-config.xml
===================================================================
--- idm/trunk/idm-core/src/test/resources/test-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-core/src/test/resources/test-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>Sample Ralm</id>
Modified: idm/trunk/idm-testsuite/src/test/resources/identity-config.xsd
===================================================================
--- idm/trunk/idm-testsuite/src/test/resources/identity-config.xsd 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-testsuite/src/test/resources/identity-config.xsd 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
- targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="jboss-identity" type="urn:jboss-identityType" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha">
+ targetNamespace="urn:jboss:identity:idm:config:v1_0_beta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="jboss-identity" type="urn:jboss-identityType" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta">
<xs:annotation>
- <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:config:v1_0_alpha"xmlns="urn:jboss:identity:idm:config:v1_0_alpha"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:config:v1_0_alpha"></xs:documentation>
+ <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:config:v1_0_beta"xmlns="urn:jboss:identity:idm:config:v1_0_beta"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:config:v1_0_beta"></xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="identity-object-typesType">
@@ -16,13 +16,13 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="class"/>
<xs:element type="urn:external-configType" name="external-config" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="xs:string" name="default-identity-store-id" minOccurs="0"/>
<xs:element type="xs:string" name="default-attribute-store-id" minOccurs="0"/>
<xs:element type="urn:identity-store-mappingsType" name="identity-store-mappings" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:optionsType" name="options" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-storeType">
@@ -30,16 +30,16 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="class"/>
<xs:element type="urn:external-configType" name="external-config"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:supported-relationship-typesType" name="supported-relationship-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:supported-identity-object-typesType" name="supported-identity-object-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element name="options">
<xs:complexType>
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -55,27 +55,27 @@
<xs:complexType name="identity-store-mappingsType">
<xs:sequence>
<xs:element type="urn:identity-store-mappingType" name="identity-store-mapping" maxOccurs="unbounded"
- minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ minOccurs="0" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="storesType">
<xs:sequence>
<xs:element type="xs:string" name="attribute-stores"/>
<xs:element type="urn:identity-storesType" name="identity-stores"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="jboss-identityType">
<xs:sequence>
- <xs:element type="urn:realmsType" name="realms" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:repositoriesType" name="repositories" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:storesType" name="stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ <xs:element type="urn:realmsType" name="realms" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:repositoriesType" name="repositories" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:storesType" name="stores" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="supported-identity-object-typesType">
<xs:sequence>
<xs:element type="urn:identity-object-typeType" name="identity-object-type" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="optionType">
@@ -98,7 +98,7 @@
<xs:complexType name="repositoriesType">
<xs:sequence>
<xs:element type="urn:repositoryType" name="repository" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="realmType">
@@ -106,28 +106,28 @@
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="repository-id-ref"/>
<xs:element type="urn:identity-type-mappingsType" name="identity-type-mappings" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
<xs:element type="urn:optionsType" name="options" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="relationshipsType">
<xs:sequence>
<xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="realmsType">
<xs:sequence>
<xs:element type="urn:realmType" name="realm" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-type-mappingsType">
<xs:sequence>
<xs:element type="xs:string" name="user-mapping"/>
<xs:element type="urn:group-type-mappingType" name="group-type-mapping" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="supported-relationship-typesType">
@@ -138,21 +138,21 @@
<xs:complexType name="identity-storesType">
<xs:sequence>
<xs:element type="urn:identity-storeType" name="identity-store" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="attributesType">
<xs:sequence>
<xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-store-mappingType">
<xs:sequence>
<xs:element type="xs:string" name="identity-store-id"/>
<xs:element type="urn:identity-object-typesType" name="identity-object-types"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
- <xs:element type="urn:optionsType" name="options" xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
+ <xs:element type="urn:optionsType" name="options" xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="relationshipType">
@@ -164,7 +164,7 @@
<xs:complexType name="optionsType">
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identity-object-typeType">
@@ -174,7 +174,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:relationshipType" name="relationship" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -189,7 +189,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -197,7 +197,7 @@
<xs:complexType>
<xs:sequence>
<xs:element type="urn:optionType" name="option" maxOccurs="unbounded" minOccurs="0"
- xmlns:urn="urn:jboss:identity:idm:config:v1_0_alpha"/>
+ xmlns:urn="urn:jboss:identity:idm:config:v1_0_beta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Modified: idm/trunk/idm-testsuite/src/test/resources/minimal-flexible-identity-config.xml
===================================================================
--- idm/trunk/idm-testsuite/src/test/resources/minimal-flexible-identity-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-testsuite/src/test/resources/minimal-flexible-identity-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://FlexibleRealm</id>
Modified: idm/trunk/idm-testsuite/src/test/resources/store-test-config.xml
===================================================================
--- idm/trunk/idm-testsuite/src/test/resources/store-test-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-testsuite/src/test/resources/store-test-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://Dymmy</id>
Modified: idm/trunk/idm-testsuite/src/test/resources/test-identity-config.xml
===================================================================
--- idm/trunk/idm-testsuite/src/test/resources/test-identity-config.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/idm-testsuite/src/test/resources/test-identity-config.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://RedHat/DB</id>
Modified: idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/InitializerType.java
===================================================================
--- idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/InitializerType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/InitializerType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,8 +26,8 @@
* <sequence>
* <element name="datasource" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <choice>
- * <element name="sqlInitializer" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}sqlInitializerType"/>
- * <element name="hibernateInitializer" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}hibernateInitializerType"/>
+ * <element name="sqlInitializer" type="{urn:jboss:identity:idm:deployer:v1_0_beta}sqlInitializerType"/>
+ * <element name="hibernateInitializer" type="{urn:jboss:identity:idm:deployer:v1_0_beta}hibernateInitializerType"/>
* </choice>
* </sequence>
* </restriction>
Modified: idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/JbossIDMDeployerType.java
===================================================================
--- idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/JbossIDMDeployerType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/JbossIDMDeployerType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -28,9 +28,9 @@
* <sequence>
* <element name="JNDIName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="idmConfigFile" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="hibernateDeployer" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}hibernateDeployerType" minOccurs="0"/>
- * <element name="initializers" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}initializerType" minOccurs="0"/>
- * <element name="options" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}optionsType" minOccurs="0"/>
+ * <element name="hibernateDeployer" type="{urn:jboss:identity:idm:deployer:v1_0_beta}hibernateDeployerType" minOccurs="0"/>
+ * <element name="initializers" type="{urn:jboss:identity:idm:deployer:v1_0_beta}initializerType" minOccurs="0"/>
+ * <element name="options" type="{urn:jboss:identity:idm:deployer:v1_0_beta}optionsType" minOccurs="0"/>
* <element name="depends" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
Modified: idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/ObjectFactory.java
===================================================================
--- idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/ObjectFactory.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/ObjectFactory.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -31,7 +31,7 @@
@XmlRegistry
public class ObjectFactory {
- private final static QName _JbossIdmDeployer_QNAME = new QName("urn:jboss:identity:idm:deployer:v1_0_alpha", "jboss-idm-deployer");
+ private final static QName _JbossIdmDeployer_QNAME = new QName("urn:jboss:identity:idm:deployer:v1_0_beta", "jboss-idm-deployer");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.identity.idm.integration.jboss5.jaxb2
@@ -100,7 +100,7 @@
* Create an instance of {@link JAXBElement }{@code <}{@link JbossIDMDeployerType }{@code >}}
*
*/
- @XmlElementDecl(namespace = "urn:jboss:identity:idm:deployer:v1_0_alpha", name = "jboss-idm-deployer")
+ @XmlElementDecl(namespace = "urn:jboss:identity:idm:deployer:v1_0_beta", name = "jboss-idm-deployer")
public JAXBElement<JbossIDMDeployerType> createJbossIdmDeployer(JbossIDMDeployerType value) {
return new JAXBElement<JbossIDMDeployerType>(_JbossIdmDeployer_QNAME, JbossIDMDeployerType.class, null, value);
}
Modified: idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/OptionsType.java
===================================================================
--- idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/OptionsType.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/OptionsType.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -26,7 +26,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="option" type="{urn:jboss:identity:idm:deployer:v1_0_alpha}optionType" maxOccurs="unbounded"/>
+ * <element name="option" type="{urn:jboss:identity:idm:deployer:v1_0_beta}optionType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
Modified: idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/package-info.java
===================================================================
--- idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/package-info.java 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/java/org/jboss/identity/idm/integration/jboss5/jaxb2/package-info.java 2009-06-23 09:33:03 UTC (rev 624)
@@ -5,5 +5,5 @@
// Generated on: 2009.05.28 at 11:27:34 PM CST
//
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:jboss:identity:idm:deployer:v1_0_alpha", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:jboss:identity:idm:deployer:v1_0_beta", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.jboss.identity.idm.integration.jboss5.jaxb2;
Modified: idm/trunk/integration/deployer/src/main/resources/META-INF/default-jboss-idm.xml
===================================================================
--- idm/trunk/integration/deployer/src/main/resources/META-INF/default-jboss-idm.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/resources/META-INF/default-jboss-idm.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-idm-deployer xmlns="urn:jboss:identity:idm:deployer:v1_0_alpha"
+<jboss-idm-deployer xmlns="urn:jboss:identity:idm:deployer:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_alpha identity-deployer.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_beta identity-deployer.xsd">
<JNDIName>java:/IdentitySessionFactory</JNDIName>
<idmConfigFile>jboss.idm.cfg.xml</idmConfigFile>
<hibernateDeployer>
Modified: idm/trunk/integration/deployer/src/main/resources/identity-deployer.xsd
===================================================================
--- idm/trunk/integration/deployer/src/main/resources/identity-deployer.xsd 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/resources/identity-deployer.xsd 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:jboss:identity:idm:deployer:v1_0_alpha" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="jboss-idm-deployer" type="urn:jbossIDMDeployerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha">
+<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:jboss:identity:idm:deployer:v1_0_beta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="jboss-idm-deployer" type="urn:jbossIDMDeployerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta">
<xs:annotation>
- <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:deployer:v1_0_alpha"xmlns="urn:jboss:identity:idm:deployer:v1_0_alpha"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:deployer:v1_0_alpha"></xs:documentation>
+ <xs:documentation><xs:schemaattributeFormDefault="unqualified"elementFormDefault="qualified"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:jboss:identity:idm:deployer:v1_0_beta"xmlns="urn:jboss:identity:idm:deployer:v1_0_beta"xmlns:xml="http://www.w3.org/XML/1998/namespace"xmlns:wcc="urn:jboss:identity:idm:deployer:v1_0_beta"></xs:documentation>
</xs:annotation>
</xs:element>
@@ -10,9 +10,9 @@
<xs:sequence>
<xs:element name="JNDIName" type="xs:string" />
<xs:element name="idmConfigFile" type="xs:string" />
- <xs:element name="hibernateDeployer" minOccurs="0" type="urn:hibernateDeployerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha"/>
- <xs:element name="initializers" minOccurs="0" type="urn:initializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha"/>
- <xs:element name="options" minOccurs="0" type="urn:optionsType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha"/>
+ <xs:element name="hibernateDeployer" minOccurs="0" type="urn:hibernateDeployerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta"/>
+ <xs:element name="initializers" minOccurs="0" type="urn:initializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta"/>
+ <xs:element name="options" minOccurs="0" type="urn:optionsType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta"/>
<xs:element name="depends" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
@@ -21,8 +21,8 @@
<xs:sequence>
<xs:element name="datasource" type="xs:string" />
<xs:choice>
- <xs:element name="sqlInitializer" type="urn:sqlInitializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha" />
- <xs:element name="hibernateInitializer" type="urn:hibernateInitializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha" />
+ <xs:element name="sqlInitializer" type="urn:sqlInitializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta" />
+ <xs:element name="hibernateInitializer" type="urn:hibernateInitializerType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta" />
</xs:choice>
</xs:sequence>
</xs:complexType>
@@ -43,7 +43,7 @@
<xs:complexType name="optionsType">
<xs:sequence>
- <xs:element name="option" type="urn:optionType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_alpha" maxOccurs="unbounded" />
+ <xs:element name="option" type="urn:optionType" xmlns:urn="urn:jboss:identity:idm:deployer:v1_0_beta" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
Modified: idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml
===================================================================
--- idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://JBossIdentity</id>
Modified: idm/trunk/integration/deployer/src/test/resources/jbpm.identity/META-INF/jbpm-jboss-idm.xml
===================================================================
--- idm/trunk/integration/deployer/src/test/resources/jbpm.identity/META-INF/jbpm-jboss-idm.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/test/resources/jbpm.identity/META-INF/jbpm-jboss-idm.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-idm-deployer xmlns="urn:jboss:identity:idm:deployer:v1_0_alpha"
+<jboss-idm-deployer xmlns="urn:jboss:identity:idm:deployer:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_alpha identity-deployer.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_beta identity-deployer.xsd">
<JNDIName>java:/jbpmIdentitySessionFactory</JNDIName>
<idmConfigFile>jbpm.idm.cfg.xml</idmConfigFile>
</jboss-idm-deployer>
Modified: idm/trunk/integration/deployer/src/test/resources/jbpm.identity/jbpm.idm.cfg.xml
===================================================================
--- idm/trunk/integration/deployer/src/test/resources/jbpm.identity/jbpm.idm.cfg.xml 2009-06-23 06:48:49 UTC (rev 623)
+++ idm/trunk/integration/deployer/src/test/resources/jbpm.identity/jbpm.idm.cfg.xml 2009-06-23 09:33:03 UTC (rev 624)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_beta"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_beta identity-config.xsd">
<realms>
<realm>
<id>realm://jbpmIdentity</id>
14 years, 10 months
JBoss Identity SVN: r623 - in idm/trunk: integration/deployer/src/main/resources and 1 other directory.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-06-23 02:48:49 -0400 (Tue, 23 Jun 2009)
New Revision: 623
Modified:
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-mysql-ds.xml
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-oracle-ds.xml
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-postgresql-ds.xml
idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-sybase-ds.xml
idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml
Log:
* Using the local-tx-datasource as default in the distribution.
Modified: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-mysql-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-mysql-ds.xml 2009-06-22 10:25:56 UTC (rev 622)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-mysql-ds.xml 2009-06-23 06:48:49 UTC (rev 623)
@@ -1,34 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
-
- <xa-datasource>
- <jndi-name>jbossidmDS</jndi-name>
-
- <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
- <xa-datasource-property name="URL">@jdbc.url@</xa-datasource-property>
- <user-name>@jdbc.username@</user-name>
- <password>@jdbc.password@</password>
-
-
- <!-- reduce isolation from the default level (repeatable read) -->
- <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
- <!-- separate connections used with and without JTA transaction -->
- <no-tx-separate-pools />
- <!-- disable transaction interleaving -->
- <track-connection-by-tx />
-
- <!-- leverage mysql integration features -->
- <exception-sorter-class-name>
- com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
- </exception-sorter-class-name>
- <valid-connection-checker-class-name>
- com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
- </valid-connection-checker-class-name>
-
- <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
- <metadata>
- <type-mapping>mySQL</type-mapping>
- </metadata>
- </xa-datasource>
-
+ <local-tx-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <connection-url>@jdbc.url@</connection-url>
+ <driver-class>com.mysql.jdbc.Driver</driver-class>
+
+ <user-name>@jdbc.username@</user-name>
+ <password>@jdbc.password@</password>
+
+ <!-- Typemapping for JBoss 4.0 -->
+ <metadata>
+ <type-mapping>mySQL</type-mapping>
+ </metadata>
+
+ </local-tx-datasource>
</datasources>
\ No newline at end of file
Modified: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-oracle-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-oracle-ds.xml 2009-06-22 10:25:56 UTC (rev 622)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-oracle-ds.xml 2009-06-23 06:48:49 UTC (rev 623)
@@ -1,39 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- ===================================================================== -->
-<!-- -->
-<!-- JBoss Server Configuration -->
-<!-- -->
-<!-- ===================================================================== -->
-
-<!-- $Id: jbpm-oracle-ds.xml 4458 2009-04-06 14:36:41Z heiko.braun(a)jboss.com $ -->
-
-<!-- ===================================================================== -->
-<!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml -->
-<!-- ===================================================================== -->
-
-<datasources>
- <xa-datasource>
+<datasources>
+ <local-tx-datasource>
<jndi-name>jbossidmDS</jndi-name>
- <track-connection-by-tx/>
- <!-- uncomment to enable interleaving <interleaving/> -->
- <isSameRM-override-value>false</isSameRM-override-value>
- <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
- <xa-datasource-property name="URL">@jdbc.url@</xa-datasource-property>
- <xa-datasource-property name="User">@jdbc.username@</xa-datasource-property>
- <xa-datasource-property name="Password">@jdbc.password@</xa-datasource-property>
+ <connection-url>@jdbc.url@</connection-url>
+ <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
+ <user-name>@jdbc.username@</user-name>
+ <password>@jdbc.password@</password>
+
+ <min-pool-size>5</min-pool-size>
+ <max-pool-size>100</max-pool-size>
- <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
- <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
- <!-- Checks the Oracle error codes and messages for fatal errors -->
- <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
- <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
- <no-tx-separate-pools/>
-
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
- </xa-datasource>
-
+ </local-tx-datasource>
</datasources>
Modified: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-postgresql-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-postgresql-ds.xml 2009-06-22 10:25:56 UTC (rev 622)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-postgresql-ds.xml 2009-06-23 06:48:49 UTC (rev 623)
@@ -1,24 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<datasources>
- <xa-datasource>
+<datasources>
+ <local-tx-datasource>
<jndi-name>jbossidmDS</jndi-name>
-
- <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
- <xa-datasource-property name="PortNumber">@jdbc.port@</xa-datasource-property>
- <xa-datasource-property name="DatabaseName">@jdbc.databasename@</xa-datasource-property>
- <xa-datasource-property name="ServerName">@jdbc.server@</xa-datasource-property>
+ <connection-url>@jdbc.url@</connection-url>
+ <driver-class>org.postgresql.Driver</driver-class>
<user-name>@jdbc.username@</user-name>
<password>@jdbc.password@</password>
-
- <!-- disable transaction interleaving -->
- <track-connection-by-tx />
-
- <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
- <metadata>
- <type-mapping>PostgreSQL 8.0</type-mapping>
- </metadata>
- </xa-datasource>
-
+ <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+ <metadata>
+ <type-mapping>PostgreSQL 8.0</type-mapping>
+ </metadata>
+ </local-tx-datasource>
</datasources>
Modified: idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-sybase-ds.xml
===================================================================
--- idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-sybase-ds.xml 2009-06-22 10:25:56 UTC (rev 622)
+++ idm/trunk/assembly/src/main/files/jboss/datasources/jbidm-sybase-ds.xml 2009-06-23 06:48:49 UTC (rev 623)
@@ -14,6 +14,5 @@
<type-mapping>Sybase</type-mapping>
</metadata>
</local-tx-datasource>
-
</datasources>
Modified: idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml
===================================================================
--- idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml 2009-06-22 10:25:56 UTC (rev 622)
+++ idm/trunk/integration/deployer/src/main/resources/jboss.idm.cfg.xml 2009-06-23 06:48:49 UTC (rev 623)
@@ -18,16 +18,6 @@
<external-config/>
<default-identity-store-id>Identity_DB_Store</default-identity-store-id>
<default-attribute-store-id>Identity_DB_Store</default-attribute-store-id>
- <options>
- <option>
- <name>allowNotDefinedAttributes</name>
- <value>true</value>
- </option>
- <option>
- <name>allowNotDefinedIdentityObjectTypes</name>
- <value>true</value>
- </option>
- </options>
</repository>
</repositories>
<stores>
@@ -39,7 +29,7 @@
<external-config/>
<supported-relationship-types>
<relationship-type>JBOSS_IDENTITY_MEMBERSHIP</relationship-type>
- <relationship-type>JBOSS_IDENTITY_ROLE</relationship-type>
+ <relationship-type>JBOSS_IDENTITY_ROLE</relationship-type>
</supported-relationship-types>
<supported-identity-object-types>
<identity-object-type>
@@ -96,26 +86,6 @@
<attributes/>
<options/>
</identity-object-type>
- <identity-object-type>
- <name>unit</name>
- <relationships>
- <relationship>
- <relationship-type-ref>JBOSS_IDENTITY_ROLE</relationship-type-ref>
- <identity-object-type-ref>USER</identity-object-type-ref>
- </relationship>
- <relationship>
- <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
- <identity-object-type-ref>USER</identity-object-type-ref>
- </relationship>
- <relationship>
- <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
- <identity-object-type-ref>unit</identity-object-type-ref>
- </relationship>
- </relationships>
- <credentials/>
- <attributes/>
- <options/>
- </identity-object-type>
</supported-identity-object-types>
<options>
<option>
@@ -131,9 +101,17 @@
<value>true</value>
</option>
<option>
- <name>allowNotDefinedAttributes</name>
- <value>true</value>
- </option>
+ <name>allowNotDefinedAttributes</name>
+ <value>true</value>
+ </option>
+ <option>
+ <name>allowNotDefinedIdentityObjectTypes</name>
+ <value>true</value>
+ </option>
+ <option>
+ <name>manageTransactionDuringBootstrap</name>
+ <value>false</value>
+ </option>
<option>
<name>isRealmAware</name>
<value>true</value>
14 years, 10 months
JBoss Identity SVN: r622 - in idm/trunk: idm-testsuite/src/test/java/org/jboss/identity/idm/impl/api and 1 other directory.
by jboss-identity-commits@lists.jboss.org
Author: bdaw
Date: 2009-06-22 06:25:56 -0400 (Mon, 22 Jun 2009)
New Revision: 622
Modified:
idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/api/session/managers/PersistenceManagerImpl.java
idm/trunk/idm-testsuite/src/test/java/org/jboss/identity/idm/impl/api/PersistenceManagerTest.java
Log:
fix findGroupById method impl
Modified: idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/api/session/managers/PersistenceManagerImpl.java
===================================================================
--- idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/api/session/managers/PersistenceManagerImpl.java 2009-06-22 08:42:23 UTC (rev 621)
+++ idm/trunk/idm-core/src/main/java/org/jboss/identity/idm/impl/api/session/managers/PersistenceManagerImpl.java 2009-06-22 10:25:56 UTC (rev 622)
@@ -245,13 +245,16 @@
{
checkNotNullArgument(id, "Group id");
- IdentityObject io = getRepository().findIdentityObject(getInvocationContext(), id);
-
- if (io != null)
+ if (!GroupId.validateId(id))
{
- return createGroup(io);
+ throw new IdentityException("Provided group id is not valid: " + id + "; " +
+ "Please use PersistenceManager.createGroupId() to obtain valid group id");
}
- return null;
+
+ GroupId groupId = new GroupId(id);
+
+ return findGroup(groupId.getName(), groupId.getType());
+
}
public Collection<Group> findGroup(String groupType, IdentitySearchCriteria criteria) throws IdentityException
Modified: idm/trunk/idm-testsuite/src/test/java/org/jboss/identity/idm/impl/api/PersistenceManagerTest.java
===================================================================
--- idm/trunk/idm-testsuite/src/test/java/org/jboss/identity/idm/impl/api/PersistenceManagerTest.java 2009-06-22 08:42:23 UTC (rev 621)
+++ idm/trunk/idm-testsuite/src/test/java/org/jboss/identity/idm/impl/api/PersistenceManagerTest.java 2009-06-22 10:25:56 UTC (rev 622)
@@ -109,11 +109,16 @@
assertEquals(group1.getGroupType(), ORGANIZATION);
assertEquals(group1.getName(), "groupName1");
-
String group1Id = session.getPersistenceManager().createGroupId("groupName1", ORGANIZATION);
assertEquals(group1Id, group1.getId());
+ group1 = session.getPersistenceManager().findGroupById(group1Id);
+
+ assertNotNull(group1);
+ assertEquals(group1.getGroupType(), ORGANIZATION);
+ assertEquals(group1.getName(), "groupName1");
+
session.getPersistenceManager().createGroup("groupName2", ORGANIZATION);
session.getPersistenceManager().createGroup("groupName3", PROJECT);
14 years, 10 months