Class TokenInformation
- java.lang.Object
-
- org.apache.kafka.common.security.token.delegation.TokenInformation
-
@Evolving public class TokenInformation extends java.lang.Object
A class representing a delegation token details.
-
-
Constructor Summary
Constructors Constructor Description TokenInformation(java.lang.String tokenId, KafkaPrincipal owner, java.util.Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
expiryTimestamp()
int
hashCode()
long
issueTimestamp()
long
maxTimestamp()
KafkaPrincipal
owner()
java.lang.String
ownerAsString()
boolean
ownerOrRenewer(KafkaPrincipal principal)
java.util.Collection<KafkaPrincipal>
renewers()
java.util.Collection<java.lang.String>
renewersAsString()
void
setExpiryTimestamp(long expiryTimestamp)
java.lang.String
tokenId()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TokenInformation
public TokenInformation(java.lang.String tokenId, KafkaPrincipal owner, java.util.Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp)
-
-
Method Detail
-
owner
public KafkaPrincipal owner()
-
ownerAsString
public java.lang.String ownerAsString()
-
renewers
public java.util.Collection<KafkaPrincipal> renewers()
-
renewersAsString
public java.util.Collection<java.lang.String> renewersAsString()
-
issueTimestamp
public long issueTimestamp()
-
expiryTimestamp
public long expiryTimestamp()
-
setExpiryTimestamp
public void setExpiryTimestamp(long expiryTimestamp)
-
tokenId
public java.lang.String tokenId()
-
maxTimestamp
public long maxTimestamp()
-
ownerOrRenewer
public boolean ownerOrRenewer(KafkaPrincipal principal)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-