git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2468
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
subject.getSubjectConfirmations().add(subjectConfirmation);
if (requestContext.getProfileConfiguration().getEncryptNameID()) {
subject.getSubjectConfirmations().add(subjectConfirmation);
if (requestContext.getProfileConfiguration().getEncryptNameID()) {
+ log.debug("Attempting to encrypt NameID to relying party {}", requestContext.getInboundMessageIssuer());
- 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);
subject.setEncryptedID(encrypter.encrypt(nameID));
} catch (SecurityException e) {
log.error("Unable to construct encrypter", e);