Class GeneralNameUtil

java.lang.Object
org.dogtagpki.legacy.core.policy.GeneralNameUtil
All Implemented Interfaces:
IGeneralNameUtil

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

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • GeneralNameUtil

      public GeneralNameUtil()
  • Method Details

    • form_GeneralNameAsConstraints

      public static org.mozilla.jss.netscape.security.x509.GeneralName form_GeneralNameAsConstraints(String generalNameChoice, 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(String generalNameChoice, 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 String check_GeneralNameChoice(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