|
|||||||||
| 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.PublicKeyCredentials
public class PublicKeyCredentials
Credentials based on a public key encrypted secret.
| 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 byte[] |
_encodedSecret
Our transmitted key. |
protected byte[] |
_salt
Our verification salt. |
protected byte[] |
_secret
Our secret key. |
protected int |
_secureVersion
Our secure version. |
| Constructor Summary | |
|---|---|
PublicKeyCredentials()
No-arg constructor. |
|
PublicKeyCredentials(PublicKey key)
Create a public key credential. |
|
| Method Summary | |
|---|---|
String |
getDatagramSecret()
Returns a string to use in a hash on the datagram contents to authenticate client datagrams. |
byte[] |
getSecret()
Returns the secret. |
byte[] |
getSecret(PrivateKey key)
Decodes the secret. |
int |
getSecureVersion()
Returns the secure version the client is using. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] _encodedSecret
protected byte[] _salt
protected int _secureVersion
protected transient byte[] _secret
| Constructor Detail |
|---|
public PublicKeyCredentials()
public PublicKeyCredentials(PublicKey key)
| Method Detail |
|---|
public int getSecureVersion()
public byte[] getSecret()
public byte[] getSecret(PrivateKey key)
public String getDatagramSecret()
Credentials
getDatagramSecret in class Credentials
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||