pull entity peer entity ID from correct parameter
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 14 Nov 2007 08:23:54 +0000 (08:23 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 14 Nov 2007 08:23:54 +0000 (08:23 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2468 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AbstractSAML2ProfileHandler.java

index a872945..7448e61 100644 (file)
@@ -571,8 +571,9 @@ public abstract class AbstractSAML2ProfileHandler extends AbstractSAMLProfileHan
         subject.getSubjectConfirmations().add(subjectConfirmation);
 
         if (requestContext.getProfileConfiguration().getEncryptNameID()) {
+            log.debug("Attempting to encrypt NameID to relying party {}", requestContext.getInboundMessageIssuer());
             try {
-                Encrypter encrypter = getEncrypter(requestContext.getPeerEntityId());
+                Encrypter encrypter = getEncrypter(requestContext.getInboundMessageIssuer());
                 subject.setEncryptedID(encrypter.encrypt(nameID));
             } catch (SecurityException e) {
                 log.error("Unable to construct encrypter", e);