Skip to Content.
Sympa Menu

mace-opensaml-users - SAMLSubject using KeyInfo

Subject: OpenSAML user discussion

List archive

SAMLSubject using KeyInfo


Chronological Thread 
  • From: Paul Mazzuca <>
  • To:
  • Subject: SAMLSubject using KeyInfo
  • Date: Tue, 20 Apr 2004 12:15:44 -0400

Has anyone built a keyInfo element from scratch? I am trying to associate
the SAMLSubject with a public key, however in order to do that, I need to
build a keyInfo element from scratch. I have tried the following

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document d = db.newDocument();
KeyInfo keyInfo = new KeyInfo(d);
keyInfo.addKeyValue(cert.getPublicKey())

but no luck, because obviously I have not yet made the keyInfo to an element.

Does anyone have any experience in this area? All I want to do is have a
public key in my SAMLSubject.



Archive powered by MHonArc 2.6.16.

Top of Page