Removed redundant checking.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 15 Feb 2003 02:25:05 +0000 (02:25 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 15 Feb 2003 02:25:05 +0000 (02:25 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@463 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 115249a..9388f92 100755 (executable)
@@ -81,13 +81,6 @@ public class ShibPOSTProfileFactory
     public static ShibPOSTProfile getInstance(Collection policies, String receiver, int ttlSeconds)
         throws SAMLException
     {
-        // Current version only knows about Club Shib...
-        if (policies == null || !policies.contains(Constants.POLICY_CLUBSHIB))
-            return null;
-
-        if (receiver == null || ttlSeconds <= 0)
-            return null;
-
         return new ClubShibPOSTProfile(policies, receiver, ttlSeconds);
     }
 
@@ -106,13 +99,6 @@ public class ShibPOSTProfileFactory
     public static ShibPOSTProfile getInstance(Collection policies, String issuer)
         throws SAMLException
     {
-        // Current version only knows about Club Shib...
-        if (policies == null || !policies.contains(Constants.POLICY_CLUBSHIB))
-            return null;
-
-        if (issuer == null || issuer.length() == 0)
-            return null;
-
         return new ClubShibPOSTProfile(policies, issuer);
     }
 }