Package org.apache.wss4j.dom.validate
Class ValidatorTest
- java.lang.Object
-
- org.apache.wss4j.dom.validate.ValidatorTest
-
public class ValidatorTest extends Object
A test-case for Validators, check for non-standard behaviour by plugging in Validator implementations.
-
-
Constructor Summary
Constructors Constructor Description ValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testExpiredTimestamp()
This is a test for processing an expired Timestamp.void
testTransformedBST()
In this test, a BinarySecurityToken is added to the SOAP header.void
testUntrustedSignature()
Test for processing an untrusted signaturevoid
testUsernameTokenBadText()
Test that adds a UserNameToken with (bad) password text to a WS-Security envelopevoid
testValidatedBSTSignature()
In this test, a SOAP request is constructed where the SOAP body is signed via a BinarySecurityToken.
-
-
-
Method Detail
-
testExpiredTimestamp
@Test public void testExpiredTimestamp() throws Exception
This is a test for processing an expired Timestamp.- Throws:
Exception
-
testUntrustedSignature
@Test public void testUntrustedSignature() throws Exception
Test for processing an untrusted signature- Throws:
Exception
-
testUsernameTokenBadText
@Test public void testUsernameTokenBadText() throws Exception
Test that adds a UserNameToken with (bad) password text to a WS-Security envelope- Throws:
Exception
-
testTransformedBST
@Test public void testTransformedBST() throws Exception
In this test, a BinarySecurityToken is added to the SOAP header. A custom processor validates the BST and transforms it into a SAML Assertion.- Throws:
Exception
-
testValidatedBSTSignature
@Test public void testValidatedBSTSignature() throws Exception
In this test, a SOAP request is constructed where the SOAP body is signed via a BinarySecurityToken. The receiving side does not trust the BST, and so the test fails. The second time, a custom Validator (NoOpValidator for this case) is installed for the BST, and so trust verification passes on the Signature.- Throws:
Exception
-
-