Class 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 Detail

      • SignatureKeyValueTest

        public SignatureKeyValueTest()
                              throws Exception
        Throws:
        Exception
    • 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
      • testECKeyValue

        @Test
        public void testECKeyValue()
                            throws Exception
        Successful ECKeyValue test.
        Throws:
        Exception