Package hudson.security
Class FullControlOnceLoggedInAuthorizationStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
-
- hudson.security.AuthorizationStrategy
-
- hudson.security.FullControlOnceLoggedInAuthorizationStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AuthorizationStrategy>
public class FullControlOnceLoggedInAuthorizationStrategy extends AuthorizationStrategy
AuthorizationStrategy
that grants full-control to authenticated user and optionally read access to anonymous users- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FullControlOnceLoggedInAuthorizationStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.Unsecured
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Descriptor<AuthorizationStrategy>
DESCRIPTOR
Deprecated.as of 1.643 Inject descriptor viaInject
.-
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED
-
-
Constructor Summary
Constructors Constructor Description FullControlOnceLoggedInAuthorizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getGroups()
Returns the list of all group/role names used in this authorization strategy, and the ACL returned from theAuthorizationStrategy.getRootACL()
method.ACL
getRootACL()
boolean
isAllowAnonymousRead()
If true, anonymous read access will be allowedvoid
setAllowAnonymousRead(boolean allowAnonymousRead)
-
Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACL
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
DESCRIPTOR
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Descriptor<AuthorizationStrategy> DESCRIPTOR
Deprecated.as of 1.643 Inject descriptor viaInject
.
-
-
Method Detail
-
getRootACL
public ACL getRootACL()
Description copied from class:AuthorizationStrategy
Returns the instance ofACL
where all the otherACL
instances for all the other model objects eventually delegate.IOW, this ACL will have the ultimate say on the access control.
- Specified by:
getRootACL
in classAuthorizationStrategy
-
getGroups
public List<String> getGroups()
Description copied from class:AuthorizationStrategy
Returns the list of all group/role names used in this authorization strategy, and the ACL returned from theAuthorizationStrategy.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 JENKINS-2716 for such one such report.)
- Specified by:
getGroups
in classAuthorizationStrategy
- Returns:
- never null.
-
isAllowAnonymousRead
public boolean isAllowAnonymousRead()
If true, anonymous read access will be allowed
-
setAllowAnonymousRead
@DataBoundSetter public void setAllowAnonymousRead(boolean allowAnonymousRead)
-
-