Interface AuthorizationContext


  • public interface AuthorizationContext
    The AuthorizationContext contains properties that can be used to match authorizations.
    Author:
    Stephane Bastian
    • Method Detail

      • create

        static AuthorizationContext create​(User user)
        Factory for Authorization Context
        Parameters:
        user - a user
        Returns:
        a AuthorizationContext instance
      • create

        static AuthorizationContext create​(User user,
                                           MultiMap variables)
        Factory for Authorization Context
        Parameters:
        user - a user
        Returns:
        a AuthorizationContext instance
      • user

        User user()
        Get the authenticated user
        Returns:
        the user
      • variables

        MultiMap variables()
        Returns:
        a Multimap containing variable names and values that can be resolved at runtime by AuthorizationAuthorizations