编写客户端程序。
import org.ietf.jgss.*;
import java.net.Socket;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
public class SampleClient {
public static void main(String[] args)
throws IOException, GSSException {
System.setProperty("java.security.krb5.realm","QIBAOFU.COM");
System.setProperty("java.security.krb5.kdc","qibaofu.com");
System.setProperty("javax.security.auth.useSubjectCredsOnly","false");
System.setProperty("java.security.auth.login.config","bcsLogin.conf");
String server = "sample/qibaofu.com";
String hostName = "127.0.0.1";
int port = 8090;
Socket socket = new Socket(hostName, port);
DataInputStream inStream =
new DataInput