Package org.apache.wss4j.dom.message
Class DerivedKeyTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.DerivedKeyTest
-
public class DerivedKeyTest extends Object
A set of tests for using a derived key for encryption/signature.
-
-
Constructor Summary
Constructors Constructor Description DerivedKeyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testEncryptionDecryptionAES128()
Test encryption using a DerivedKeyToken using AES128void
testEncryptionDecryptionAES256()
void
testEncryptionDecryptionTRIPLEDES()
Test encryption using a DerivedKeyToken using TRIPLEDESvoid
testEncryptSignature()
void
testSignature()
void
testSignatureEncrypt()
void
testSignatureSKI()
Here we're signing the SOAP body, where the signature refers to a DerivedKeyToken which uses an SKI reference to the encoded certificate (which is in the keystore)void
testSignatureThumbprintSHA1()
A test for WSS-211 - "WSS4J does not support ThumbprintSHA1 in DerivedKeyTokens".
-
-
-
Method Detail
-
testEncryptionDecryptionTRIPLEDES
@Test public void testEncryptionDecryptionTRIPLEDES() throws Exception
Test encryption using a DerivedKeyToken using TRIPLEDES- Throws:
Exception
- Thrown when there is any problem in signing or verification
-
testEncryptionDecryptionAES128
@Test public void testEncryptionDecryptionAES128() throws Exception
Test encryption using a DerivedKeyToken using AES128- Throws:
Exception
- Thrown when there is any problem in signing or verification
-
testEncryptionDecryptionAES256
@Test public void testEncryptionDecryptionAES256() throws Exception
- Throws:
Exception
-
testSignatureThumbprintSHA1
@Test public void testSignatureThumbprintSHA1() throws Exception
A test for WSS-211 - "WSS4J does not support ThumbprintSHA1 in DerivedKeyTokens". Here we're signing the SOAP body, where the signature refers to a DerivedKeyToken which uses a Thumbprint-SHA1 reference to the encoded certificate (which is in the keystore)- Throws:
Exception
-
testSignatureSKI
@Test public void testSignatureSKI() throws Exception
Here we're signing the SOAP body, where the signature refers to a DerivedKeyToken which uses an SKI reference to the encoded certificate (which is in the keystore)- Throws:
Exception
-
-