Class PKCS12Output

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

    public class PKCS12Output
    extends EnrollOutput
    This class implements the output plugin that outputs PKCS12 response for the issued certificate for Server-side keygen enrollment. Christina Fu
    • Constructor Summary

      Constructors 
      Constructor Description
      PKCS12Output()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      java.lang.String getValue​(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request)
      Retrieves the value of the given value parameter by name.
      com.netscape.certsrv.property.IDescriptor getValueDescriptor​(java.util.Locale locale, java.lang.String name)
      Retrieves the descriptor of the given value parameter by name.
      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
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • VAL_P12_RESPONSE

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

      • PKCS12Output

        public PKCS12Output()
    • Method Detail

      • getName

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

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

        public void populate​(java.util.Map<java.lang.String,​java.lang.String> ctx,
                             com.netscape.certsrv.request.IRequest request)
                      throws com.netscape.certsrv.profile.EProfileException
        Populates the request with this policy default.
        Specified by:
        populate in class EnrollOutput
        Parameters:
        ctx - profile context
        request - request
        Throws:
        com.netscape.certsrv.profile.EProfileException - failed to populate
      • 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 EnrollOutput
        Parameters:
        locale - user locale
        name - property name
        Returns:
        property descriptor
      • getValue

        public java.lang.String getValue​(java.lang.String name,
                                         java.util.Locale locale,
                                         com.netscape.certsrv.request.IRequest request)
                                  throws com.netscape.certsrv.profile.EProfileException
        Description copied from class: ProfileOutput
        Retrieves the value of the given value parameter by name.
        Overrides:
        getValue in class EnrollOutput
        Parameters:
        name - property name
        locale - user locale
        request - request
        Returns:
        property value
        Throws:
        com.netscape.certsrv.profile.EProfileException - failed to retrieve value