com.threerings.presents.net
Class UsernamePasswordCreds

java.lang.Object
  extended by com.threerings.presents.net.Credentials
      extended by com.threerings.presents.net.UsernamePasswordCreds
All Implemented Interfaces:
Streamable

public class UsernamePasswordCreds
extends Credentials

Credentials that use a username and (hashed) password.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.presents.net.Credentials
Credentials.HasLanguage, Credentials.HasMachineIdent
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  String _password
           
protected  Name _username
           
 
Constructor Summary
UsernamePasswordCreds()
          Zero argument constructor used when unserializing an instance.
UsernamePasswordCreds(Name username, String password)
          Construct credentials with the supplied username and password.
 
Method Summary
 String getDatagramSecret()
          Returns a string to use in a hash on the datagram contents to authenticate client datagrams.
 String getPassword()
           
 Name getUsername()
           
 String toString()
           
protected  void toString(StringBuilder buf)
          An easily extensible method via which derived classes can add to toString()'s output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_username

protected Name _username

_password

protected String _password
Constructor Detail

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.

Method Detail

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.