You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Xiao Li <li...@gmail.com> on 2020/09/03 15:39:05 UTC
Does the latest wss4j support RSA_SHA512 as signing algorithm? In the
wss4j javadoc for WSSecSignature class, there is
public void setSignatureAlgorithm(String
<http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true>
algo)
Set the name (uri) of the signature encryption algorithm to use. If the
algorithm is not set then an automatic detection of the signature algorithm
to use is performed during the prepare() method. Refer to WSConstants which
algorithms are supported.
Parameters:algo - the name of the signature algorithmSee Also:
WSS4JConstants.RSA
<https://ws.apache.org/wss4j/apidocs/org/apache/wss4j/common/WSS4JConstants.html#RSA>
, WSS4JConstants.DSA
<https://ws.apache.org/wss4j/apidocs/org/apache/wss4j/common/WSS4JConstants.html#DSA>But
WSConstants does not exist. In WSS$JConstants.RSA, I only saw RSA_SHA1 and
RSA_SHA256. But in another link
https://ws.apache.org/wss4j/apidocs/constant-values.html for SPContans, I
saw RSA_SHA512. Thanks!Xiao.
Re: Does the latest wss4j support RSA_SHA512 as signing algorithm? In
the wss4j javadoc for WSSecSignature class, there is
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi,
Yes RSA-SHA512 is supported. See this test-case I added:
https://github.com/apache/ws-wss4j/commit/1765c4149d700cac8aea5c1a3b78f2bdee8b6e71
Colm.
On Thu, Sep 3, 2020 at 4:39 PM Xiao Li <li...@gmail.com> wrote:
> public void setSignatureAlgorithm(String <http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true> algo)
>
> Set the name (uri) of the signature encryption algorithm to use. If the
> algorithm is not set then an automatic detection of the signature algorithm
> to use is performed during the prepare() method. Refer to WSConstants
> which algorithms are supported.
> Parameters:algo - the name of the signature algorithmSee Also:
> WSS4JConstants.RSA
> <https://ws.apache.org/wss4j/apidocs/org/apache/wss4j/common/WSS4JConstants.html#RSA>
> , WSS4JConstants.DSA
> <https://ws.apache.org/wss4j/apidocs/org/apache/wss4j/common/WSS4JConstants.html#DSA>But
> WSConstants does not exist. In WSS$JConstants.RSA, I only saw RSA_SHA1 and
> RSA_SHA256. But in another link
> https://ws.apache.org/wss4j/apidocs/constant-values.html for SPContans,
> I saw RSA_SHA512. Thanks!Xiao.
>
>
>