
public class AuthentPacket extends AbstractLocalPacket
header = "hostId" middle = "key bytes" end = localId + way + (optional version: could be a JSON on the form version.{})
end, header, middle| Constructor and Description |
|---|
AuthentPacket(String hostId,
byte[] key,
Integer newId) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static AuthentPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
void |
createHeader(LocalChannelReference lcr)
Prepare the Header buffer
|
void |
createMiddle(LocalChannelReference lcr)
Prepare the Middle buffer
|
String |
getHostId() |
byte[] |
getKey() |
Integer |
getLocalId() |
byte |
getType() |
boolean |
isToValidate() |
String |
toString() |
void |
validate(boolean isSSL)
Validate the connection
|
clear, getLocalPacket, retainpublic static AuthentPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength - middleLength - endLength - buf - OpenR66ProtocolPacketExceptionpublic void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateEnd in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateHeader in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateMiddle in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic byte getType()
getType in class AbstractLocalPacketpublic String toString()
toString in class AbstractLocalPacketpublic String getHostId()
public byte[] getKey()
public Integer getLocalId()
public boolean isToValidate()
public void validate(boolean isSSL)
Copyright © 2009–2020 Waarp. All rights reserved.