diff --git a/src/main/java/com/threerings/presents/net/Credentials.java b/src/main/java/com/threerings/presents/net/Credentials.java index 3c1878b73..34fb988f4 100644 --- a/src/main/java/com/threerings/presents/net/Credentials.java +++ b/src/main/java/com/threerings/presents/net/Credentials.java @@ -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. */