Package com.sun.identity.cli
Class FormatUtils
- java.lang.Object
-
- com.sun.identity.cli.FormatUtils
-
public class FormatUtils extends Object
Utility to format CLI output.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MASKED_PWD
static String
SPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatMap(String keyLabel, String propLabel, Map map)
Returns a formatted string.static String
formatProperties(Map prop)
static String
printAttributeValues(String template, Map attributeValues)
static String
printAttributeValues(String template, Map attributeValues, Set passwords)
static String
printServiceNames(Set serviceNames, String template, SSOToken ssoToken)
-
-
-
Field Detail
-
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
-
MASKED_PWD
public static final String MASKED_PWD
- See Also:
- Constant Field Values
-
-
Method Detail
-
printServiceNames
public static String printServiceNames(Set serviceNames, String template, SSOToken ssoToken) throws SMSException, SSOException
- Throws:
SMSException
SSOException
-
printAttributeValues
public static String printAttributeValues(String template, Map attributeValues, Set passwords)
-
printAttributeValues
public static String printAttributeValues(String template, Map attributeValues)
-
formatMap
public static String formatMap(String keyLabel, String propLabel, Map map)
Returns a formatted string. Given a map, a key and value label. Tabulates the keys and values in the map in this manner.keyLabel propLabel -------------- -------------- key1 value1 key2 value2 keyN valueN
- Parameters:
keyLabel
- Label for the key column.propLabel
- Label for the value column.map
- Map that contains the information.- Returns:
- a formatted string of a map.
-
-