Messed up cast.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 20 Jun 2005 18:05:18 +0000 (18:05 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 20 Jun 2005 18:05:18 +0000 (18:05 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1644 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/provider/ShibbolethTrust.java

index 4fc5647..f0175e2 100644 (file)
@@ -388,7 +388,7 @@ public class ShibbolethTrust extends BasicTrust implements Trust, PluggableConfi
                                        + "Name from supplied certificate: " + e1);
                }
                names.add(getHostNameFromDN(certificate.getSubjectX500Principal()));
                                        + "Name from supplied certificate: " + e1);
                }
                names.add(getHostNameFromDN(certificate.getSubjectX500Principal()));
-               return (String[]) names.toArray();
+               return (String[]) names.toArray(new String[1]);
        }
        
        private static boolean matchProviderId(X509Certificate certificate, String id) {
        }
        
        private static boolean matchProviderId(X509Certificate certificate, String id) {