Class AclFormattingUtils
java.lang.Object
org.springframework.security.acls.domain.AclFormattingUtils
Utility methods for displaying ACL information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdemergePatterns(String original, String removeBits) static StringmergePatterns(String original, String extraBits) static StringprintBinary(int i) Returns a representation of the active bits in the presented mask, with each active bit being denoted by character '*'.static StringprintBinary(int mask, char code) Returns a representation of the active bits in the presented mask, with each active bit being denoted by the passed character.
-
Constructor Details
-
AclFormattingUtils
public AclFormattingUtils()
-
-
Method Details
-
demergePatterns
-
mergePatterns
-
printBinary
Returns a representation of the active bits in the presented mask, with each active bit being denoted by character '*'.Inactive bits will be denoted by character
Permission.RESERVED_OFF.- Parameters:
i- the integer bit mask to print the active bits for- Returns:
- a 32-character representation of the bit mask
-
printBinary
Returns a representation of the active bits in the presented mask, with each active bit being denoted by the passed character.Inactive bits will be denoted by character
Permission.RESERVED_OFF.- Parameters:
mask- the integer bit mask to print the active bits forcode- the character to print when an active bit is detected- Returns:
- a 32-character representation of the bit mask
-