public class ValidityConstraints extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
| Modifier and Type | Field and Description |
|---|---|
static long |
DAYS_TO_MS_FACTOR |
static int |
DEF_LAG_TIME |
static int |
DEF_LEAD_TIME |
static int |
DEF_MAX_VALIDITY |
static int |
DEF_MIN_VALIDITY |
static int |
DEF_NOT_BEFORE_SKEW |
static long |
MINS_TO_MS_FACTOR |
protected long |
mLagTime |
protected long |
mLeadTime |
protected long |
mMaxValidity |
protected long |
mMinValidity |
protected long |
mNotBeforeSkew |
DESC, logger, mFilterExp, mInstanceName, NAMEPROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
ValidityConstraints() |
| Modifier and Type | Method and Description |
|---|---|
PolicyResult |
apply(IRequest req)
Applies the policy on the given Request.
|
java.util.Vector<java.lang.String> |
getDefaultParams()
Return default parameters for a policy implementation.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.util.Vector<java.lang.String> |
getInstanceParams()
Return configured parameters for a policy rule instance.
|
void |
init(IPolicyProcessor owner,
IConfigStore config)
Initializes this policy rule.
|
protected org.mozilla.jss.netscape.security.x509.CertificateValidity |
makeDefaultValidity(IRequest req)
Create a default validity value for a request
This code can be easily overridden in a derived class, if the
calculations here aren't accepatble.
|
protected long |
roundTimeToSecond(long input)
convert a millisecond resolution time into one with 1 second
resolution.
|
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicateprotected long mMinValidity
protected long mMaxValidity
protected long mLeadTime
protected long mLagTime
protected long mNotBeforeSkew
public static final int DEF_MIN_VALIDITY
public static final int DEF_MAX_VALIDITY
public static final int DEF_LEAD_TIME
public static final int DEF_LAG_TIME
public static final int DEF_NOT_BEFORE_SKEW
public static final long DAYS_TO_MS_FACTOR
public static final long MINS_TO_MS_FACTOR
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic void init(IPolicyProcessor owner, IConfigStore config) throws EPolicyException
The entries probably are of the form:
ra.Policy.rule.
init in interface IPolicyRuleinit in class APolicyRuleconfig - The config store referenceEPolicyExceptionpublic PolicyResult apply(IRequest req)
apply in interface IPolicyapply in interface IPolicyRuleapply in class APolicyRulereq - The request on which to apply policy.public java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams in interface IPolicyRulegetInstanceParams in class APolicyRulepublic java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams in interface IPolicyRulegetDefaultParams in class APolicyRuleprotected org.mozilla.jss.netscape.security.x509.CertificateValidity makeDefaultValidity(IRequest req)
protected long roundTimeToSecond(long input)