maguro 2005/03/28 16:00:21
Modified: modules/core/src/java/org/openejb/corba/util Util.java
Log:
Change dependency to geronimo-spec-corba.
Revision Changes Path
1.5 +7 -8
openejb/modules/core/src/java/org/openejb/corba/util/Util.java
Index: Util.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/util/Util.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Util.java 27 Mar 2005 02:04:42 -0000 1.4
+++ Util.java 28 Mar 2005 21:00:21 -0000 1.5
@@ -62,16 +62,15 @@
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.UserException;
+import org.omg.GSSUP.GSSUPMechOID;
+import org.omg.GSSUP.InitialContextToken;
+import org.omg.GSSUP.InitialContextTokenHelper;
import org.omg.IOP.Codec;
import org.omg.IOP.CodecFactory;
import org.omg.IOP.ENCODING_CDR_ENCAPS;
import org.omg.IOP.Encoding;
import org.openorb.util.HexPrintStream;
-import org.apache.geronimo.interop.GSSUP.GSSUPMechOID;
-import org.apache.geronimo.interop.GSSUP.InitialContextToken;
-import org.apache.geronimo.interop.GSSUP.InitialContextTokenHelper;
-
/**
* Various utility functions.
@@ -304,7 +303,7 @@
// create and encode a GSSUP initial context token
InitialContextToken init_token = new InitialContextToken();
init_token.username = user.getBytes();
-
+
String password = new String(pwd);
init_token.password = password.getBytes();
@@ -389,8 +388,8 @@
public static String byteToString(byte[] data) {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < data.length; i++) {
- buffer.append(HEXCHAR[(data[i]>>>4)&0x0F]);
- buffer.append(HEXCHAR[(data[i] )&0x0F]);
+ buffer.append(HEXCHAR[(data[i] >>> 4) & 0x0F]);
+ buffer.append(HEXCHAR[(data[i]) & 0x0F]);
}
return buffer.toString();