|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPolicyConstraint
This represents a constraint policy. A constraint policy validates if the given request conforms to the set rules.
Method Summary | |
---|---|
IConfigStore |
getConfigStore()
Returns the corresponding configuration store of this constraint policy. |
java.lang.String |
getName(java.util.Locale locale)
Returns localized name of this constraint. |
java.lang.String |
getText(java.util.Locale locale)
Returns localized description of this constraint. |
void |
init(IProfile profile,
IConfigStore config)
Initializes this constraint policy. |
boolean |
isApplicable(IPolicyDefault def)
Checks if this constraint is applicable to the given default policy. |
void |
validate(IRequest request)
Validates the request. |
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate |
---|
getConfig, getConfigDescriptor, getConfigNames, setConfig |
Method Detail |
---|
void init(IProfile profile, IConfigStore config) throws EProfileException
profile
- owner of this policyconfig
- configuration store for this constraint
EProfileException
- failed to initializeIConfigStore getConfigStore()
void validate(IRequest request) throws ERejectException
request
- request to be validated
ERejectException
- reject the given requestjava.lang.String getText(java.util.Locale locale)
locale
- locale of the end-user
java.lang.String getName(java.util.Locale locale)
locale
- locale of the end-user
boolean isApplicable(IPolicyDefault def)
def
- default policy to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |