Interface WebAuthenticationValidation

    • Method Detail

      • getSilverpeasContext

        SilverpeasRequestContext getSilverpeasContext()
        Gets the context of Silverpeas linked to the current request. This context must be initialized before the functional request processing.
        Returns:
        SilverpeasRequestContext instance.
      • validateUserAuthentication

        default void validateUserAuthentication​(UserPrivilegeValidation validation)
        Validates the authentication of the user requesting currently a web endpoint by using the specified user privilege validation service. If no session was opened for the user, then open a new one.

        This method should be invoked for web services requiring an authenticated user. Otherwise, the annotation Authenticated can be also used instead at class level.

        Parameters:
        validation - the validation instance to use.
        Throws:
        javax.ws.rs.WebApplicationException - if the authentication isn't valid (no authentication and authentication failure).
        See Also:
        UserPrivilegeValidator