[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjec...

noreply at shibboleth.net noreply at shibboleth.net
Tue May 27 23:34:00 EDT 2014


Author: scantor
Date: Tue May 27 23:33:59 2014
New Revision: 5979

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5979&view=rev
Log:
Add logging.

Modified:
    trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjectFromRequest.java

Modified: trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjectFromRequest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjectFromRequest.java?rev=5979&r1=5978&r2=5979&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjectFromRequest.java (original)
+++ trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ExtractSubjectFromRequest.java Tue May 27 23:33:59 2014
@@ -163,10 +163,14 @@
 
         final Subject subject;
         if (nameIdentifier instanceof NameIdentifier) {
+            log.debug("{} Creating Subject for canonicalization around NameIdentifier {}", getLogPrefix(),
+                    ((NameIdentifier) nameIdentifier).getNameIdentifier());
             subject = new Subject(false,
                     Collections.singleton(new NameIdentifierPrincipal((NameIdentifier) nameIdentifier)),
                     Collections.emptySet(), Collections.emptySet());
         } else if (nameIdentifier instanceof NameID) {
+            log.debug("{} Creating Subject for canonicalization around NameID {}", getLogPrefix(),
+                    ((NameID) nameIdentifier).getValue());
             subject = new Subject(false,
                     Collections.singleton(new NameIDPrincipal((NameID) nameIdentifier)),
                     Collections.emptySet(), Collections.emptySet());
@@ -179,6 +183,8 @@
             ActionSupport.buildEvent(profileRequestContext, NO_SUBJECT);
             return;
         }
+        
+        
         
         final SubjectCanonicalizationContext c14n = new SubjectCanonicalizationContext();
         c14n.setSubject(subject);



More information about the commits mailing list