public class TTR_Signature extends TaggedTailRecord
| Modifier and Type | Field and Description |
|---|---|
static int |
SIGLEN |
rawLength, tag| Constructor and Description |
|---|
TTR_Signature(byte[] signature) |
TTR_Signature(byte tag,
byte[] rec,
int rawLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(byte[] data,
String keyString)
Check if packet has correct signature.
|
byte[] |
getSignature() |
byte[] |
toBytes()
Convert this record to bytes to send out.
|
String |
toString() |
fromBytes, fromBytesAll, getRawLength, getTag, htonl, toBytespublic static final int SIGLEN
public TTR_Signature(byte tag,
byte[] rec,
int rawLength)
public TTR_Signature(byte[] signature)
public boolean check(byte[] data,
String keyString)
data - part of packet to check.keyString - password.public byte[] toBytes()
TaggedTailRecordtoBytes in class TaggedTailRecordpublic byte[] getSignature()
Copyright © 2019. All rights reserved.