Added a providerId getter as a convenience.
authordfisher <dfisher@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 19 Apr 2007 23:47:05 +0000 (23:47 +0000)
committerdfisher <dfisher@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 19 Apr 2007 23:47:05 +0000 (23:47 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2179 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index b43b181..cdcfca1 100644 (file)
@@ -33,6 +33,9 @@ public class ProfileResponseContext {
     /** Profile request message. */
     private SubjectQuery message;
 
+    /** Provider id to retrieve relying party configuration. */
+    private String providerId;
+    
     /** Issue instant for the response. */
     private DateTime issueInstant;
 
@@ -49,6 +52,7 @@ public class ProfileResponseContext {
     public ProfileResponseContext(ProfileRequest r, SubjectQuery m) {
         request = r;
         message = m;
+        providerId = m.getIssuer().getSPProvidedID();
         issueInstant = new DateTime();
     }
 
@@ -71,6 +75,15 @@ public class ProfileResponseContext {
     }
 
     /**
+     * Gets the provider id.
+     * 
+     * @return provider id
+     */
+    public String getProviderId() {
+        return providerId;
+    }
+    
+    /**
      * Gets the issue instant for the response.
      * 
      * @return issue instant