cawg_identity/identity_assertion/
validation_error.rs

1// Copyright 2024 Adobe. All rights reserved.
2// This file is licensed to you under the Apache License,
3// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4// or the MIT license (http://opensource.org/licenses/MIT),
5// at your option.
6
7// Unless required by applicable law or agreed to in writing,
8// this software is distributed on an "AS IS" BASIS, WITHOUT
9// WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
10// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
11// specific language governing permissions and limitations under
12// each license.
13
14/// Describes the ways in which a CAWG identity assertion can fail validation as
15/// described in [§7. Validating the identity assertion].
16///
17/// This error type includes a parameter `SignatureError`, which allows
18/// signature-type specific errors to be passed back. See
19/// [`SignatureVerifier::Error`].
20///
21/// [§7. Validating the identity assertion]: https://creator-assertions.github.io/identity/1.0-draft/#_validating_the_identity_assertion
22/// [`SignatureVerifier::Error`]: crate::SignatureVerifier::Error
23#[deprecated(since = "0.14.0", note = "Moved to c2pa::identity::ValidationError")]
24pub use c2pa::identity::ValidationError;