[java-idp-testbed COMMIT] /trunk/src/main/java/idp/AddAttributeRecipientContext.java

noreply at shibboleth.net noreply at shibboleth.net
Sat Jan 4 11:04:41 EST 2014


Author: rdw
Date: Sat Jan  4 11:04:41 2014
New Revision: 111

URL: http://svn.shibboleth.net/view/java-idp-testbed?rev=111&view=rev
Log:
IDP-351, IDP-350 Remove the principal from the AttributeRecipientContext and look in the AttributeResolutionContext or AttributeFilterContext for the information

Modified:
    trunk/src/main/java/idp/AddAttributeRecipientContext.java

Modified: trunk/src/main/java/idp/AddAttributeRecipientContext.java
URL: http://svn.shibboleth.net/view/java-idp-testbed/trunk/src/main/java/idp/AddAttributeRecipientContext.java?rev=111&r1=110&r2=111&view=diff
==============================================================================
--- trunk/src/main/java/idp/AddAttributeRecipientContext.java (original)
+++ trunk/src/main/java/idp/AddAttributeRecipientContext.java Sat Jan  4 11:04:41 2014
@@ -43,6 +43,7 @@
     private Logger log = LoggerFactory.getLogger(AddAttributeRecipientContext.class);
 
     /** {@inheritDoc} */
+    @Override
     protected org.springframework.webflow.execution.Event doExecute(@Nonnull final RequestContext springRequestContext,
             @Nonnull final ProfileRequestContext profileRequestContext) throws ProfileException {
 
@@ -52,16 +53,9 @@
             return ActionSupport.buildEvent(this, EventIds.INVALID_PROFILE_CTX);
         }
 
-        String principalName = subjectCtx.getPrincipalName();
-        if (principalName == null) {
-            log.debug("Action {}: No principal name available.", getId());
-            return ActionSupport.buildEvent(this, EventIds.INVALID_PROFILE_CTX);
-        }
-
         AttributeResolutionContext attributeResolutionContext =
                 profileRequestContext.getSubcontext(AttributeResolutionContext.class, true);
         AttributeRecipientContext attributeRecipientContext = new AttributeRecipientContext();
-        attributeRecipientContext.setPrincipal(principalName);
         // TODO where to get the rest of the data for the attribute recipient context ?
         attributeResolutionContext.addSubcontext(attributeRecipientContext);
 



More information about the commits mailing list