Skip to content

Commit

Permalink
Merge branch 'main' into dev/send-in-token
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanskodje committed Apr 16, 2024
2 parents 31a61b6 + c6e0ab4 commit dacf51d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ private fun SignedInfo.validateReferences() {
}
if (!this.contains(Transforms.TRANSFORM_ENVELOPED_SIGNATURE)) throw SignatureException("Transform: ${Transforms.TRANSFORM_ENVELOPED_SIGNATURE} mangler! $this")
if (!this.contains(Transforms.TRANSFORM_XPATH)) log.warn("Transform: ${Transforms.TRANSFORM_XPATH} mangler! $this") // throw SignatureException(("Transform 2 har feil uri! ${reference.transforms.item(1).uri}"))
if (!this.contains(Transforms.TRANSFORM_C14N_OMIT_COMMENTS)) throw SignatureException(("Transform: ${Transforms.TRANSFORM_C14N_OMIT_COMMENTS} mangler! $this"))
if (!this.contains(Transforms.TRANSFORM_C14N_OMIT_COMMENTS) &&
!this.contains(Transforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS)
) {
throw SignatureException(("Transform: ${Transforms.TRANSFORM_C14N_OMIT_COMMENTS} og ${Transforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS} mangler! $this"))
}
}
} else if (!uri.startsWith(CID_PREFIX)) throw SignatureException("Ugyldig URI $uri! Kun reference uri som starter med $CID_PREFIX er tillatt")
}
Expand Down

0 comments on commit dacf51d

Please sign in to comment.