Allow an empty authType by setting it to "unknown".
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 4 Dec 2002 20:04:14 +0000 (20:04 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 4 Dec 2002 20:04:14 +0000 (20:04 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@362 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/HandleEntry.java

index 160f146..98e1f10 100755 (executable)
@@ -83,7 +83,7 @@ public class HandleEntry {
        if (username == null || username.length() == 0) 
            throw new HandleException(HandleException.ERR, "HandleEntry() requires username");
        if (authType == null || authType.length() == 0)
-           throw new HandleException(HandleException.ERR, "HandleEntry() requires authType");
+            authType = "unknown";
 
        handle = UUIDGenerator.getInstance().generateRandomBasedUUID().toString();
        this.username = username;
@@ -105,7 +105,7 @@ public class HandleEntry {
        if (username == null || username.length() == 0) 
            throw new HandleException(HandleException.ERR, "HandleEntry() requires username");
        if (authType == null || authType.length() == 0)
-           throw new HandleException(HandleException.ERR, "HandleEntry() requires authType");
+            authType = "unknown";
        
        this.handle = handle;
        this.username = username;