You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by we...@apache.org on 2004/03/24 20:21:41 UTC
cvs commit: ws-fx/wss4j/test/wssec TestWSSecurity12.java
werner 2004/03/24 11:21:41
Modified: wss4j/test/wssec TestWSSecurity12.java
Log:
remove test case that are not longer used / supported.
Revision Changes Path
1.2 +3 -23 ws-fx/wss4j/test/wssec/TestWSSecurity12.java
Index: TestWSSecurity12.java
===================================================================
RCS file: /home/cvs/ws-fx/wss4j/test/wssec/TestWSSecurity12.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestWSSecurity12.java 7 Mar 2004 10:36:44 -0000 1.1
+++ TestWSSecurity12.java 24 Mar 2004 19:21:41 -0000 1.2
@@ -123,11 +123,11 @@
*
* @throws java.lang.Exception Thrown when there is any problem in signing or verification
*/
- public void testX509SignatureDSA_SKIDirect() throws Exception {
+ public void testX509SignatureDSA_SKI() throws Exception {
SOAPEnvelope envelope = null;
WSSignEnvelope builder = new WSSignEnvelope();
builder.setUserInfo("wss4jcertDSA", "security");
- builder.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER_DIRECT);
+ builder.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
builder.setSignatureAlgorithm(XMLSignature.ALGO_ID_SIGNATURE_DSA);
// builder.setUserInfo("john", "keypass");
@@ -144,7 +144,7 @@
Message signedMsg = (Message) AxisUtil.toSOAPMessage(signedDoc);
if (log.isDebugEnabled()) {
- log.debug("Signed message with SKI_DASDirect key identifier:");
+ log.debug("Signed message with DSA_SKI key identifier:");
XMLUtils.PrettyElementToWriter(signedMsg.getSOAPEnvelope().getAsDOM(), new PrintWriter(System.out));
}
@@ -228,26 +228,6 @@
log.info("After SigningRSA_Autodetect....");
verify(signedDoc);
}
-
- /**
- * Test that signs (twice) and verifies a WS-Security envelope
- * <p/>
- *
- * @throws java.lang.Exception Thrown when there is any problem in signing or verification
- *
- public void testDoubleX509SignatureSKIDirect() throws Exception {
- SOAPEnvelope envelope = null;
- WSSignEnvelope builder = new WSSignEnvelope();
- builder.setUserInfo("wss4jcert", "security");
- builder.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER_DIRECT);
-
- // builder.setUserInfo("john", "keypass");
- Document doc = unsignedEnvelope.getAsDocument();
- Document signedDoc = builder.build(doc, crypto);
- Document signedDoc1 = builder.build(signedDoc, crypto);
- verify(signedDoc1);
- }
- */
/**
* Verifies the soap envelope