Class NoAvatarHandler

All Implemented Interfaces:
ExtensionPoint, Describable<AvatarHandler>, Serializable

public class NoAvatarHandler extends AvatarHandler
Ignores the avatar advertised by the provider entirely, and removes any avatar that was previously recorded for the user.

Nothing is fetched from the provider, by either the browser or the controller, so no third party is told which users are looking at which Jenkins pages. The trade-off is simply that users see the generic Jenkins avatar instead of their own picture.

See Also:
  • Constructor Details

    • NoAvatarHandler

      @DataBoundConstructor public NoAvatarHandler()
  • Method Details

    • handleAvatar

      public void handleAvatar(@NonNull OicSecurityRealm realm, @NonNull User user, @CheckForNull String avatarUrl) throws IOException
      Description copied from class: AvatarHandler
      Record, refresh or clear the avatar for user.

      Called on the login request thread, so implementations must return promptly: anything needing network IO must be handled asynchronously.

      Specified by:
      handleAvatar in class AvatarHandler
      Parameters:
      avatarUrl - the value of the provider's avatar claim, or null if it was not present.
      Throws:
      IOException