@@ -71,14 +71,15 @@ pub struct IdentityAssertion {
7171 pub ( crate ) label : Option < String > ,
7272}
7373
74+ #[ allow( unused) ] // TEMPORARY while considering API simplification
7475impl IdentityAssertion {
7576 /// Find the `IdentityAssertion`s that may be present in a given
7677 /// [`Manifest`].
7778 ///
7879 /// Iterator returns a [`Result`] because each assertion may fail to parse.
7980 ///
8081 /// Aside from CBOR parsing, no further validation is performed.
81- pub fn from_manifest < ' a > (
82+ pub ( crate ) fn from_manifest < ' a > (
8283 manifest : & ' a Manifest ,
8384 status_tracker : & ' a mut StatusTracker ,
8485 ) -> impl Iterator < Item = Result < Self , crate :: Error > > + use < ' a > {
@@ -93,6 +94,11 @@ impl IdentityAssertion {
9394 ia. label = Some ( to_assertion_uri ( manifest_label, a. label ( ) ) ) ;
9495 }
9596 }
97+ // TO DO: Add error readout if the proposed new setting resulted
98+ // in this assertion being parsed and converted to JSON. This function
99+ // has become incompatible with the now-default behavior to validate
100+ // identity assertions during parsing. This applies only if this API
101+ // becomes public again.
96102 ( a. label ( ) . to_owned ( ) , ia)
97103 } )
98104 . inspect ( |( label, r) | {
@@ -120,7 +126,7 @@ impl IdentityAssertion {
120126 /// of the identity assertion.
121127 ///
122128 /// [`validate`]: Self::validate
123- pub async fn to_summary < SV : SignatureVerifier > (
129+ pub ( crate ) async fn to_summary < SV : SignatureVerifier > (
124130 & self ,
125131 manifest : & Manifest ,
126132 status_tracker : & mut StatusTracker ,
@@ -161,7 +167,7 @@ impl IdentityAssertion {
161167 }
162168
163169 /// Summarize all of the identity assertions found for a [`Manifest`].
164- pub async fn summarize_all < SV : SignatureVerifier > (
170+ pub ( crate ) async fn summarize_all < SV : SignatureVerifier > (
165171 manifest : & Manifest ,
166172 status_tracker : & mut StatusTracker ,
167173 verifier : & SV ,
@@ -210,7 +216,7 @@ impl IdentityAssertion {
210216 }
211217
212218 /// Summarize all of the identity assertions found for a [`Reader`].
213- pub async fn summarize_from_reader < SV : SignatureVerifier > (
219+ pub ( crate ) async fn summarize_from_reader < SV : SignatureVerifier > (
214220 reader : & Reader ,
215221 status_tracker : & mut StatusTracker ,
216222 verifier : & SV ,
@@ -243,7 +249,7 @@ impl IdentityAssertion {
243249 /// be derived from the signature. This is the [`SignatureVerifier::Output`]
244250 /// type which typically describes the named actor, but may also contain
245251 /// information about the time of signing or the credential's source.
246- pub async fn validate < SV : SignatureVerifier > (
252+ pub ( crate ) async fn validate < SV : SignatureVerifier > (
247253 & self ,
248254 manifest : & Manifest ,
249255 status_tracker : & mut StatusTracker ,
@@ -285,7 +291,7 @@ impl IdentityAssertion {
285291 /// be derived from the signature. This is the [`SignatureVerifier::Output`]
286292 /// type which typically describes the named actor, but may also contain
287293 /// information about the time of signing or the credential's source.
288- pub async fn validate_partial_claim (
294+ pub ( crate ) async fn validate_partial_claim (
289295 & self ,
290296 partial_claim : & PartialClaim ,
291297 status_tracker : & mut StatusTracker ,
0 commit comments