Interface TokenManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.undertow.security.idm.PasswordCredential get​(io.undertow.security.idm.Account account)
      retrieves of generate a token valid for the account
      void injectTokenHeaders​(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token)
      injects the token headers in the response
      void invalidate​(io.undertow.security.idm.Account account)
      invalidates the token bound to the account
      void update​(io.undertow.security.idm.Account account)
      updates the account bound to a token
    • Field Detail

      • AUTH_TOKEN_HEADER

        static final io.undertow.util.HttpString AUTH_TOKEN_HEADER
      • AUTH_TOKEN_VALID_HEADER

        static final io.undertow.util.HttpString AUTH_TOKEN_VALID_HEADER
      • AUTH_TOKEN_LOCATION_HEADER

        static final io.undertow.util.HttpString AUTH_TOKEN_LOCATION_HEADER
      • ACCESS_CONTROL_EXPOSE_HEADERS

        static final io.undertow.util.HttpString ACCESS_CONTROL_EXPOSE_HEADERS
    • Method Detail

      • get

        io.undertow.security.idm.PasswordCredential get​(io.undertow.security.idm.Account account)
        retrieves of generate a token valid for the account
        Parameters:
        account -
        Returns:
        the token for the account
      • invalidate

        void invalidate​(io.undertow.security.idm.Account account)
        invalidates the token bound to the account
        Parameters:
        account -
      • update

        void update​(io.undertow.security.idm.Account account)
        updates the account bound to a token
        Parameters:
        account -
      • injectTokenHeaders

        void injectTokenHeaders​(io.undertow.server.HttpServerExchange exchange,
                                io.undertow.security.idm.PasswordCredential token)
        injects the token headers in the response
        Parameters:
        exchange -
        token -