Class TokenInformation
- java.lang.Object
-
- org.apache.kafka.common.security.token.delegation.TokenInformation
-
-
Constructor Summary
Constructors Constructor Description TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longexpiryTimestamp()inthashCode()longissueTimestamp()longmaxTimestamp()KafkaPrincipalowner()StringownerAsString()booleanownerOrRenewer(KafkaPrincipal principal)Collection<KafkaPrincipal>renewers()Collection<String>renewersAsString()voidsetExpiryTimestamp(long expiryTimestamp)StringtokenId()StringtoString()
-
-
-
Constructor Detail
-
TokenInformation
public TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
-
Method Detail
-
owner
public KafkaPrincipal owner()
-
ownerAsString
public String ownerAsString()
-
renewers
public Collection<KafkaPrincipal> renewers()
-
renewersAsString
public Collection<String> renewersAsString()
-
issueTimestamp
public long issueTimestamp()
-
expiryTimestamp
public long expiryTimestamp()
-
setExpiryTimestamp
public void setExpiryTimestamp(long expiryTimestamp)
-
tokenId
public String tokenId()
-
maxTimestamp
public long maxTimestamp()
-
ownerOrRenewer
public boolean ownerOrRenewer(KafkaPrincipal principal)
-
-