Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] creating a keyinfo element with opensaml

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] creating a keyinfo element with opensaml


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] creating a keyinfo element with opensaml
  • Date: Wed, 14 Apr 2010 13:00:48 -0400



On 4/14/10 11:41 AM, Jason Countryman wrote:
I think I'll need to use the KeyIdentifier.setValue method, but I'm not sure
what to pass to that...any guidance on this would be appreciated.



Based on the EncodingType and ValueType you have there, you need to supply the Base64-encoded form of the signing cert's Subject Key Identifier (SKI) extension. There is a helper method in X509Util to obtain the SKI from a Java X509Certificate instance, which returns a byte[]. Then just Basee64-encode that using the Base64 utility class. I believe that should get you what you want.




Archive powered by MHonArc 2.6.16.

Top of Page