Class TokenInformation
java.lang.Object
org.apache.kafka.common.security.token.delegation.TokenInformation
A class representing a delegation token details.
-
Constructor Summary
ConstructorDescriptionTokenInformation
(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 TypeMethodDescriptionboolean
long
static TokenInformation
fromRecord
(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp) int
hashCode()
long
long
owner()
boolean
ownerOrRenewer
(KafkaPrincipal principal) renewers()
void
setExpiryTimestamp
(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
public int hashCode()
-