More re-organization of the Relying Party code in order to support new configuration...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 12 Sep 2006 18:12:24 +0000 (18:12 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 12 Sep 2006 18:12:24 +0000 (18:12 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2024 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/RelyingPartyMapper.java

index f503e40..c5283e7 100644 (file)
@@ -47,8 +47,10 @@ public class RelyingPartyMapper {
        private MetadataProvider metaData;
        private Credentials credentials;
 
-       public RelyingPartyMapper(Element rawConfig, IdPConfig configuration, Credentials credentials)
-                       throws RelyingPartyMapperException {
+       public RelyingPartyMapper(Element rawConfig, Credentials credentials) throws RelyingPartyMapperException {
+
+               if (credentials == null) { throw new IllegalArgumentException(
+                               "RelyingPartyMapper cannot be started without proper access to the IdP configuration."); }
 
                this.credentials = credentials;