Need to use UsernamePasswordCreds to log in (Credentials is abstract in

Java, but there's no such thing in actionscript).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3877 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-22 04:31:25 +00:00
parent 605eca8565
commit 334bf08331
4 changed files with 28 additions and 7 deletions
@@ -21,10 +21,12 @@
package com.threerings.presents.net {
import flash.util.StringBuilder;
import com.threerings.util.Name;
import com.threerrings.io.ObjectInputStream;
import com.threerrings.io.ObjectOutputStream;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
public class UsernamePasswordCreds extends Credentials
{
@@ -51,11 +53,11 @@ public class UsernamePasswordCreds extends Credentials
public override function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
_password = ins.readField(String);
_password = (ins.readField(String) as String);
}
// documentation inherited
protected override function toStringBuf (buf :StringBuilder)
internal override function toStringBuf (buf :StringBuilder) :void
{
super.toStringBuf(buf);
buf.append(", password=", _password);