From f00b17d71c9b4e40dfcec1498bec03a523e5ee79 Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Mon, 28 Jan 2008 20:18:15 +0000 Subject: [PATCH] Changed the way that the iaRealms.xml file is read to allow for extended characters being part of it. --- .../Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java index 3f03ffa5..e5047f06 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java @@ -36,7 +36,9 @@ import javax.naming.directory.Attributes; import org.bandit.util.config.Realm; import org.apache.log4j.Logger; -import java.io.FileReader; +import java.io.Reader; +import java.io.InputStreamReader; +import java.io.FileInputStream; import java.io.IOException; import java.util.Hashtable; import java.util.Map; @@ -94,10 +96,10 @@ public class RealmsInfo RealmsInfo(String realmConfigFilePath) throws Exception { // Go through all of the configured realms - FileReader fileReader = null; + Reader fileReader = null; try { - fileReader = new FileReader(realmConfigFilePath); + fileReader = new InputStreamReader(new FileInputStream(realmConfigFilePath), "UTF8"); RealmsType realmsType = Realms.unmarshal(fileReader); for (int i = 0; i < realmsType.getRealmsTypeItemCount(); i++) {