public class FullControlOnceLoggedInAuthorizationStrategy extends AuthorizationStrategy
AuthorizationStrategy
that grants full-control to authenticated user
and optionally read access to anonymous usersModifier and Type | Class and Description |
---|---|
static class |
FullControlOnceLoggedInAuthorizationStrategy.DescriptorImpl |
AuthorizationStrategy.Unsecured
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static Descriptor<AuthorizationStrategy> |
DESCRIPTOR
Deprecated.
as of 1.643
Inject descriptor via
Inject . |
LIST, UNSECURED
Constructor and Description |
---|
FullControlOnceLoggedInAuthorizationStrategy() |
Modifier and Type | Method and Description |
---|---|
List<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()
|
boolean |
isAllowAnonymousRead()
If true, anonymous read access will be allowed
|
void |
setAllowAnonymousRead(boolean allowAnonymousRead) |
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACL
getDescriptor
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Descriptor<AuthorizationStrategy> DESCRIPTOR
Inject
.@DataBoundConstructor public FullControlOnceLoggedInAuthorizationStrategy()
public ACL getRootACL()
AuthorizationStrategy
ACL
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 AuthorizationStrategy
public List<String> getGroups()
AuthorizationStrategy
AuthorizationStrategy.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 AuthorizationStrategy
public boolean isAllowAnonymousRead()
@DataBoundSetter public void setAllowAnonymousRead(boolean allowAnonymousRead)
Copyright © 2004–2021. All rights reserved.