Class SubjectNameInput

  • All Implemented Interfaces:
    com.netscape.certsrv.property.IConfigTemplate

    public class SubjectNameInput
    extends EnrollInput
    This class implements the subject name input that populates text fields to the enrollment page so that distinguished name parameters can be collected from the user.

    The collected parameters could be used for fomulating the subject name in the certificate.

    Version:
    $Revision$, $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConfig​(java.lang.String name)
      Retrieves configuration parameter by name.
      com.netscape.certsrv.property.IDescriptor getConfigDescriptor​(java.util.Locale locale, java.lang.String name)
      Returns the descriptors of configuration parameter.
      java.lang.String getName​(java.util.Locale locale)
      Retrieves the localizable name of this policy.
      java.lang.String getText​(java.util.Locale locale)
      Retrieves the localizable description of this policy.
      com.netscape.certsrv.property.IDescriptor getValueDescriptor​(java.util.Locale locale, java.lang.String name)
      Retrieves the descriptor of the given value parameter by name.
      java.util.Enumeration<java.lang.String> getValueNames()
      Returns selected value names based on the configuration.
      void init​(Profile profile, IConfigStore config)
      Initializes this default policy.
      protected void parseSubjectName​(org.mozilla.jss.netscape.security.x509.X500Name subj, org.mozilla.jss.netscape.security.x509.X509CertInfo info, com.netscape.certsrv.request.IRequest req)  
      void populate​(java.util.Map<java.lang.String,​java.lang.String> ctx, com.netscape.certsrv.request.IRequest request)
      Populates the request with this policy default.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubjectNameInput

        public SubjectNameInput()
    • Method Detail

      • init

        public void init​(Profile profile,
                         IConfigStore config)
                  throws com.netscape.certsrv.profile.EProfileException
        Initializes this default policy.
        Overrides:
        init in class EnrollInput
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • getName

        public java.lang.String getName​(java.util.Locale locale)
        Retrieves the localizable name of this policy.
        Specified by:
        getName in class EnrollInput
        Parameters:
        locale - user locale
        Returns:
        localized input name
      • getText

        public java.lang.String getText​(java.util.Locale locale)
        Retrieves the localizable description of this policy.
        Specified by:
        getText in class EnrollInput
        Parameters:
        locale - user locale
        Returns:
        localized input description
      • getConfig

        public java.lang.String getConfig​(java.lang.String name)
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Retrieves configuration parameter by name.
        Specified by:
        getConfig in interface com.netscape.certsrv.property.IConfigTemplate
        Overrides:
        getConfig in class EnrollInput
        Returns:
        parameter
      • getValueNames

        public java.util.Enumeration<java.lang.String> getValueNames()
        Returns selected value names based on the configuration.
        Overrides:
        getValueNames in class EnrollInput
        Returns:
        a list of property names
      • populate

        public void populate​(java.util.Map<java.lang.String,​java.lang.String> ctx,
                             com.netscape.certsrv.request.IRequest request)
                      throws java.lang.Exception
        Populates the request with this policy default.
        Specified by:
        populate in class EnrollInput
        Parameters:
        ctx - profile context
        request - request
        Throws:
        java.lang.Exception - failed to populate
      • getConfigDescriptor

        public com.netscape.certsrv.property.IDescriptor getConfigDescriptor​(java.util.Locale locale,
                                                                             java.lang.String name)
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Returns the descriptors of configuration parameter.
        Specified by:
        getConfigDescriptor in interface com.netscape.certsrv.property.IConfigTemplate
        Overrides:
        getConfigDescriptor in class EnrollInput
        Parameters:
        locale - user locale
        name - configuration parameter name
        Returns:
        descriptor
      • getValueDescriptor

        public com.netscape.certsrv.property.IDescriptor getValueDescriptor​(java.util.Locale locale,
                                                                            java.lang.String name)
        Retrieves the descriptor of the given value parameter by name.
        Specified by:
        getValueDescriptor in class EnrollInput
        Parameters:
        locale - user locale
        name - property name
        Returns:
        descriptor of the property
      • parseSubjectName

        protected void parseSubjectName​(org.mozilla.jss.netscape.security.x509.X500Name subj,
                                        org.mozilla.jss.netscape.security.x509.X509CertInfo info,
                                        com.netscape.certsrv.request.IRequest req)
                                 throws com.netscape.certsrv.profile.EProfileException
        Throws:
        com.netscape.certsrv.profile.EProfileException