public void send(OutputStream os) throws IOException, QueryException {
  Buffer buffer=new Buffer(authData);
  final PacketOutputStream writer=(PacketOutputStream)os;
  final String serverPrincipalName=buffer.readString(Charset.forName("UTF-8"));
  String mechanisms=buffer.readString(Charset.forName("UTF-8"));
  if (mechanisms.equals(""))   mechanisms="Kerberos";
  GssapiAuth gssapiAuth=getAuthenticationMethod();
  gssapiAuth.authenticate(writer,serverPrincipalName,mechanisms);
}

public void send ( OutputStream os ) throws IOException , QueryException { Buffer buffer = new Buffer ( authData ) ; final PacketOutputStream writer = ( PacketOutputStream ) os ; final String serverPrincipalName = buffer . readString ( Charset . forName ( "UTF-8" ) ) ; String mechanisms = buffer . readString ( Charset . forName ( "UTF-8" ) ) ; if ( mechanisms . equals ( "" ) ) mechanisms = "Kerberos" ; GssapiAuth gssapiAuth = getAuthenticationMethod ( ) ; gssapiAuth . authenticate ( writer , serverPrincipalName , mechanisms ) ; }
send native password stream .
