Skip to Content.
Sympa Menu

mace-opensaml-users - Signing problem

Subject: OpenSAML user discussion

List archive

Signing problem


Chronological Thread 
  • 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.





Archive powered by MHonArc 2.6.16.

Top of Page