Package hudson.security
Class FullControlOnceLoggedInAuthorizationStrategy
java.lang.Object
hudson.security.AuthorizationStrategy
hudson.security.FullControlOnceLoggedInAuthorizationStrategy
- All Implemented Interfaces:
ExtensionPoint,Describable<AuthorizationStrategy>
AuthorizationStrategy that grants full-control to authenticated user
and optionally read access to anonymous users- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.UnsecuredNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of all group/role names used in this authorization strategy, and the ACL returned from theAuthorizationStrategy.getRootACL()method.booleanIf true, anonymous read access will be allowedvoidsetAllowAnonymousRead(boolean allowAnonymousRead) Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
DESCRIPTOR
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Descriptor<AuthorizationStrategy> DESCRIPTORDeprecated.as of 1.643 Inject descriptor viaInject.
-
-
Constructor Details
-
FullControlOnceLoggedInAuthorizationStrategy
@DataBoundConstructor public FullControlOnceLoggedInAuthorizationStrategy()
-
-
Method Details
-
getRootACL
Description copied from class:AuthorizationStrategyReturns the instance ofACLwhere all the otherACLinstances for all the other model objects eventually delegate.IOW, this ACL will have the ultimate say on the access control.
- Specified by:
getRootACLin classAuthorizationStrategy
-
getGroups
Description copied from class:AuthorizationStrategyReturns 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
ContainerAuthenticationto 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:
getGroupsin classAuthorizationStrategy- Returns:
- never null.
-
isAllowAnonymousRead
public boolean isAllowAnonymousRead()If true, anonymous read access will be allowed -
setAllowAnonymousRead
@DataBoundSetter public void setAllowAnonymousRead(boolean allowAnonymousRead)
-
Inject.