Class AvatarResolver

java.lang.Object
hudson.tasks.UserAvatarResolver
org.jenkinsci.plugins.oic.avatar.AvatarResolver
All Implemented Interfaces:
ExtensionPoint

@Extension public class AvatarResolver extends UserAvatarResolver
Exposes the avatar recorded by the configured AvatarHandler to the rest of Jenkins.
  • Constructor Details

    • AvatarResolver

      public AvatarResolver()
  • Method Details

    • findAvatarFor

      public String findAvatarFor(User user, int width, int height)

      width and height are ignored: so the image is always served at its natural size and scaling will occur on the browser.

      Specified by:
      findAvatarFor in class UserAvatarResolver