Class ModifiedRequestTest


  • public class ModifiedRequestTest
    extends Object
    This class tests the modification of requests.
    • Constructor Detail

    • Method Detail

      • testMovedElement

        @Test
        public void testMovedElement()
                              throws Exception
        Test that signs a SOAP body element "value". The SOAP request is then modified so that the signed "value" element is put in the header, and the value of the original element is changed. This test will fail as the request will contain multiple elements with the same wsu:Id.
        Throws:
        Exception
      • testMovedElementChangedId

        @Test
        public void testMovedElementChangedId()
                                       throws Exception
        Test that signs a SOAP body element "value". The SOAP request is then modified so that the signed "value" element is put in the header, and the value of the original element is changed. The wsu:Id value of the original element is also changed. Signature verification will pass, so we need to check the Elements.
        Throws:
        Exception
      • testDuplicatedSignedSAMLAssertion

        @Test
        public void testDuplicatedSignedSAMLAssertion()
                                               throws Exception
        Test a duplicated signed SAML Assertion.
        Throws:
        Exception
      • testDuplicatedSignedUsernameToken

        @Test
        public void testDuplicatedSignedUsernameToken()
                                               throws Exception
        Test a duplicated signed UsernameToken
        Throws:
        Exception
      • testModifiedEncryptedDataStructure

        @Test
        public void testModifiedEncryptedDataStructure()
                                                throws Exception
        Test for when an EncryptedData structure is modified
        Throws:
        Exception
      • testModifiedEncryptedDataCipherValue

        @Test
        public void testModifiedEncryptedDataCipherValue()
                                                  throws Exception
        Test for when some EncryptedData CipherValue data is modified.
        Throws:
        Exception
      • testModifiedSecurityHeaderEncryptedDataCipherValue

        @Test
        public void testModifiedSecurityHeaderEncryptedDataCipherValue()
                                                                throws Exception
        Test for when some EncryptedData CipherValue data is modified (in the security header)
        Throws:
        Exception
      • testModifiedEncryptedKeyCipherValue

        @Test
        public void testModifiedEncryptedKeyCipherValue()
                                                 throws Exception
        Test for when some EncryptedKey CipherValue data is modified.
        Throws:
        Exception
      • testModifiedSignatureReference

        @Test
        public void testModifiedSignatureReference()
                                            throws Exception
        Test for when an element that a Signature Reference points to is modified
        Throws:
        Exception
      • testUntrustedSignature

        @Test
        public void testUntrustedSignature()
                                    throws Exception
        Test for when a Signature is received with a certificate that is not trusted
        Throws:
        Exception
      • testModifiedSignature

        @Test
        public void testModifiedSignature()
                                   throws Exception
        Test for when the Signature element is modified
        Throws:
        Exception