public class NameConstraintsExt extends APolicyRule implements IEnrollmentPolicy, IExtendedPluginInfo
NOTE: The Policy Framework has been replaced by the Profile Framework.
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEF_CRITICAL |
protected static int |
DEF_NUM_EXCLUDEDSUBTREES |
protected static int |
DEF_NUM_PERMITTEDSUBTREES |
static org.slf4j.Logger |
logger |
protected IConfigStore |
mConfig |
protected boolean |
mCritical |
protected boolean |
mEnabled |
protected org.dogtagpki.legacy.server.policy.extensions.Subtree[] |
mExcludedSubtrees |
protected java.util.Vector<java.lang.String> |
mInstanceParams |
protected org.mozilla.jss.netscape.security.x509.NameConstraintsExtension |
mNameConstraintsExtension |
protected int |
mNumExcludedSubtrees |
protected int |
mNumPermittedSubtrees |
protected org.dogtagpki.legacy.server.policy.extensions.Subtree[] |
mPermittedSubtrees |
protected static java.lang.String |
PROP_CRITICAL |
protected static java.lang.String |
PROP_EXCLUDEDSUBTREES |
protected static java.lang.String |
PROP_NUM_EXCLUDEDSUBTREES |
protected static java.lang.String |
PROP_NUM_PERMITTEDSUBTREES |
protected static java.lang.String |
PROP_PERMITTEDSUBTREES |
DESC, mFilterExp, mInstanceName, mLogger, NAME
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
NameConstraintsExt() |
Modifier and Type | Method and Description |
---|---|
PolicyResult |
apply(IRequest req)
Adds Name Constraints Extension to a (CA) certificate.
|
PolicyResult |
applyCert(IRequest req,
org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo) |
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(ISubsystem owner,
IConfigStore config)
Initializes this policy rule.
|
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
public static org.slf4j.Logger logger
protected static final java.lang.String PROP_CRITICAL
protected static final java.lang.String PROP_NUM_PERMITTEDSUBTREES
protected static final java.lang.String PROP_NUM_EXCLUDEDSUBTREES
protected static final java.lang.String PROP_PERMITTEDSUBTREES
protected static final java.lang.String PROP_EXCLUDEDSUBTREES
protected static final boolean DEF_CRITICAL
protected static final int DEF_NUM_PERMITTEDSUBTREES
protected static final int DEF_NUM_EXCLUDEDSUBTREES
protected boolean mEnabled
protected IConfigStore mConfig
protected boolean mCritical
protected int mNumPermittedSubtrees
protected int mNumExcludedSubtrees
protected org.dogtagpki.legacy.server.policy.extensions.Subtree[] mPermittedSubtrees
protected org.dogtagpki.legacy.server.policy.extensions.Subtree[] mExcludedSubtrees
protected org.mozilla.jss.netscape.security.x509.NameConstraintsExtension mNameConstraintsExtension
protected java.util.Vector<java.lang.String> mInstanceParams
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
The entries may be of the form:
ca.Policy.rule.
init
in interface IPolicyRule
init
in class APolicyRule
config
- The config store referenceEBaseException
public PolicyResult apply(IRequest req)
apply
in interface IPolicy
apply
in interface IPolicyRule
apply
in class APolicyRule
req
- The request on which to apply policy.public PolicyResult applyCert(IRequest req, org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo)
public java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams
in interface IPolicyRule
getInstanceParams
in class APolicyRule
public java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams
in interface IPolicyRule
getDefaultParams
in class APolicyRule
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo