Package org.apache.wss4j.dom.message
Class STRSignatureTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.STRSignatureTest
-
public class STRSignatureTest extends Object
WS-Security Test Case for signature creation/validation using the SecurityTokenReference transform.
-
-
Constructor Summary
Constructors Constructor Description STRSignatureTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testWSS96()
This is a test for WSS-96: "Error when making a signature when containing a WSSecTimestamp" A timestamp is added to the document and signed.void
testX509SignatureDirectSTR()
Test that signs and verifies a WS-Security envelope.void
testX509SignatureISSTR()
Test that signs and verifies a WS-Security envelope.void
testX509SignatureSKISTR()
Test that signs and verifies a WS-Security envelope.
-
-
-
Method Detail
-
testX509SignatureDirectSTR
@Test public void testX509SignatureDirectSTR() throws Exception
Test that signs and verifies a WS-Security envelope. This test uses the direct reference key identifier (certificate included as a BinarySecurityToken (BST) in the message). The test signs the message body (SOAP Body) and uses the STRTransform to sign the embedded certificate- Throws:
Exception
- Thrown when there is any problem in signing or verification
-
testWSS96
@Test public void testWSS96() throws Exception
This is a test for WSS-96: "Error when making a signature when containing a WSSecTimestamp" A timestamp is added to the document and signed.- Throws:
Exception
-
testX509SignatureISSTR
@Test public void testX509SignatureISSTR() throws Exception
Test that signs and verifies a WS-Security envelope. This test uses the IssuerSerial reference key identifier (certificate not included in the message)and reads the certificate from a keystore using IssuerSerialNumber to identify it.- Throws:
Exception
- Thrown when there is any problem in signing or verification
-
testX509SignatureSKISTR
@Test public void testX509SignatureSKISTR() throws Exception
Test that signs and verifies a WS-Security envelope. This test uses the SubjectKeyIdentifier key identifier (certificate not included in the message) and reads the certificate from a keystore using SKI to identify it.- Throws:
Exception
- Thrown when there is any problem in signing or verification
-
-