public class AnyTicket extends Object implements Ticket.Mutable
Ticket.Mutable| Modifier and Type | Field and Description |
|---|---|
protected String |
bizPart |
protected long |
pubExp |
protected String |
pubMod |
protected int |
pubSeq |
protected String |
sigPart |
| Constructor and Description |
|---|
AnyTicket() |
AnyTicket(String pubMod) |
AnyTicket(String pubMod,
long pubExp,
int pubSeq,
String bizPart,
String sigPart) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
@NotNull String |
getBizPart()
Biz-data part, optional(empty means no biz-data), less than 1k.
|
long |
getPubDue()
Expiration, in seconds from 1970-01-01, not negative
|
@NotNull String |
getPubMod()
The convention schema, including encryption algorithm, signature method,
is a convention of the BizPart structure, supported [az09].
|
int |
getPubSeq()
Serial number, non-negative, incremental and non-consecutive.
|
@NotNull String |
getSigPart()
Signature part, usually within 50 characters, to ensure that the Ticket has not been tampered with.
|
int |
hashCode() |
@NotNull String |
serialize(char sep1,
char sep2)
serialize the Ticket
|
void |
setBizPart(String bizPart) |
void |
setPubDue(long pubExp) |
void |
setPubMod(String pubMod) |
void |
setPubSeq(int pubSeq) |
void |
setSigPart(String sigPart) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopyPartgetSigData, serializeprotected String pubMod
protected long pubExp
protected int pubSeq
protected String bizPart
protected String sigPart
public AnyTicket()
public AnyTicket(String pubMod)
@NotNull public @NotNull String getPubMod()
Ticketpublic void setPubMod(String pubMod)
setPubMod in interface Ticket.Mutablepublic long getPubDue()
Ticketpublic void setPubDue(long pubExp)
setPubDue in interface Ticket.Mutablepublic int getPubSeq()
Ticketpublic void setPubSeq(int pubSeq)
setPubSeq in interface Ticket.Mutable@NotNull public @NotNull String getBizPart()
TicketgetBizPart in interface Ticketpublic void setBizPart(String bizPart)
setBizPart in interface Ticket.Mutable@NotNull public @NotNull String getSigPart()
TicketgetSigPart in interface Ticketpublic void setSigPart(String sigPart)
setSigPart in interface Ticket.Mutable@NotNull public @NotNull String serialize(char sep1, char sep2)
TicketCopyright © 2024. All rights reserved.