Package com.microsoft.jenkins.azuread
Class AzureAdMatrixAuthorizationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
hudson.security.AuthorizationStrategy
com.microsoft.jenkins.azuread.GlobalMatrixAuthorizationStrategy
com.microsoft.jenkins.azuread.AzureAdMatrixAuthorizationStrategy
- All Implemented Interfaces:
AuthorizationContainer,ExtensionPoint,Describable<AuthorizationStrategy>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.microsoft.jenkins.azuread.GlobalMatrixAuthorizationStrategy
GlobalMatrixAuthorizationStrategy.PermissionAdderImplNested 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
Fields inherited from class com.microsoft.jenkins.azuread.GlobalMatrixAuthorizationStrategy
DANGEROUS_PERMISSIONS, DESCRIPTORFields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Permission p, PermissionEntry entry) static voidgetACL(AbstractItem item) Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups().booleanhasExplicitPermission(PermissionEntry entry, Permission p) Return true if and only if the exact permission entry is explicitly granted the specified permission, ignoring compatible types (e.g.booleanhasPermission(String sid, Permission p, boolean principal) Checks if the given SID has the given permission.static ACLinheritingACL(ACL parent, ACL child) Methods inherited from class com.microsoft.jenkins.azuread.GlobalMatrixAuthorizationStrategy
getEditingPermission, getGrantedPermissionEntries, getRootACL, recordGroupMethods inherited from class hudson.security.AuthorizationStrategy
all, 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, getAllPermissionEntries, getAllSIDs, getDescriptor, getGrantedPermissions, hasExplicitPermission, hasPermission
-
Constructor Details
-
AzureAdMatrixAuthorizationStrategy
@DataBoundConstructor public AzureAdMatrixAuthorizationStrategy()
-
-
Method Details
-
getACL
- Overrides:
getACLin classAuthorizationStrategy
-
getACL
- Overrides:
getACLin classAuthorizationStrategy
-
inheritingACL
-
getACL
-
getACL
- Overrides:
getACLin classAuthorizationStrategy
-
getGroups
Description copied from interface:AuthorizationContainerInternal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups().- Specified by:
getGroupsin interfaceAuthorizationContainer- Overrides:
getGroupsin classGlobalMatrixAuthorizationStrategy
-
add
Description copied from interface:AuthorizationContainerAdds toAuthorizationContainer.getGrantedPermissionEntries(). Use of this method should be limited during construction, as this object itself is considered immutable once populated. -
hasExplicitPermission
Description copied from interface:AuthorizationContainerReturn true if and only if the exact permission entry is explicitly granted the specified permission, ignoring compatible types (e.g. passing USER will not match an EITHER entry) and implications.- Parameters:
entry- the entry to check forp- the permission to check for- Returns:
- true if and only if the exact entry matches
-
hasPermission
Description copied from interface:AuthorizationContainerChecks if the given SID has the given permission. -
fixClassNameTypo
-