public class SecureResponse extends AuthResponse implements AuthCodes
Streamable.ClosureauthdatamessageIdFAILED_TO_SECURE, INVALID_PASSWORD, NO_SUCH_USER, SERVER_ERROR, SERVER_UNAVAILABLE, TRYING_NEXT_PORT| Constructor and Description |
|---|
SecureResponse()
Zero argument constructor used when unserializing an instance.
|
SecureResponse(String code)
Creates a secure response with the response code.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createSecret(PublicKeyCredentials pkcred,
PrivateKey key,
int length)
Encodes the server secret in the response data, or sets the failed state.
|
byte[] |
getCodeBytes(PublicKeyCredentials pkcreds)
Returns the code bytes or null for a failed state.
|
getData, setData, toStringgetTransport, noteActualTransport, setTransportpublic SecureResponse()
public SecureResponse(String code)
public byte[] createSecret(PublicKeyCredentials pkcred, PrivateKey key, int length)
public byte[] getCodeBytes(PublicKeyCredentials pkcreds)
Copyright © 2015. All rights reserved.