Package eu.europa.esig.dss.validation
Class XmlPolicyBuilder
java.lang.Object
eu.europa.esig.dss.validation.XmlPolicyBuilder
The class is used to validate a
SignaturePolicy
and build a XmlPolicy
-
Constructor Summary
ConstructorDescriptionXmlPolicyBuilder
(SignaturePolicy signaturePolicy, SignaturePolicyValidationResult validationResult) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates aSignaturePolicy
and builds anXmlPolicy
Builds anXmlSignaturePolicyStore
setSignaturePolicyStore
(SignaturePolicyStore signaturePolicyStore) SetsSignaturePolicyStore
extracted from a signature when applicable
-
Constructor Details
-
XmlPolicyBuilder
public XmlPolicyBuilder(SignaturePolicy signaturePolicy, SignaturePolicyValidationResult validationResult) The default constructor- Parameters:
signaturePolicy
-SignaturePolicy
to buildXmlPolicy
fromvalidationResult
-SignaturePolicyValidationResult
the output of signature policy validation
-
-
Method Details
-
setSignaturePolicyStore
SetsSignaturePolicyStore
extracted from a signature when applicable- Parameters:
signaturePolicyStore
-SignaturePolicyStore
- Returns:
XmlPolicyBuilder
this
-
build
Validates aSignaturePolicy
and builds anXmlPolicy
- Returns:
XmlPolicy
-
buildSignaturePolicyStore
Builds anXmlSignaturePolicyStore
- Returns:
XmlSignaturePolicyStore
-