Class GeneralNameUtil

  • All Implemented Interfaces:
    IGeneralNameUtil

    public class GeneralNameUtil
    extends java.lang.Object
    implements IGeneralNameUtil
    Class that can be used to form general names from configuration file. Used by policies and extension commands.
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • GeneralNameUtil

        public GeneralNameUtil()
    • Method Detail

      • form_GeneralNameAsConstraints

        public static org.mozilla.jss.netscape.security.x509.GeneralName form_GeneralNameAsConstraints​(java.lang.String generalNameChoice,
                                                                                                       java.lang.String value)
                                                                                                throws EBaseException
        GeneralName can be used in the context of Constraints. Examples are NameConstraints, CertificateScopeOfUse extensions. In such cases, IPAddress may contain netmask component.
        Throws:
        EBaseException
      • form_GeneralName

        public static org.mozilla.jss.netscape.security.x509.GeneralName form_GeneralName​(java.lang.String generalNameChoice,
                                                                                          java.lang.String value)
                                                                                   throws EBaseException
        Form a General Name from a General Name choice and value. The General Name choice must be one of the General Name Choice Strings defined in this class.
        Parameters:
        generalNameChoice - General Name choice. Must be one of the General Name choices defined in this class.
        value - String value of the general name to form.
        Throws:
        EBaseException
      • check_GeneralNameChoice

        public static java.lang.String check_GeneralNameChoice​(java.lang.String generalNameChoice)
                                                        throws EBaseException
        Checks if given string is a valid General Name choice and returns the actual string that can be passed into form_GeneralName().
        Parameters:
        generalNameChoice - a General Name choice string.
        Returns:
        one of General Name choices defined in this class that can be passed into form_GeneralName().
        Throws:
        EBaseException