|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.net.Credentials
com.threerings.presents.net.ServiceCreds
public abstract class ServiceCreds
Credentials used by service clients (peers, bureaus, etc.). A service would extend this class (so that their service clients can be identified by class name).
| 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 |
_authToken
A token created by a call to createAuthToken(java.lang.String, java.lang.String). |
String |
clientId
The id of the service client that is authenticating. |
| Constructor Summary | |
|---|---|
ServiceCreds()
Used when unserializing an instance from the network. |
|
ServiceCreds(String clientId,
String sharedSecret)
Creates credentials for the specified client. |
|
| Method Summary | |
|---|---|
boolean |
areValid(String sharedSecret)
Validates that these credentials were created with the supplied shared secret. |
protected static String |
createAuthToken(String clientId,
String sharedSecret)
Creates a unique password for the specified node using the supplied shared secret. |
String |
toString()
|
| Methods inherited from class com.threerings.presents.net.Credentials |
|---|
getDatagramSecret |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String clientId
protected String _authToken
createAuthToken(java.lang.String, java.lang.String).
| Constructor Detail |
|---|
public ServiceCreds(String clientId,
String sharedSecret)
public ServiceCreds()
| Method Detail |
|---|
public boolean areValid(String sharedSecret)
public String toString()
toString in class Object
protected static String createAuthToken(String clientId,
String sharedSecret)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||