Class TokenInformation
java.lang.Object
org.apache.kafka.common.security.token.delegation.TokenInformation
@Evolving public class TokenInformation extends Object
A class representing a delegation token details.
-
Constructor Summary
Constructors Constructor Description TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
Method Summary
Modifier and Type Method 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()
String
toString()
-
Constructor Details
-
TokenInformation
public TokenInformation(String tokenId, KafkaPrincipal owner, Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
-
Method Details
-
owner
-
ownerAsString
-
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()
-