com.threerings.presents.net
Class SecureRequest

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.presents.net.Message
          extended by com.threerings.presents.net.UpstreamMessage
              extended by com.threerings.presents.net.AuthRequest
                  extended by com.threerings.presents.net.SecureRequest
All Implemented Interfaces:
Streamable

public class SecureRequest
extends AuthRequest

Used to create a secure channel to the server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class com.threerings.presents.net.AuthRequest
_bootGroups, _creds, _version, _zone
 
Fields inherited from class com.threerings.presents.net.UpstreamMessage
_nextMessageId, messageId
 
Fields inherited from class com.threerings.presents.net.Message
received
 
Constructor Summary
SecureRequest()
          Zero argument constructor used when unserializing an instance.
SecureRequest(PublicKeyCredentials creds, String version)
          Constructs a auth request with the supplied credentials and client version information.
 
Method Summary
 byte[] getSecret(PrivateKey key)
          Returns the secret from the credentials.
 
Methods inherited from class com.threerings.presents.net.AuthRequest
getBootGroups, getCredentials, getSecret, getTimeZone, getVersion, readObject, toString
 
Methods inherited from class com.threerings.presents.net.UpstreamMessage
nextMessageId
 
Methods inherited from class com.threerings.presents.net.Message
getTransport, noteActualTransport, setTransport
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecureRequest

public SecureRequest()
Zero argument constructor used when unserializing an instance.


SecureRequest

public SecureRequest(PublicKeyCredentials creds,
                     String version)
Constructs a auth request with the supplied credentials and client version information.

Method Detail

getSecret

public byte[] getSecret(PrivateKey key)
Returns the secret from the credentials.