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
Deprecated.
|
static int |
DEF_LAG_TIME
Deprecated.
|
static int |
DEF_LEAD_TIME
Deprecated.
|
static int |
DEF_MAX_VALIDITY
Deprecated.
|
static int |
DEF_MIN_VALIDITY
Deprecated.
|
static int |
DEF_NOT_BEFORE_SKEW
Deprecated.
|
static long |
MINS_TO_MS_FACTOR
Deprecated.
|
protected long |
mLagTime
Deprecated.
|
protected long |
mLeadTime
Deprecated.
|
protected long |
mMaxValidity
Deprecated.
|
protected long |
mMinValidity
Deprecated.
|
protected long |
mNotBeforeSkew
Deprecated.
|
DESC, mFilterExp, mInstanceName, mLogger, NAME
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
ValidityConstraints()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated.
Applies the policy on the given Request.
|
java.util.Vector |
getDefaultParams()
Deprecated.
Return default parameters for a policy implementation.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
Deprecated.
This method returns an array of strings.
|
java.util.Vector |
getInstanceParams()
Deprecated.
Return configured parameters for a policy rule instance.
|
void |
init(ISubsystem owner,
IConfigStore config)
Deprecated.
Initializes this policy rule.
|
protected netscape.security.x509.CertificateValidity |
makeDefaultValidity(IRequest req)
Deprecated.
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)
Deprecated.
convert a millisecond resolution time into one with 1 second
resolution.
|
agentApproved, createKeyIdentifier, deferred, formSHA1KeyId, formSpkiSHA1KeyId, getDescription, getInstanceName, getName, getPredicate, log, setError, setError, setError, setInstanceName, setPolicyException, setPolicyException, setPredicate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getInstanceName, getName, getPredicate, setError, setInstanceName, setPolicyException, setPredicate
protected 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)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public void init(ISubsystem owner, IConfigStore config) throws EPolicyException
The entries probably are of the form:
ra.Policy.rule.
init
in interface IPolicyRule
init
in class APolicyRule
config
- The config store referenceEPolicyException
public PolicyResult apply(IRequest req)
apply
in interface IPolicyRule
apply
in interface IPolicy
apply
in class APolicyRule
req
- The request on which to apply policy.public java.util.Vector getInstanceParams()
getInstanceParams
in interface IPolicyRule
getInstanceParams
in class APolicyRule
public java.util.Vector getDefaultParams()
getDefaultParams
in interface IPolicyRule
getDefaultParams
in class APolicyRule
protected netscape.security.x509.CertificateValidity makeDefaultValidity(IRequest req)
protected long roundTimeToSecond(long input)