com.threerings.presents.net
Class Credentials

java.lang.Object
  extended by com.threerings.presents.net.Credentials
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
PublicKeyCredentials, ServiceCreds, UsernamePasswordCreds

public abstract class Credentials
extends Object
implements Streamable

Credentials are supplied by the client implementation and sent along to the server during the authentication process. To provide support for a variety of authentication methods, the credentials class is meant to be subclassed for the particular method (ie. password, auth digest, etc.) in use in a given system.

All derived classes should provide a no argument constructor so that they can be instantiated prior to reconstruction from a data input stream.


Nested Class Summary
static interface Credentials.HasLanguage
          Implemented by credentials that provide a language.
static interface Credentials.HasMachineIdent
          Implemented by credentials that provide a machine identifier.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Constructor Summary
Credentials()
           
 
Method Summary
 String getDatagramSecret()
          Returns a string to use in a hash on the datagram contents to authenticate client datagrams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Credentials

public Credentials()
Method Detail

getDatagramSecret

public String getDatagramSecret()
Returns a string to use in a hash on the datagram contents to authenticate client datagrams.