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 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 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)
-
-