Class TokenInformation
java.lang.Object
org.apache.kafka.common.security.token.delegation.TokenInformation
A class representing a delegation token details.
Constructor Summary
ConstructorsConstructorDescriptionTokenInformation(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) Method Summary
Modifier and TypeMethodDescriptionbooleanlongstatic TokenInformationfromRecord(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp) inthashCode()longlongowner()booleanownerOrRenewer(KafkaPrincipal principal) renewers()voidsetExpiryTimestamp(long expiryTimestamp) tokenId()toString()
Constructor Details
TokenInformation
public TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp) TokenInformation
public TokenInformation(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
Method Details
fromRecord
public static TokenInformation fromRecord(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp) owner
ownerAsString
tokenRequester
tokenRequesterAsString
renewers
renewersAsString
issueTimestamp
public long issueTimestamp()expiryTimestamp
public long expiryTimestamp()setExpiryTimestamp
public void setExpiryTimestamp(long expiryTimestamp) tokenId
maxTimestamp
public long maxTimestamp()ownerOrRenewer
toString
equals
hashCode