Class AclFormattingUtils
- java.lang.Object
-
- org.springframework.security.acls.domain.AclFormattingUtils
-
public abstract class AclFormattingUtils extends java.lang.ObjectUtility methods for displaying ACL information.
-
-
Constructor Summary
Constructors Constructor Description AclFormattingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringdemergePatterns(java.lang.String original, java.lang.String removeBits)static java.lang.StringmergePatterns(java.lang.String original, java.lang.String extraBits)static java.lang.StringprintBinary(int i)Returns a representation of the active bits in the presented mask, with each active bit being denoted by character '*'.static java.lang.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.
-
-
-
Method Detail
-
demergePatterns
public static java.lang.String demergePatterns(java.lang.String original, java.lang.String removeBits)
-
mergePatterns
public static java.lang.String mergePatterns(java.lang.String original, java.lang.String extraBits)
-
printBinary
public static java.lang.String printBinary(int i)
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
public static java.lang.String printBinary(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.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
-
-