Class HonoUserAdapter

  • All Implemented Interfaces:
    Principal, HonoUser

    public abstract class HonoUserAdapter
    extends Object
    implements HonoUser
    An empty default implementation to be selectively overridden by subclasses.
    • Constructor Detail

      • HonoUserAdapter

        public HonoUserAdapter()
    • Method Detail

      • getToken

        public String getToken()
        Description copied from interface: HonoUser
        Gets a JSON Web Token representing this user's claims.
        Specified by:
        getToken in interface HonoUser
        Returns:
        null
      • isExpired

        public boolean isExpired()
        Description copied from interface: HonoUser
        Checks if the validity period of this user's asserted claims has expired.
        Specified by:
        isExpired in interface HonoUser
        Returns:
        false
      • getExpirationTime

        public Instant getExpirationTime()
        Description copied from interface: HonoUser
        Gets the point in time after which this user's authorities should be considered invalid.
        Specified by:
        getExpirationTime in interface HonoUser
        Returns:
        now + 10 minutes.