mace-opensaml-users - Signing problem
Subject: OpenSAML user discussion
List archive
- From: Massimiliano Masi <>
- To:
- Subject: Signing problem
- Date: Fri, 24 Aug 2007 13:06:15 +0200
Hi all,
I have a problem signing an assertion.
I have the following code (I imported my public/private keys, respectively
in PEM and DER format):
SignatureBuilder signatureBuilder = (SignatureBuilder)
builderFactory.getBuilder(Signature.DEFAULT_ELEMENT_NAME);
Signature assertionSignature =
signatureBuilder.buildObject();
assertionSignature.getContentReferences().add(new
SAMLObjectContentReference(assertion));
Now, the guide
(https://spaces.internet2.edu/display/SHIB/OSTwoUserManJavaDSIG)
says:
Add the key that will be used to sign with the
Signature#setSigningKey(Key) method
but the assertionSignature object does not have a setSigningKey().
How can I add my pvt key to the Signature?
Thank you,
Massimiliano
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- Signing problem, Massimiliano Masi, 08/24/2007
- Re: Signing problem, Brent Putman, 08/24/2007
- RE: Signing problem, Paul Hethmon, 08/24/2007
- Re: Signing problem, Massimiliano Masi, 08/27/2007
- Re: Signing problem, Brent Putman, 08/27/2007
- Re: Signing problem, Brent Putman, 08/24/2007
Archive powered by MHonArc 2.6.16.