RE: Querying for the Encryption MGF Algorithm

2015-06-22 Thread Stephen.CTR.Chappell
Thanx, Colm. This isn't an immediate need, so we should be able to wait for the 
next release.


Stephen W. Chappell



-Original Message-
From: Colm O hEigeartaigh [mailto:cohei...@apache.org] 
Sent: Monday, June 22, 2015 5:43 AM
To: users@cxf.apache.org
Subject: Re: Querying for the Encryption MGF Algorithm

No there isn't. I was going to write that what need to do is to retrieve the 
DOM Element via WSSecurityEngineResult.TAG_TOKEN_ELEMENT, and then parse it 
with code like EncryptedKeyProcessor.getMGFAlgorithm()...however,
it appears we don't store the DOM Element for EncryptedKeys. I have fixed this 
for the next release. If you really need the MGF algorithm right now, I guess 
you'll need to grab the security header + find the same EncryptedKey that 
corresponds to the WSSecurityEngineResult + get the MGF algorithm from that.

Colm.

On Fri, Jun 19, 2015 at 8:23 PM,  wrote:

> When processing a security header, you can determine the key transport 
> algorithm through 
> WSSecurityEngineResult.TAG_ENCRYPTED_KEY_TRANSPORT_METHOD. Is there a 
> similar tag that lets you query the new Encryption MGF Algorithm? I 
> couldn't' find anything in WSSecurityEngineResult. Thanx.
>
> Stephen W. Chappell
>



--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Querying for the Encryption MGF Algorithm

2015-06-22 Thread Colm O hEigeartaigh
I should also add that I moved the private static
EncryptedKeyProcessor.getMGFAlgorithm() method into EncryptionUtils, so you
can just use this instead with the next release.

Colm.

On Mon, Jun 22, 2015 at 10:43 AM, Colm O hEigeartaigh 
wrote:

>
> No there isn't. I was going to write that what need to do is to retrieve
> the DOM Element via WSSecurityEngineResult.TAG_TOKEN_ELEMENT, and then
> parse it with code like EncryptedKeyProcessor.getMGFAlgorithm()...however,
> it appears we don't store the DOM Element for EncryptedKeys. I have fixed
> this for the next release. If you really need the MGF algorithm right now,
> I guess you'll need to grab the security header + find the same
> EncryptedKey that corresponds to the WSSecurityEngineResult + get the MGF
> algorithm from that.
>
> Colm.
>
> On Fri, Jun 19, 2015 at 8:23 PM,  wrote:
>
>> When processing a security header, you can determine the key transport
>> algorithm through
>> WSSecurityEngineResult.TAG_ENCRYPTED_KEY_TRANSPORT_METHOD. Is there a
>> similar tag that lets you query the new Encryption MGF Algorithm? I
>> couldn't' find anything in WSSecurityEngineResult. Thanx.
>>
>> Stephen W. Chappell
>>
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Querying for the Encryption MGF Algorithm

2015-06-22 Thread Colm O hEigeartaigh
No there isn't. I was going to write that what need to do is to retrieve
the DOM Element via WSSecurityEngineResult.TAG_TOKEN_ELEMENT, and then
parse it with code like EncryptedKeyProcessor.getMGFAlgorithm()...however,
it appears we don't store the DOM Element for EncryptedKeys. I have fixed
this for the next release. If you really need the MGF algorithm right now,
I guess you'll need to grab the security header + find the same
EncryptedKey that corresponds to the WSSecurityEngineResult + get the MGF
algorithm from that.

Colm.

On Fri, Jun 19, 2015 at 8:23 PM,  wrote:

> When processing a security header, you can determine the key transport
> algorithm through
> WSSecurityEngineResult.TAG_ENCRYPTED_KEY_TRANSPORT_METHOD. Is there a
> similar tag that lets you query the new Encryption MGF Algorithm? I
> couldn't' find anything in WSSecurityEngineResult. Thanx.
>
> Stephen W. Chappell
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Querying for the Encryption MGF Algorithm

2015-06-19 Thread Stephen.CTR.Chappell
When processing a security header, you can determine the key transport 
algorithm through WSSecurityEngineResult.TAG_ENCRYPTED_KEY_TRANSPORT_METHOD. Is 
there a similar tag that lets you query the new Encryption MGF Algorithm? I 
couldn't' find anything in WSSecurityEngineResult. Thanx.

Stephen W. Chappell