com.microsoft.tfs.core.clients.security.internal
Class SecurityUtility

java.lang.Object
  extended by com.microsoft.tfs.core.clients.security.internal.SecurityUtility

public class SecurityUtility
extends java.lang.Object


Nested Class Summary
static class SecurityUtility.MergePermissionsResult
           
 
Constructor Summary
SecurityUtility()
           
 
Method Summary
static SecurityUtility.MergePermissionsResult mergePermissions(int existingAllow, int existingDeny, int newAllow, int newDeny, int remove)
           Merges existing permissions with new permissions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtility

public SecurityUtility()
Method Detail

mergePermissions

public static SecurityUtility.MergePermissionsResult mergePermissions(int existingAllow,
                                                                      int existingDeny,
                                                                      int newAllow,
                                                                      int newDeny,
                                                                      int remove)

Merges existing permissions with new permissions. Precedence is taken in the following order: Denies, Allows, Removes. If the same bit is set to 1 in both the allow and deny permissions, the deny will outweigh the allow.

Parameters:
existingAllow - The existing allowed permissions.
existingDeny - The existing denied permissions.
allow - The new allowed permissions.
deny - The new denied permissions.
remove - The permissions to remove.


© 2015 Microsoft. All rights reserved.