Package org.jenkinsci.plugins.oic.avatar
Class AvatarProperty
java.lang.Object
hudson.model.UserProperty
org.jenkinsci.plugins.oic.avatar.AvatarProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<UserProperty>,ReconfigurableDescribable<UserProperty>
@SuppressRestrictedWarnings(jenkins.security.csp.AvatarContributor.class)
public class AvatarProperty
extends UserProperty
Records the avatar of a user that logged in through OpenID Connect.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.UserProperty
user -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClear the AvatarPropertybooleanThe URL the browser should load the avatar frominthashCode()reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) The property is not user-editable, so a user configuration form submit must never be able to change or wipe it.Methods inherited from class hudson.model.UserProperty
all, allByCategoryClass, getDescriptor, reconfigure, setUser
-
Method Details
-
getAvatarUrl
The URL the browser should load the avatar from- Returns:
- the URL, or
nullif there is no avatar.
-
clear
Clear the AvatarProperty- Parameters:
user- the user to clear the property from.- Throws:
IOException
-
reconfigure
public UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) throws Descriptor.FormException The property is not user-editable, so a user configuration form submit must never be able to change or wipe it. We therefore deliberately do not bind the submitted JSON and simply keep the existing instance.- Specified by:
reconfigurein interfaceReconfigurableDescribable<UserProperty>- Overrides:
reconfigurein classUserProperty- Throws:
Descriptor.FormException
-
hashCode
public int hashCode() -
equals
-