Class RenewGracePeriodConstraint

  • All Implemented Interfaces:
    IConfigTemplate

    public class RenewGracePeriodConstraint
    extends EnrollConstraint
    This class supports renewal grace period, which has two parameters: graceBefore and graceAfter
    Version:
    $Revision$, $Date$
    Author:
    Christina Fu
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • CONFIG_RENEW_GRACE_BEFORE

        public static final java.lang.String CONFIG_RENEW_GRACE_BEFORE
        See Also:
        Constant Field Values
      • CONFIG_RENEW_GRACE_AFTER

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

      • RenewGracePeriodConstraint

        public RenewGracePeriodConstraint()
    • Method Detail

      • validate

        public void validate​(IRequest req,
                             org.mozilla.jss.netscape.security.x509.X509CertInfo info)
                      throws ERejectException
        Description copied from class: EnrollConstraint
        Validates the request. The request is not modified during the validation.
        Specified by:
        validate in class EnrollConstraint
        Parameters:
        req - enrollment request
        info - certificate template
        Throws:
        ERejectException - request is rejected due to violation of constraint
      • getText

        public java.lang.String getText​(java.util.Locale locale)
        Description copied from class: PolicyConstraint
        Returns localized description of this constraint.
        Overrides:
        getText in class EnrollConstraint
        Parameters:
        locale - locale of the end-user
        Returns:
        localized description of this constraint
      • isApplicable

        public boolean isApplicable​(PolicyDefault def)
        Description copied from class: PolicyConstraint
        Checks if this constraint is applicable to the given default policy.
        Overrides:
        isApplicable in class EnrollConstraint
        Parameters:
        def - default policy to be checked
        Returns:
        true if this constraint can be applied to the given default policy