Class DNUtil


  • public class DNUtil
    extends Object
    A utility for computing distinguished names. Since we are accumulating a slew of these, this organizes them and their logic.

    Created by Jeff Gaynor
    on 5/14/12 at 8:44 AM

    • Constructor Detail

      • DNUtil

        public DNUtil()
    • Method Detail

      • isComputeFNAL

        public static boolean isComputeFNAL()
      • setComputeFNAL

        public static void setComputeFNAL​(boolean computeFNAL)
      • getCase

        protected static int getCase​(User user)
      • getLIGODN

        protected static String getLIGODN​(User user,
                                          boolean returnEmail)
      • encodeCertName

        public static String encodeCertName​(String[] names)
        Each component of the name needs to be utf-7 encoded.
        Parameters:
        names -
        Returns:
      • getDefaultDN

        protected static String getDefaultDN​(User user,
                                             boolean returnEmail)
      • toUTF7

        protected static String toUTF7​(String inString)
        Converts a String to its UTF7 equivalent and returns that. E.g. A string like

        Шоста@和楽器.com

        would be returned as

        +BCgEPgRBBEIEMABAVIxpfVZo.com
        Parameters:
        inString -
        Returns:
      • newUTF7

        protected static String newUTF7​(String inString)
      • oldUTF7

        protected static String oldUTF7​(String inString)
        Convert a string to UTF 7 if it has not been already converted.
        Parameters:
        inString -
        Returns:
      • main

        public static void main​(String[] args)
      • getFNLDN

        protected static String getFNLDN​(User user,
                                         boolean returnEmail)