Package com.microsoft.jenkins.azuread
Class GlobalMatrixAuthorizationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
hudson.security.AuthorizationStrategy
com.microsoft.jenkins.azuread.GlobalMatrixAuthorizationStrategy
- All Implemented Interfaces:
AuthorizationContainer,ExtensionPoint,Describable<AuthorizationStrategy>
- Direct Known Subclasses:
AzureAdMatrixAuthorizationStrategy
public class GlobalMatrixAuthorizationStrategy
extends AuthorizationStrategy
implements AuthorizationContainer
Role-based authorization via a matrix.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPersistGlobalMatrixAuthorizationStrategyas a list of IDs that representgrantedPermissions.static classstatic final classNested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.UnsecuredNested classes/interfaces inherited from interface com.microsoft.jenkins.azuread.AuthorizationContainer
AuthorizationContainer.IdStrategyComparator, AuthorizationContainer.PermissionEntryComparatorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<Permission>List of permissions considered dangerous to grant to non-admin users.static final GlobalMatrixAuthorizationStrategy.DescriptorImplFields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a live modifiable map of permissions.Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups().voidrecordGroup(String sid) Internal only: Record use of a (possible) group sid to be later returned inAuthorizationContainer.getGroups().Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACLMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.jenkins.azuread.AuthorizationContainer
add, add, add, getAllPermissionEntries, getAllSIDs, getDescriptor, getGrantedPermissions, hasExplicitPermission, hasExplicitPermission, hasPermission, hasPermission
-
Field Details
-
DANGEROUS_PERMISSIONS
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final List<Permission> DANGEROUS_PERMISSIONSList of permissions considered dangerous to grant to non-admin users. These are also all deprecated from Jenkins 2.222. -
DESCRIPTOR
-
-
Constructor Details
-
GlobalMatrixAuthorizationStrategy
public GlobalMatrixAuthorizationStrategy()
-
-
Method Details
-
getGrantedPermissionEntries
Description copied from interface:AuthorizationContainerReturns a live modifiable map of permissions. This return value needs to be treated as unmodifiable from shortly after object construction (even though it isn't for practical reasons).- Specified by:
getGrantedPermissionEntriesin interfaceAuthorizationContainer
-
getEditingPermission
- Specified by:
getEditingPermissionin interfaceAuthorizationContainer
-
getRootACL
- Specified by:
getRootACLin classAuthorizationStrategy
-
getGroups
Description copied from interface:AuthorizationContainerInternal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups().- Specified by:
getGroupsin interfaceAuthorizationContainer- Specified by:
getGroupsin classAuthorizationStrategy
-
recordGroup
Description copied from interface:AuthorizationContainerInternal only: Record use of a (possible) group sid to be later returned inAuthorizationContainer.getGroups().- Specified by:
recordGroupin interfaceAuthorizationContainer
-