Package eu.europa.esig.dss.spi.policy
Class DefaultSignaturePolicyValidatorLoader
java.lang.Object
eu.europa.esig.dss.spi.policy.DefaultSignaturePolicyValidatorLoader
- All Implemented Interfaces:
SignaturePolicyValidatorLoader
public class DefaultSignaturePolicyValidatorLoader
extends Object
implements SignaturePolicyValidatorLoader
Loads a relevant
SignaturePolicyValidator
based on the policy content-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null SignaturePolicyValidator -
Method Summary
Modifier and TypeMethodDescriptionloadValidator
(SignaturePolicy signaturePolicy) Loads with a ServiceLoader and returns the relevant validator for aSignaturePolicy
void
setDefaultSignaturePolicyValidator
(SignaturePolicyValidator defaultSignaturePolicyValidator) This method sets aSignaturePolicyValidator
to be used for default signature policy processing according to the signature format (whenSignaturePolicy.hashAsInTechnicalSpecification == false
)
-
Constructor Details
-
DefaultSignaturePolicyValidatorLoader
public DefaultSignaturePolicyValidatorLoader()Default constructor instantiating object with null SignaturePolicyValidator
-
-
Method Details
-
setDefaultSignaturePolicyValidator
public void setDefaultSignaturePolicyValidator(SignaturePolicyValidator defaultSignaturePolicyValidator) This method sets aSignaturePolicyValidator
to be used for default signature policy processing according to the signature format (whenSignaturePolicy.hashAsInTechnicalSpecification == false
)- Parameters:
defaultSignaturePolicyValidator
-SignaturePolicyValidator
-
loadValidator
Loads with a ServiceLoader and returns the relevant validator for aSignaturePolicy
- Specified by:
loadValidator
in interfaceSignaturePolicyValidatorLoader
- Parameters:
signaturePolicy
-SignaturePolicy
to get a relevant validator for- Returns:
SignaturePolicyValidator
-