-
Notifications
You must be signed in to change notification settings - Fork 66
ResolvingSignedResources
Luís Gonçalves edited this page Aug 9, 2015
·
1 revision
In some cases, such as when using anonymous data object references, the data contained in the signature is not sufficient to resolve the signed data objects. To configure those aspects the XadesVerifier.verify
method can be supplied with an instance of the SignatureSpecificVerificationOptions
.
SignatureSpecificVerificationOptions options = new SignatureSpecificVerificationOptions().useBaseUri("http://www.ietf.org/rfc/");
InputStream data = //...
SignatureSpecificVerificationOptions options = new SignatureSpecificVerificationOptions().useDataForAnonymousReference(data);
ResourceResolver resolver = //...
SignatureSpecificVerificationOptions options = new SignatureSpecificVerificationOptions().useResourceResolver(resolver);