public interface PolicyFilter
Filters are aggregate objects. Each functional component of the policy engine can be used independently to perform specific tasks, but filters combine the components together to achieve the primary values proposition of the engine: evaluating X509 certificate compliance to a policy.
Filter instances should be created using the PolicyFilterFactory class.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompliant(X509Certificate cert,
InputStream policyStream,
PolicyLexicon lexicon)
Checks if an X509 certificate is compliant with a given policy.
|
boolean |
isCompliant(X509Certificate cert,
PolicyExpression expression)
Checks if an X509 certificate is compliant with a given policy.
|
boolean isCompliant(X509Certificate cert, InputStream policyStream, PolicyLexicon lexicon) throws PolicyProcessException
cert - The certificate that will be checked for compliance.policyStream - The policy stream in an input stream.lexicon - The lexicon of the policy contained within the input stream.PolicyProcessException - Thrown if the policy engine process cannot be successfully executed.boolean isCompliant(X509Certificate cert, PolicyExpression expression) throws PolicyProcessException
PolicyExpression. This method version exists for performance reasons when it is not necessary to
parse the policy expression from a lexicon input stream; it allows the reuse of a parsed PolicyExpression.cert - The certificate that will be checked for compliance.expression - A previously parsed or programmatically generated PolicyExpression.PolicyProcessException - Thrown if the policy engine process cannot be successfully executed.Copyright © 2010–2020 The Direct Project. All rights reserved.