Package org.apache.wss4j.dom.message
Class SignatureKeyValueTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.SignatureKeyValueTest
-
public class SignatureKeyValueTest extends Object
This class tests signing where the the public key is transmitted in the message via a ds:KeyInfo/ds:KeyValue element. Although this isn't strictly recommended for use in WS-Security, it's necessary to support it for WCF interop.
-
-
Constructor Summary
Constructors Constructor Description SignatureKeyValueTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBadRSAKeyValue()
Failed RSAKeyValue test, where a message is signed using a key-pair which doesn't correspond to the public key in the "trust"-store.void
testDSAKeyValue()
Successful DSAKeyValue test.void
testECKeyValue()
Successful ECKeyValue test.void
testRSAKeyValue()
Successful RSAKeyValue test.
-
-
-
Method Detail
-
testRSAKeyValue
@Test public void testRSAKeyValue() throws Exception
Successful RSAKeyValue test.- Throws:
Exception
-
testBadRSAKeyValue
@Test public void testBadRSAKeyValue() throws Exception
Failed RSAKeyValue test, where a message is signed using a key-pair which doesn't correspond to the public key in the "trust"-store.- Throws:
Exception
-
testDSAKeyValue
@Test public void testDSAKeyValue() throws Exception
Successful DSAKeyValue test.- Throws:
Exception
-
-