Should have been 16 bytes for handle
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Feb 2005 16:33:50 +0000 (16:33 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Feb 2005 16:33:50 +0000 (16:33 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1244 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/provider/SharedMemoryShibHandle.java

index 523058f..54450fc 100644 (file)
@@ -70,7 +70,7 @@ public class SharedMemoryShibHandle extends AQHNameIdentifierMapping implements
                        throw new IllegalArgumentException("A principal must be supplied for Attribute Query Handle creation.");
                }
 
-               String handle = new String(config.getDefaultIDProvider().generateRandomBytes(36));
+               String handle = new String(config.getDefaultIDProvider().generateRandomBytes(16));
                log.debug("Assigning handle (" + handle + ") to principal (" + principal.getName() + ").");
                synchronized (cache.handleEntries) {
                        cache.handleEntries.put(handle, createHandleEntry(principal));