Class SubjectAltNameExtInput

  • All Implemented Interfaces:
    IConfigTemplate

    public class SubjectAltNameExtInput
    extends EnrollInput
    This plugin populates text fields to the enrollment page so that SAN parameters can be collected from the user.

    The collected parameters could be used for fomulating the SAN attributes in the certificate.

    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • CONFIG_SAN_REQ_PATTERN

        public static final java.lang.String CONFIG_SAN_REQ_PATTERN
        See Also:
        Constant Field Values
      • CONFIG_SAN_REQ_TYPE

        public static final java.lang.String CONFIG_SAN_REQ_TYPE
        See Also:
        Constant Field Values
      • VAL_SAN_REQ_PATTERN

        public static final java.lang.String VAL_SAN_REQ_PATTERN
        See Also:
        Constant Field Values
      • VAL_SAN_REQ_TYPE

        public static final java.lang.String VAL_SAN_REQ_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubjectAltNameExtInput

        public SubjectAltNameExtInput()
    • Method Detail

      • 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
      • 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,
                             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
      • getValueDescriptor

        public 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