Interface ImpersonationRequestValidator

    • Method Detail

      • validateUserImpersonation

        void validateUserImpersonation​(ImpersonationRequest impersonationRequest,
                                       OAuth2UserDetails impersonatedUser,
                                       String csrUserId)
        Validates that the user requested to be impersonated is able to be impersonated. Validation includes various properties of a user, such as expired, locked, impersonation disabled, etc.
        Parameters:
        impersonatedUser - The user to be impersonated.
        impersonationRequest - The impersonation request.
        csrUserId - The user ID of the user initiating the impersonation request.
      • validateAnonymousImpersonation

        void validateAnonymousImpersonation​(ImpersonationRequest impersonationRequest,
                                            String impersonatedClientId,
                                            String csrUserId)
        Validates that the CSR can impersonate an anonymous user in the client. Validation includes the access of the CSR to the requested client.
        Parameters:
        impersonatedClientId - The ID of client to impersonate in
        impersonationRequest - The impersonation request.
        csrUserId - The user ID of the user initiating the impersonation request.
      • validateImpersonationRequest

        void validateImpersonationRequest​(ImpersonationRequest impersonationRequest)
        Validate that an impersonation request is valid.
        Parameters:
        impersonationRequest - This impersonation request.
      • validateImpersonationRequestToken

        void validateImpersonationRequestToken​(ImpersonationRequestToken impersonationRequestToken)
        Validate that an impersonation request token is valid.
        Parameters:
        impersonationRequestToken - This impersonation request token.