Hi all,
Those are beginner questions, but I'd like to me sure
I get things straight...
I'm simply trying to sign an XML document I've loaded.
- is there an easy way to provide a URI for a given
document ? I build a File object from the file's name,
and then call .toURL().toString(). Isn't there
a
Hi all,
I'm trying to build an enveloping signature:
- the input is a Document. I want to sign this.
- the output is a FileOutputStream. I want to write
the enveloping signature in this file.
But it doesn't work: I get a
"org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR :
Ce noeud n''appartien
Thanks very much for your reply. It actually answers
my next post too :-)
So, the way to do it is to use importNode() ?
However, I'm not really sure to understand the way it
works:
> Document signedDoc =
> documentBuilder.newDocument();
Okay, we create the Document object for the signed
Raul, Heiner,
Bonjour :-)
Thanks very much for your help: I now have a beautiful
enveloping signature :-)
Thanks too for the link to the CreateEnveloping
sample. I was using the AxisSigner but hadn't seen
that other example !
BTW, as for the intent, it's just to try out this API.
I'm (quite) famil
Hi again...
And now I'm trying to validate my signatures. I've
built three signatures: a enveloped one, a detached
one and an enveloping one. All on the same document.
They all have the same SignatureValue, that's a good
starting point :-)
The detached and the enveloping signature verify okay,
but
--- Raul Benito <[EMAIL PROTECTED]> a
écrit :
> Does you add enveloped-signature-transformation?
> It is need to enveloped signatures. If not it will
> fail.
Not sure to understand...
My signed XML does have a transformation (c14n) -- see
below.
Do you mean I should apply a transformation to the
--- Jesse Pelton <[EMAIL PROTECTED]> a écrit :
> You need to include the enveloped signature
> transformation specifically. This serves to remove
> the signature element from the document before
> signing and verification. This is required because
> the signature element changes during signing;
Signer] at
org.apache.xml.security.signature.Reference.generateDigestValue(Unknown
Source)
[MyXMLSigner] at
org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown
Source)
[MyXMLSigner] at
org.apache.xml.security.signature.XMLSignature.sign(Unknown
Source)
[MyXMLSigner] at
mysamples.MyX
Hi all,
Sorry to bother you, but I still can't get it to
work...
My enveloping signature & my detached signature work,
but not the enveloped one. I've been checking the
CreateSignature example - seems pretty close to my
own... Or is it the verification that's wrong in my
case ?
Thanks for any hint.
Hi Raul (and all ;-)),
> Change this:
>
transforms.addTransform(Transforms.TRANSFORM_C14N_OMIT_COMMENTS);
>
> for the exclusive c14n and it should work.
Unfortunately, my verification still fails !
I tried it with TRANSFORM_C14N_EXCL_OMIT_COMMENTS
and with TRANSFORM_C14N_EXCL_WITH_COMMENTS
and w
Hi all,
I posted a while ago a problem on verifying an
enveloped signature, but unfortunately haven't had any
answer to it.
Could somebody help me out here ? I get enveloping and
detached signautres correctly verified, but no way for
enveloped ones...
I basically pasted parts of my code below
R
--- Inma Marín López <[EMAIL PROTECTED]> wrote:
> Hello!!
>
> Have you tried to append the signature
> element before signing
Gosh ! This is it !
Many thanks
Axelle.
__
Découvre
12 matches
Mail list logo