Class TokenInformation


  • @Evolving
    public class TokenInformation
    extends java.lang.Object
    A class representing a delegation token details.
    • Constructor Detail

      • TokenInformation

        public TokenInformation​(java.lang.String tokenId,
                                KafkaPrincipal owner,
                                java.util.Collection<KafkaPrincipal> renewers,
                                long issueTimestamp,
                                long maxTimestamp,
                                long expiryTimestamp)
    • Method Detail

      • ownerAsString

        public java.lang.String ownerAsString()
      • 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 class java.lang.Object
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object