@InterfaceStability.Evolving public class TokenInformation extends Object
Constructor and Description |
---|
TokenInformation(String tokenId,
KafkaPrincipal owner,
Collection<KafkaPrincipal> renewers,
long issueTimestamp,
long maxTimestamp,
long expiryTimestamp) |
TokenInformation(String tokenId,
KafkaPrincipal owner,
KafkaPrincipal tokenRequester,
Collection<KafkaPrincipal> renewers,
long issueTimestamp,
long maxTimestamp,
long expiryTimestamp) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
expiryTimestamp() |
int |
hashCode() |
long |
issueTimestamp() |
long |
maxTimestamp() |
KafkaPrincipal |
owner() |
String |
ownerAsString() |
boolean |
ownerOrRenewer(KafkaPrincipal principal) |
Collection<KafkaPrincipal> |
renewers() |
Collection<String> |
renewersAsString() |
void |
setExpiryTimestamp(long expiryTimestamp) |
String |
tokenId() |
KafkaPrincipal |
tokenRequester() |
String |
toString() |
public TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
public TokenInformation(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
public KafkaPrincipal owner()
public KafkaPrincipal tokenRequester()
public String ownerAsString()
public Collection<KafkaPrincipal> renewers()
public Collection<String> renewersAsString()
public long issueTimestamp()
public long expiryTimestamp()
public void setExpiryTimestamp(long expiryTimestamp)
public String tokenId()
public long maxTimestamp()
public boolean ownerOrRenewer(KafkaPrincipal principal)