public class DefaultPolicyFilter extends Object implements PolicyFilter
PolicyFilter interface.| Constructor and Description |
|---|
DefaultPolicyFilter()
Default constructor.
|
| 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.
|
void |
setCompiler(Compiler compiler)
Sets the compiler for the filters.
|
void |
setExecutionEngine(ExecutionEngine executionEngine)
Sets the execution engine for the filters.
|
public DefaultPolicyFilter()
public void setCompiler(Compiler compiler)
compiler - The compiler for the filters.public void setExecutionEngine(ExecutionEngine executionEngine)
executionEngine - The execution engine for the filters.public boolean isCompliant(X509Certificate cert, InputStream policyStream, PolicyLexicon lexicon) throws PolicyProcessException
isCompliant in interface PolicyFiltercert - 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.public 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.isCompliant in interface PolicyFiltercert - 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.