com.threerings.presents.net
Class SecureResponse
java.lang.Object
com.threerings.io.SimpleStreamableObject
com.threerings.presents.net.Message
com.threerings.presents.net.DownstreamMessage
com.threerings.presents.net.AuthResponse
com.threerings.presents.net.SecureResponse
- All Implemented Interfaces:
- Streamable, AuthCodes
public class SecureResponse
- extends AuthResponse
- implements AuthCodes
Used to indicate a authentication response based on a SecureRequest.
|
Constructor Summary |
SecureResponse()
Zero argument constructor used when unserializing an instance. |
SecureResponse(String code)
Creates a secure response with the response code. |
SecureResponse
public SecureResponse()
- Zero argument constructor used when unserializing an instance.
SecureResponse
public SecureResponse(String code)
- Creates a secure response with the response code.
createSecret
public byte[] createSecret(PublicKeyCredentials pkcred,
PrivateKey key,
int length)
- Encodes the server secret in the response data, or sets the failed state.
- Returns:
- the server secret if successfully encoded, or null.
getCodeBytes
public byte[] getCodeBytes(PublicKeyCredentials pkcreds)
- Returns the code bytes or null for a failed state.