org.apache.ws.security.message
Class SKISignatureTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.message.SKISignatureTest

public class SKISignatureTest
extends org.junit.Assert

WS-Security Test Case for SubjectKeyIdentifier.

Author:
Davanum Srinivas (dims@yahoo.com), Werner Dittmann (Werner.Dittmann@siemens.com)

Constructor Summary
SKISignatureTest()
           
 
Method Summary
 void testX509SignatureDSA_Autodetect()
          Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier.
 void testX509SignatureDSA_SKI()
          Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier.
 void testX509SignatureRSA_Autodetect()
          Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier.
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SKISignatureTest

public SKISignatureTest()
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

testX509SignatureDSA_SKI

public void testX509SignatureDSA_SKI()
                              throws java.lang.Exception
Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It uses the Direct version, that is it embeds the certificate in the message.

Throws:
java.lang.Exception - Thrown when there is any problem in signing or verification

testX509SignatureDSA_Autodetect

public void testX509SignatureDSA_Autodetect()
                                     throws java.lang.Exception
Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It gets a certificate with a DSA public key algo to sign, WSSignEnvelope shall detect the algo and set the signature algo accordingly.

Throws:
java.lang.Exception - Thrown when there is any problem in signing or verification

testX509SignatureRSA_Autodetect

public void testX509SignatureRSA_Autodetect()
                                     throws java.lang.Exception
Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It gets a certificate with a RSA public key algo to sign, WSSignEnvelope shall detect the algo and set the signature algo accordingly.

Throws:
java.lang.Exception - Thrown when there is any problem in signing or verification


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.