data class Ticket
(source)
<init> |
Ticket(topic: Bytes, srcNodeId: Bytes, srcIp: InetAddress, requestTime: Long, waitTime: Long, cumTime: Long) |
cumTime |
val cumTime: Long |
requestTime |
val requestTime: Long |
srcIp |
val srcIp: InetAddress |
srcNodeId |
val srcNodeId: Bytes |
topic |
val topic: Bytes |
waitTime |
val waitTime: Long |
encode |
fun encode(): Bytes |
encrypt |
fun encrypt(key: Bytes): Bytes |
validate |
fun validate(srcNodeId: Bytes, srcIp: InetAddress, now: Long, topic: Bytes): Unit |
create |
fun create(content: Bytes): Ticket |
decrypt |
fun decrypt(encrypted: Bytes, key: Bytes): Ticket |