Package org.eclipse.hono.auth
Interface HonoUser
- All Superinterfaces:
Principal
- All Known Implementing Classes:
HonoUserAdapter
A principal representing a client of a Hono service API.
-
Method Summary
Modifier and TypeMethodDescriptionGets this user's granted authorities.Gets the point in time after which this user's authorities should be considered invalid.getToken()
Gets a JSON Web Token representing this user's claims.boolean
Checks if the validity period of this user's asserted claims has expired.
-
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.
-