se.idsec.sigval.xml.policy.XMLSignaturePolicyValidator Maven / Gradle / Ivy
/*
* Copyright (c) 2020. IDsec Solutions AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package se.idsec.sigval.xml.policy;
import se.idsec.sigval.commons.data.PolicyValidationResult;
import se.idsec.sigval.svt.claims.PolicyValidationClaims;
import se.idsec.sigval.xml.data.ExtendedXmlSigvalResult;
/**
*
* @author Martin Lindström ([email protected])
* @author Stefan Santesson ([email protected])
*/
public interface XMLSignaturePolicyValidator {
/**
* Validates the signature result according to a defined policy. This examines the result of certificate path validation
* but does not perform the path validation.
*
* A typical task of the policy validator is to determine if a revoked certificate result is allowed if
* the signature was time stamped before the certificate was revoked
*
* @param verifyResultSignature The result of signature validation
* @return {@link PolicyValidationClaims} result
*/
PolicyValidationResult validatePolicy(ExtendedXmlSigvalResult verifyResultSignature);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy