jdk/src/share/classes/sun/security/krb5/Credentials.java
changeset 3949 00603a93b589
parent 3483 a16fce1820ef
child 4336 4c792c19266e
--- a/jdk/src/share/classes/sun/security/krb5/Credentials.java	Fri Oct 02 18:44:34 2009 +0800
+++ b/jdk/src/share/classes/sun/security/krb5/Credentials.java	Fri Oct 02 18:47:34 2009 +0800
@@ -33,16 +33,11 @@
 
 import sun.security.krb5.internal.*;
 import sun.security.krb5.internal.ccache.CredentialsCache;
-import java.util.StringTokenizer;
 import sun.security.krb5.internal.ktab.*;
 import sun.security.krb5.internal.crypto.EType;
 import java.io.File;
 import java.io.IOException;
 import java.util.Date;
-import java.util.Vector;
-import java.io.BufferedReader;
-import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
 import java.net.InetAddress;
 
 /**
@@ -378,9 +373,9 @@
 
                 KRBError error = ke.getError();
                 // update salt in PrincipalName
-                byte[] newSalt = error.getSalt();
-                if (newSalt != null && newSalt.length > 0) {
-                    princ.setSalt(new String(newSalt));
+                String newSalt = error.getSalt();
+                if (newSalt != null && newSalt.length() > 0) {
+                    princ.setSalt(newSalt);
                 }
 
                 // refresh keys