Fixed a bug that was causing type 2 artifacts to always be the same for a given confi...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 7 Apr 2005 01:20:32 +0000 (01:20 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 7 Apr 2005 01:20:32 +0000 (01:20 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1382 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/artifact/provider/BaseArtifactMapper.java

index 08c7520..5361a5f 100644 (file)
@@ -51,9 +51,9 @@ import edu.internet2.middleware.shibboleth.common.ShibbolethConfigurationExcepti
  */
 public abstract class BaseArtifactMapper implements ArtifactMapper {
 
-       private static Logger log = Logger.getLogger(BaseArtifactMapper.class.getName());
-       private URI type2SourceLocation;
-       private MessageDigest md;
+       private static Logger   log     = Logger.getLogger(BaseArtifactMapper.class.getName());
+       private URI                             type2SourceLocation;
+       private MessageDigest   md;
 
        public BaseArtifactMapper() throws ShibbolethConfigurationException {
 
@@ -93,10 +93,7 @@ public abstract class BaseArtifactMapper implements ArtifactMapper {
 
                // If the relying party prefers type 2 and we have the proper data, use it
                if (relyingParty.getPreferredArtifactType() == 2 && type2SourceLocation != null) {
-                       synchronized (md) {
-                               artifact = new SAMLArtifactType0002(Util.generateSourceId(md, relyingParty.getIdentityProvider()
-                                               .getProviderId()), type2SourceLocation);
-                       }
+                       artifact = new SAMLArtifactType0002(type2SourceLocation);
                        // Else, use type 1
                } else {
                        if (relyingParty.getPreferredArtifactType() == 2) {