Class SignedSamlTokenHOKTest


  • public class SignedSamlTokenHOKTest
    extends Object
    Test-case for sending and processing a signed (holder-of-key) SAML Assertion. These tests also cover the case of using the credential information in the SAML Subject to sign the SOAP body.
    • Constructor Detail

      • SignedSamlTokenHOKTest

        public SignedSamlTokenHOKTest()
                               throws Exception
        Throws:
        Exception
    • Method Detail

      • testSAML1AuthnAssertion

        @Test
        public void testSAML1AuthnAssertion()
                                     throws Exception
        Test that creates, sends and processes a signed SAML 1.1 authentication assertion.
        Throws:
        Exception
      • testSAML1AttrAssertion

        @Test
        public void testSAML1AttrAssertion()
                                    throws Exception
        Test that creates, sends and processes a signed SAML 1.1 attribute assertion.
        Throws:
        Exception
      • testSAML2AuthnAssertion

        @Test
        public void testSAML2AuthnAssertion()
                                     throws Exception
        Test that creates, sends and processes a signed SAML 2 authentication assertion.
        Throws:
        Exception
      • testSAML2AttrAssertion

        @Test
        public void testSAML2AttrAssertion()
                                    throws Exception
        Test that creates, sends and processes a signed SAML 2 attribute assertion.
        Throws:
        Exception
      • testSAML1AuthnAssertionIssuerSerial

        @Test
        public void testSAML1AuthnAssertionIssuerSerial()
                                                 throws Exception
        Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using IssuerSerial
        Throws:
        Exception
      • testSAML1AuthnAssertionKeyValue

        @Test
        public void testSAML1AuthnAssertionKeyValue()
                                             throws Exception
        Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using a Key Value
        Throws:
        Exception
      • testSAML2AuthnAssertionKeyValue

        @Test
        public void testSAML2AuthnAssertionKeyValue()
                                             throws Exception
        Test that creates, sends and processes a signed SAML 2 authentication assertion, where the subject cert is referenced using a Key Value
        Throws:
        Exception
      • testSAML1AuthnAssertionTrust

        @Test
        public void testSAML1AuthnAssertionTrust()
                                          throws Exception
        Test that creates, sends and processes a signed SAML 1.1 authentication assertion. The difference is that we don't trust the user signature, but as we trust the signature of the issuer, we have (indirect) trust.
        Throws:
        Exception
      • testSAML2Advice

        @Test
        @Disabled
        public void testSAML2Advice()
                             throws Exception
        Throws:
        Exception
      • testX509DataAndKeyValue

        @Test
        public void testX509DataAndKeyValue()
                                     throws Exception
        Throws:
        Exception
      • testSAML2SubjectWithComment

        @Test
        public void testSAML2SubjectWithComment()
                                         throws Exception
        Throws:
        Exception