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