Package org.jenkinsci.plugins.oic.avatar
Class NoAvatarHandler
java.lang.Object
hudson.model.AbstractDescribableImpl<AvatarHandler>
org.jenkinsci.plugins.oic.avatar.AvatarHandler
org.jenkinsci.plugins.oic.avatar.NoAvatarHandler
- All Implemented Interfaces:
ExtensionPoint,Describable<AvatarHandler>,Serializable
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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAvatar(OicSecurityRealm realm, User user, String avatarUrl) Record, refresh or clear the avatar foruser.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
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:AvatarHandlerRecord, refresh or clear the avatar foruser.Called on the login request thread, so implementations must return promptly: anything needing network IO must be handled asynchronously.
- Specified by:
handleAvatarin classAvatarHandler- Parameters:
avatarUrl- the value of the provider's avatar claim, ornullif it was not present.- Throws:
IOException
-