public final class LegacyAuthorizationStrategy extends AuthorizationStrategy
AuthorizationStrategy implementation that emulates the legacy behavior.| Modifier and Type | Class and Description |
|---|---|
static class |
LegacyAuthorizationStrategy.DescriptorImpl |
AuthorizationStrategy.UnsecuredExtensionPoint.LegacyInstancesAreScopedToHudsonLIST, UNSECURED| Constructor and Description |
|---|
LegacyAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getGroups()
Returns the list of all group/role names used in this authorization strategy,
and the ACL returned from the
AuthorizationStrategy.getRootACL() method. |
ACL |
getRootACL()
|
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACLgetDescriptor@DataBoundConstructor public LegacyAuthorizationStrategy()
public ACL getRootACL()
AuthorizationStrategyACL where all the other ACL instances
for all the other model objects eventually delegate.
IOW, this ACL will have the ultimate say on the access control.
getRootACL in class AuthorizationStrategypublic Collection<String> getGroups()
AuthorizationStrategyAuthorizationStrategy.getRootACL() method.
This method is used by ContainerAuthentication to work around the servlet API issue
that prevents us from enumerating roles that the user has.
If such enumeration is impossible, do the best to list as many as possible, then return it. In the worst case, just return an empty list. Doing so would prevent users from using role names as group names (see HUDSON-2716 for such one such report.)
getGroups in class AuthorizationStrategyCopyright © 2019. All rights reserved.