Package org.apache.wss4j.dom.message
Class SignaturePartsTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.SignaturePartsTest
-
public class SignaturePartsTest extends Object
This is some unit tests for signing using signature parts. Note that the "soapMsg" below has a custom header added.
-
-
Constructor Summary
Constructors Constructor Description SignaturePartsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBadLocalname()
Test signing a custom SOAP header with a bad localnamevoid
testBadNamespace()
Test signing a custom SOAP header with a bad namespacevoid
testMultipleElements()
Test signing two SOAP Body elements with the same QName.void
testOptionalSOAPHeaderNotPresent()
void
testOptionalSOAPHeaderPresent()
void
testRequiredSOAPHeaderNotPresent()
void
testSignaturePartDOMElement()
Test getting a DOM Element from WSEncryptionPart directlyvoid
testSignedKeyInfo()
void
testSignedKeyInfoAction()
void
testSOAPHeader()
Test signing a custom SOAP headervoid
testSOAPHeaderAndBody()
Test signing a custom SOAP header and the SOAP bodyvoid
testSOAPHeaderSTRTransform()
Test signing of a header through a STR Dereference Transform
-
-
-
Method Detail
-
testSOAPHeader
@Test public void testSOAPHeader() throws Exception
Test signing a custom SOAP header- Throws:
Exception
-
testOptionalSOAPHeaderPresent
@Test public void testOptionalSOAPHeaderPresent() throws Exception
- Throws:
Exception
-
testOptionalSOAPHeaderNotPresent
@Test public void testOptionalSOAPHeaderNotPresent() throws Exception
- Throws:
Exception
-
testRequiredSOAPHeaderNotPresent
@Test public void testRequiredSOAPHeaderNotPresent() throws Exception
- Throws:
Exception
-
testSOAPHeaderSTRTransform
@Test public void testSOAPHeaderSTRTransform() throws Exception
Test signing of a header through a STR Dereference Transform- Throws:
Exception
-
testBadLocalname
@Test public void testBadLocalname() throws Exception
Test signing a custom SOAP header with a bad localname- Throws:
Exception
-
testBadNamespace
@Test public void testBadNamespace() throws Exception
Test signing a custom SOAP header with a bad namespace- Throws:
Exception
-
testSOAPHeaderAndBody
@Test public void testSOAPHeaderAndBody() throws Exception
Test signing a custom SOAP header and the SOAP body- Throws:
Exception
-
testSignaturePartDOMElement
@Test public void testSignaturePartDOMElement() throws Exception
Test getting a DOM Element from WSEncryptionPart directly- Throws:
Exception
-
testMultipleElements
@Test public void testMultipleElements() throws Exception
Test signing two SOAP Body elements with the same QName.- Throws:
Exception
-
-