Package org.apache.wss4j.dom.saml
Class SignedSamlTokenHOKTest
- java.lang.Object
-
- org.apache.wss4j.dom.saml.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 Summary
Constructors Constructor Description SignedSamlTokenHOKTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testSAML1AttrAssertion()
Test that creates, sends and processes a signed SAML 1.1 attribute assertion.void
testSAML1AuthnAssertion()
Test that creates, sends and processes a signed SAML 1.1 authentication assertion.void
testSAML1AuthnAssertionIssuerSerial()
Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using IssuerSerialvoid
testSAML1AuthnAssertionKeyValue()
Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using a Key Valuevoid
testSAML1AuthnAssertionTrust()
Test that creates, sends and processes a signed SAML 1.1 authentication assertion.void
testSAML2Advice()
void
testSAML2AttrAssertion()
Test that creates, sends and processes a signed SAML 2 attribute assertion.void
testSAML2AuthnAssertion()
Test that creates, sends and processes a signed SAML 2 authentication assertion.void
testSAML2AuthnAssertionKeyValue()
Test that creates, sends and processes a signed SAML 2 authentication assertion, where the subject cert is referenced using a Key Valuevoid
testSAML2SubjectWithComment()
void
testX509DataAndKeyValue()
-
-
-
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
-
testX509DataAndKeyValue
@Test public void testX509DataAndKeyValue() throws Exception
- Throws:
Exception
-
-