Package jenkins.security.csp.impl
Class UserAvatarContributor
java.lang.Object
jenkins.security.csp.impl.UserAvatarContributor
- All Implemented Interfaces:
ExtensionPoint,Contributor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class UserAvatarContributor
extends Object
implements Contributor
This extension automatically allows loading images from the domain hosting the current user's avatar
as determined via
UserAvatarResolver.
Note that this will not make avatars of other users work, if they're from different domains.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CspBuilder cspBuilder) Contribute to the builder's rules by adding to or removing from the providedCspBuilder.
-
Constructor Details
-
UserAvatarContributor
public UserAvatarContributor()
-
-
Method Details
-
apply
Description copied from interface:ContributorContribute to the builder's rules by adding to or removing from the providedCspBuilder.- Specified by:
applyin interfaceContributor- Parameters:
cspBuilder- the builder
-