public class DefaultLispInfo extends AbstractLispMessage implements LispInfo
LispMessage.Builder| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
authData |
protected short |
authDataLength |
protected LispAfiAddress |
eidPrefix |
protected boolean |
infoReply |
protected short |
keyId |
protected byte |
maskLength |
protected long |
nonce |
protected int |
ttl |
sender| Modifier | Constructor and Description |
|---|---|
protected |
DefaultLispInfo(boolean infoReply,
long nonce,
short keyId,
short authDataLength,
byte[] authData,
int ttl,
byte maskLength,
LispAfiAddress eidPrefix)
A private constructor that protects object instantiation from external.
|
| Modifier and Type | Method and Description |
|---|---|
LispMessage.Builder |
createBuilder()
Generates LISP message builder.
|
static LispInfo |
deserialize(io.netty.buffer.ByteBuf byteBuf) |
byte[] |
getAuthData()
Obtains authentication data.
|
short |
getAuthDataLength()
Obtains authentication data length.
|
short |
getKeyId()
Obtains key identifier.
|
byte |
getMaskLength()
Obtains mask length of the EID Record.
|
long |
getNonce()
Obtains nonce value.
|
LispAfiAddress |
getPrefix()
Obtains EID prefix.
|
int |
getTtl()
Obtains TTL value.
|
LispType |
getType()
Obtains LISP message type.
|
boolean |
isInfoReply()
Obtains has info reply flag value.
|
static void |
serialize(io.netty.buffer.ByteBuf byteBuf,
LispInfo message) |
void |
writeTo(io.netty.buffer.ByteBuf byteBuf)
Writes LISP message object into communication channel.
|
configSender, getSenderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigSender, getSenderprotected final boolean infoReply
protected final long nonce
protected final short keyId
protected final short authDataLength
protected final byte[] authData
protected final int ttl
protected final byte maskLength
protected final LispAfiAddress eidPrefix
protected DefaultLispInfo(boolean infoReply,
long nonce,
short keyId,
short authDataLength,
byte[] authData,
int ttl,
byte maskLength,
LispAfiAddress eidPrefix)
infoReply - info reply flagnonce - noncekeyId - key identifierauthDataLength - authentication data lengthauthData - authentication datattl - Time-To-Live valuemaskLength - EID prefix mask lengtheidPrefix - EID prefixpublic LispType getType()
LispMessagegetType in interface LispMessagegetType in class AbstractLispMessagepublic void writeTo(io.netty.buffer.ByteBuf byteBuf)
throws LispWriterException
LispMessagewriteTo in interface LispMessagewriteTo in class AbstractLispMessagebyteBuf - byte bufferLispWriterException - if the writing request is failed due to
the lisp object cannot be written to the buffer.public LispMessage.Builder createBuilder()
LispMessagecreateBuilder in interface LispMessagecreateBuilder in class AbstractLispMessagepublic boolean isInfoReply()
LispInfoisInfoReply in interface LispInfopublic long getNonce()
LispInfopublic short getKeyId()
LispInfopublic short getAuthDataLength()
LispInfogetAuthDataLength in interface LispInfopublic byte[] getAuthData()
LispInfogetAuthData in interface LispInfopublic int getTtl()
LispInfopublic byte getMaskLength()
LispInfogetMaskLength in interface LispInfopublic LispAfiAddress getPrefix()
LispInfopublic static LispInfo deserialize(io.netty.buffer.ByteBuf byteBuf) throws LispParseError, LispReaderException
LispParseErrorLispReaderExceptionpublic static void serialize(io.netty.buffer.ByteBuf byteBuf,
LispInfo message)
throws LispWriterException
LispWriterException