Class PrintableString


  • public class PrintableString
    extends Object
    This class defines utility methods that can be used to determine whether a character string is printable as defined in X.520 and referenced in RFC 2252. Printable characters consist of the set of uppercase and lowercase alphabetic characters, numeric digits, quotation mark, open and close parentheses, plus, minus, comma, period, slash, colon, question mark, and space.
    • Constructor Detail

      • PrintableString

        public PrintableString()
    • Method Detail

      • isPrintableCharacter

        public static boolean isPrintableCharacter​(char c)
        Indicates whether the provided character is a valid printable character.
        Parameters:
        c - The character for which to make the determination.
        Returns:
        true if the provided character is a printable character, or false if not.
      • isPrintableString

        public static boolean isPrintableString​(String s)
        Indicates whether the provided string is a valid printable string.
        Parameters:
        s - The string for which to make the determination.
        Returns:
        true if the provided string is a printable string, or false if not.