Package org.apache.wss4j.dom.message
Class SymmetricSignatureTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.SymmetricSignatureTest
-
- All Implemented Interfaces:
CallbackHandler
public class SymmetricSignatureTest extends Object implements CallbackHandler
Test symmetric key signature created using an encrypted key Demonstrates that Signature Crypto object can have null values when calling processSecurityHeader method of WSSecurityEngine.
-
-
Constructor Summary
Constructors Constructor Description SymmetricSignatureTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
void
setUp()
Setup methodvoid
testEncryptedKeySignature()
Test that first signs, then encrypts a WS-Security envelope.void
testSymmetricSignatureDR()
Test signing a message body using a symmetric key with Direct Reference to an EncryptedKeyvoid
testSymmetricSignatureSHA1()
Test signing a message body using a symmetric key with EncryptedKeySHA1void
testSymmetricSignatureSHA1Handler()
Test signing a message body using a symmetric key with EncryptedKeySHA1.
-
-
-
Method Detail
-
setUp
@BeforeEach public void setUp() throws Exception
Setup method- Throws:
Exception
- Thrown when there is a problem in setup
-
testSymmetricSignatureSHA1
@Test public void testSymmetricSignatureSHA1() throws Exception
Test signing a message body using a symmetric key with EncryptedKeySHA1- Throws:
Exception
-
testSymmetricSignatureDR
@Test public void testSymmetricSignatureDR() throws Exception
Test signing a message body using a symmetric key with Direct Reference to an EncryptedKey- Throws:
Exception
-
testEncryptedKeySignature
@Test public void testEncryptedKeySignature() throws Exception
Test that first signs, then encrypts a WS-Security envelope.- Throws:
Exception
- Thrown when there is any problem in signing, encryption, decryption, or verification
-
testSymmetricSignatureSHA1Handler
@Test public void testSymmetricSignatureSHA1Handler() throws Exception
Test signing a message body using a symmetric key with EncryptedKeySHA1. The request is generated using WSHandler, instead of coding it.- Throws:
Exception
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
-