Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.7
-
None
-
None
Description
This task is to add the ability to define which algorithms are acceptable when processing a security header. In WS-SecurityPolicy, you can define an "AlgorithmSuite" (e.g. sp:Basic128) which describes which algorithms must be used. Currently there is no way to enforce this in WSS4J.
An AlgorithmSuite class will be added to WSS4J, which a third party library can populate. This will hold acceptable values for things like signature method, digest, c14n algorithms etc., as well as key sizes, and encryption symmetric and key wrapping algorithms etc. If WSS4J encounters an Element that does not match one of these values then an exception is thrown.