Package org.apache.wss4j.dom.message
Class EncryptionPartsTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.EncryptionPartsTest
-
public class EncryptionPartsTest extends Object
This is some unit tests for encryption using encryption using parts. Note that the "soapMsg" below has a custom header added.
-
-
Constructor Summary
Constructors Constructor Description EncryptionPartsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBadLocalname()
Test encrypting a custom SOAP header with a bad localnamevoid
testBadNamespace()
Test encrypting a custom SOAP header with a bad namespacevoid
testEncryptionPartDOMElement()
Test getting a DOM Element from WSEncryptionPart directlyvoid
testMultipleElements()
Test encrypting two SOAP Body elements with the same QName.void
testOptionalSOAPHeaderNotPresent()
void
testOptionalSOAPHeaderPresent()
void
testRequiredSOAPHeaderNotPresent()
void
testSOAPEncryptedHeader()
Test encrypting a custom SOAP header using wsse11:EncryptedHeadervoid
testSOAPEncryptedHeaderWithAttributes()
Test encrypting a custom SOAP header using wsse11:EncryptedHeadervoid
testSOAPHeader()
Test encrypting a custom SOAP headervoid
testSOAPHeaderAndBody()
Test encrypting a custom SOAP header and the SOAP body
-
-
-
Method Detail
-
testSOAPHeader
@Test public void testSOAPHeader() throws Exception
Test encrypting 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
-
testSOAPEncryptedHeader
@Test public void testSOAPEncryptedHeader() throws Exception
Test encrypting a custom SOAP header using wsse11:EncryptedHeader- Throws:
Exception
-
testSOAPEncryptedHeaderWithAttributes
@Test public void testSOAPEncryptedHeaderWithAttributes() throws Exception
Test encrypting a custom SOAP header using wsse11:EncryptedHeader- Throws:
Exception
-
testBadLocalname
@Test public void testBadLocalname() throws Exception
Test encrypting a custom SOAP header with a bad localname- Throws:
Exception
-
testBadNamespace
@Test public void testBadNamespace() throws Exception
Test encrypting a custom SOAP header with a bad namespace- Throws:
Exception
-
testSOAPHeaderAndBody
@Test public void testSOAPHeaderAndBody() throws Exception
Test encrypting a custom SOAP header and the SOAP body- Throws:
Exception
-
testEncryptionPartDOMElement
@Test public void testEncryptionPartDOMElement() throws Exception
Test getting a DOM Element from WSEncryptionPart directly- Throws:
Exception
-
-