public class AuthenticationResponse extends java.lang.Object implements Response
Constructor and Description |
---|
AuthenticationResponse() |
AuthenticationResponse(int code) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getDeniedCause() |
ClientMetaData |
getIdentity() |
AuthenticationRequest |
getRequest() |
int |
getResponseCode() |
ServerMetaData |
getServer() |
void |
readExternal(java.io.ObjectInput in) |
void |
setDeniedCause(java.lang.Throwable deniedCause) |
void |
setIdentity(ClientMetaData identity) |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for version checking
|
void |
setRequest(AuthenticationRequest request) |
void |
setResponseCode(int responseCode) |
void |
setServer(ServerMetaData server) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
public AuthenticationResponse()
public AuthenticationResponse(int code)
public void setMetaData(ProtocolMetaData metaData)
Response
setMetaData
in interface Response
metaData
- ProtocolMetaDatapublic AuthenticationRequest getRequest()
public void setRequest(AuthenticationRequest request)
public int getResponseCode()
public ClientMetaData getIdentity()
public ServerMetaData getServer()
public void setResponseCode(int responseCode)
public void setIdentity(ClientMetaData identity)
public void setServer(ServerMetaData server)
public java.lang.Throwable getDeniedCause()
public void setDeniedCause(java.lang.Throwable deniedCause)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in interface Response
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in interface Response
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object