RFC: providing a way to generically detect the language and machine identity for a connection
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6482 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -34,6 +34,28 @@ import com.threerings.io.Streamable;
|
||||
*/
|
||||
public abstract class Credentials implements Streamable
|
||||
{
|
||||
/**
|
||||
* Implemented by credentials that provide a machine identifier.
|
||||
*/
|
||||
public interface HasMachineIdent
|
||||
{
|
||||
/**
|
||||
* Gets the machine identifier associated with the submitting user's machine.
|
||||
*/
|
||||
String getMachineIdent ();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implemented by credentials that provide a language.
|
||||
*/
|
||||
public interface HasLanguage
|
||||
{
|
||||
/**
|
||||
* Gets the language selected by the submitting user.
|
||||
*/
|
||||
String getLanguage ();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string to use in a hash on the datagram contents to authenticate client datagrams.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user