Skip to Content.
Sympa Menu

mace-opensaml-users - Signature problems

Subject: OpenSAML user discussion

List archive

Signature problems


Chronological Thread 
  • From: "" <>
  • To:
  • Subject: Signature problems
  • Date: Thu, 6 Nov 2008 16:49:51 +0100 (CET)
  • Xoriginalsenderip: 193.204.19.251

Hi, we have to read and modify an SAMLResponse.

//read SAMLResponse
from a string
Response response = (Response) responseUnmarsh.unmarshall
(XMLUtils.parse("<samlp:Response>...</samlp:Response>").
getDocumentElement());

//modify SAMLResponse
response.setInResponseTo
("...");

//Recreate SAMLResponse
new ResponseMarshaller().marshall
(response);

//Now, we have to computing the Signature Value
Signature
signature = response.getSignature();
Signer.signObject(signature);


But, Signer.signObject throws this exception

Original Exception was
java.security.SignatureException: object not initialized for signature
or verification
Where is the error?


_______________________________________________________________



Telefona e naviga senza limiti con Tiscali Voce 8 Mega a soli € 15 al mese
per i primi 12 mesi. In seguito paghi € 29,90 al mese. Attiva entro il
6/11/08! http://abbonati.tiscali.it/promo/voce8mega/



Archive powered by MHonArc 2.6.16.

Top of Page