Class GeneralNameConfig

java.lang.Object
org.dogtagpki.legacy.core.policy.GeneralNameConfig
All Implemented Interfaces:
IGeneralNameConfig
Direct Known Subclasses:
GeneralNameAsConstraintsConfig, SubjAltNameGN

public class GeneralNameConfig extends Object implements IGeneralNameConfig
convenience class for policies use.
  • Field Details

    • mName

      public String mName
    • mNameDot

      public String mNameDot
    • mConfig

      public ConfigStore mConfig
    • mGenNameChoice

      public String mGenNameChoice
    • mIsValueConfigured

      public boolean mIsValueConfigured
    • mValue

      public String mValue
    • mGeneralName

      public org.mozilla.jss.netscape.security.x509.GeneralName mGeneralName
    • mIsPolicyEnabled

      public boolean mIsPolicyEnabled
    • mNameDotChoice

      public String mNameDotChoice
    • mNameDotValue

      public String mNameDotValue
  • Constructor Details

  • Method Details

    • formGeneralName

      public org.mozilla.jss.netscape.security.x509.GeneralName formGeneralName(String value) throws EBaseException
      Form a general name from the value string.
      Specified by:
      formGeneralName in interface IGeneralNameConfig
      Parameters:
      value - general name in string
      Returns:
      general name object
      Throws:
      EBaseException - failed to form general name
    • formGeneralName

      public org.mozilla.jss.netscape.security.x509.GeneralName formGeneralName(String choice, String value) throws EBaseException
      Throws:
      EBaseException
    • formGeneralNames

      public Vector<org.mozilla.jss.netscape.security.x509.GeneralName> formGeneralNames(Object value) throws EBaseException
      Description copied from interface: IGeneralNameConfig
      Forms general names from the given value.
      Specified by:
      formGeneralNames in interface IGeneralNameConfig
      Parameters:
      value - general name in string
      Returns:
      a vector of General names from a value that can be either a Vector of strings, string array or just a string. Returned Vector can be null if value is not of expected type.
      Throws:
      EBaseException - failed to form general name
    • getName

      public String getName()
    • getConfig

      public ConfigStore getConfig()
    • getGenNameChoice

      public String getGenNameChoice()
    • getValue

      public String getValue()
    • isValueConfigured

      public boolean isValueConfigured()
    • getDefaultParams

      public static void getDefaultParams(String name, boolean isValueConfigured, Vector<String> params)
      Get default params
    • getInstanceParams

      public void getInstanceParams(Vector<String> params)
      Get instance params
      Specified by:
      getInstanceParams in interface IGeneralNameConfig
      Parameters:
      params - parameters
    • getExtendedPluginInfo

      public static void getExtendedPluginInfo(String name, boolean isValueConfigured, Vector<String> info)
      Get extended plugin info