com.threerings.presents.net
Class UsernamePasswordCreds
java.lang.Object
com.threerings.presents.net.Credentials
com.threerings.presents.net.UsernamePasswordCreds
- All Implemented Interfaces:
- Streamable
public class UsernamePasswordCreds
- extends Credentials
Credentials that use a username and (hashed) password.
_username
protected Name _username
_password
protected String _password
UsernamePasswordCreds
public UsernamePasswordCreds()
- Zero argument constructor used when unserializing an instance.
UsernamePasswordCreds
public UsernamePasswordCreds(Name username,
String password)
- Construct credentials with the supplied username and password.
getUsername
public Name getUsername()
getPassword
public String getPassword()
getDatagramSecret
public String getDatagramSecret()
- Description copied from class:
Credentials
- Returns a string to use in a hash on the datagram contents to authenticate client datagrams.
- Overrides:
getDatagramSecret in class Credentials
toString
public String toString()
- Overrides:
toString in class Object
toString
protected void toString(StringBuilder buf)
- An easily extensible method via which derived classes can add to
toString()'s output.