Creating a EncryptedKey for SubjectConfirmation

Stefan Rasmusson rasmusson.stefan at gmail.com
Sat Jun 22 17:04:45 EDT 2019


Thank you Brent! I just a few hours ago figured it out myself 😀 I hope I
didn't waste to much of your time.

On Sat, Jun 22, 2019, 22:19 Brent Putman <putmanb at georgetown.edu> wrote:

>
> On 6/20/19 8:00 PM, Stefan Rasmusson wrote:
>
> Im trying to encrypt a key to be used in a holder of key subject
> confirmation. This EncryptedKey will be contained in a key info element
> inside the subject confirmation data. All my research only turns up how to
> create a keyinfo with encrypted key when encrypting another element.
>
> Any ideas on how this could be done?
>
>
> org.opensaml.xmlsec.encryption.support.Encrypter contains a couple of
> public encryptKey(java.security.Key, ...) methods, which support encrypting
> any Java Key to an OpenSAML EncryptedKey.  Then you would just build a
> KeyInfo as usual with its builder and add the EncryptedKey via the
> KeyInfo#getEncrypedKeys().
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190622/4ed43335/attachment.html>


More information about the dev mailing list