Package org.apache.wss4j.dom.message
Class ModifiedRequestTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.ModifiedRequestTest
-
public class ModifiedRequestTest extends Object
This class tests the modification of requests.
-
-
Constructor Summary
Constructors Constructor Description ModifiedRequestTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testDuplicatedSignedSAMLAssertion()
Test a duplicated signed SAML Assertion.void
testDuplicatedSignedUsernameToken()
Test a duplicated signed UsernameTokenvoid
testModifiedEncryptedDataCipherValue()
Test for when some EncryptedData CipherValue data is modified.void
testModifiedEncryptedDataStructure()
Test for when an EncryptedData structure is modifiedvoid
testModifiedEncryptedKeyCipherValue()
Test for when some EncryptedKey CipherValue data is modified.void
testModifiedSecurityHeaderEncryptedDataCipherValue()
Test for when some EncryptedData CipherValue data is modified (in the security header)void
testModifiedSignature()
Test for when the Signature element is modifiedvoid
testModifiedSignatureReference()
Test for when an element that a Signature Reference points to is modifiedvoid
testMovedElement()
Test that signs a SOAP body element "value".void
testMovedElementChangedId()
Test that signs a SOAP body element "value".void
testUntrustedSignature()
Test for when a Signature is received with a certificate that is not trusted
-
-
-
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
-
-