Class ValidatorTest


  • public class ValidatorTest
    extends Object
    A test-case for Validators, check for non-standard behaviour by plugging in Validator implementations.
    • Constructor Detail

      • ValidatorTest

        public ValidatorTest()
    • 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