Interface HonoUser

All Superinterfaces:
Principal
All Known Implementing Classes:
HonoUserAdapter

public interface HonoUser extends Principal
A principal representing a client of a Hono service API.
  • Method Details

    • getAuthorities

      Authorities getAuthorities()
      Gets this user's granted authorities.
      Returns:
      The authorities.
    • getToken

      String getToken()
      Gets a JSON Web Token representing this user's claims.
      Returns:
      The compact encoding of the token.
    • isExpired

      boolean isExpired()
      Checks if the validity period of this user's asserted claims has expired.
      Returns:
      true if the claims have expired and this user's authorities should be considered invalid.
    • getExpirationTime

      Instant getExpirationTime()
      Gets the point in time after which this user's authorities should be considered invalid.
      Returns:
      The expiration time.