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 Details

  • Method Details

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object