Hi Chen,

Not directly possible ATM, but what you can do is to provide
your own SecurityTokenFactoryImpl via configuration:

Have a look at the default security-config.xml, there you
can register your own SecurityTokenFactoryImpl. Then
call Init.init(URL config) whereby config points to
your new security-config.xml. That should work in theory...

Marc



On Tue, 23 Feb 2016 14:58:34 +0000
Chen Nam Sit <[email protected]> wrote:

> Hi,
> 
> In processing an XML encrypted file, I have to extract the <keyInfo>
> within the <EncryptedKey>. The purpose is to retrieve the
> corresponding PrivateKey in our keystore, then used to decrypt the
> file. Besides using XMLStreamReader to parse it manually, is there
> any facility in Santuario-Java (Stax) API to do it? Or put it in
> another way, how can I instantiate a KeyInfo object from the
> corresponding <KeyInfo> element by Santuario-Java API . Any code
> example in this domain in the Junit tests ?
> 
> Thanks.

Reply via email to