-
Bug
-
Resolution: Done
-
Major
-
jbossws-native-3.1.2, jbossws-native-3.2.0, jbossws-native-3.2.2
-
-
Release Notes
-
Low
I am filing this bug after discussing http://community.jboss.org/message/540669
Nonce is not decoded when encoding type is Base64.
UsernameToken has this piece of code:
String encodingType = elem.getAttribute("EncodingType");
if (encodingType != null && encodingType.length() > 0 && !Constants.BASE64_ENCODING_TYPE.equalsIgnoreCase(encodingType))
throw new WSSecurityException("Unsupported nonce encoding type: " + encodingType);
encodingType is not used anywhere else.
In UsernameTokenCallback.java there is the need to decode nonce, so, something like:
String nonce = (String)info.getInfo(NONCE);
if (nonce != null) {
try
catch (IOException e)
{ // ignore exceptions }}
need to be added to UsernameTokenCallback.java
- clones
-
JBPAPP-6186 JBossWS does not decode Nonce
- Closed
- is incorporated by
-
JBPAPP-6186 JBossWS does not decode Nonce
- Closed
-
JBPAPP-4447 JBossWS - Add support for digest + nonces
- Closed
- is related to
-
JBWS-2640 UsernameToken does not correctly handle "Created" element from wsse:Security soap header
- Closed