Package org.apache.wss4j.stax.test.saml
Class SAMLTokenTest
- java.lang.Object
-
- org.apache.wss4j.stax.test.AbstractTestBase
-
- org.apache.wss4j.stax.test.saml.SAMLTokenTest
-
public class SAMLTokenTest extends AbstractTestBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wss4j.stax.test.AbstractTestBase
AbstractTestBase.TestSecurityEventListener
-
-
Field Summary
-
Fields inherited from class org.apache.wss4j.stax.test.AbstractTestBase
documentBuilderFactory, SECURED_DOCUMENT, TRANSFORMER_FACTORY, xmlInputFactory
-
-
Constructor Summary
Constructors Constructor Description SAMLTokenTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testRequiredSubjectConfirmationMethod()
void
testSAML1AttrAssertionInbound()
void
testSAML1AttrAssertionOutbound()
void
testSAML1AuthnAssertionInbound()
void
testSAML1AuthnAssertionOutbound()
void
testSAML1AuthnAssertionPropertiesInbound()
void
testSAML1AuthnAssertionPropertiesOutbound()
void
testSAML1AuthzAssertionInbound()
void
testSAML1AuthzAssertionOutbound()
void
testSAML1ResourceOutbound()
Test that creates, sends and processes an unsigned SAML 1.1 authz assertion with a Resource URIvoid
testSAML1SubjectLocalityOutbound()
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a user-specified SubjectLocality statement.void
testSAML1SubjectNameIDFormatOutbound()
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a user-specified SubjectNameIDFormat.void
testSAML2AttrAssertionCustomAttributeOutbound()
Test that creates, sends and processes an unsigned SAML 2 attribute assertion.void
testSAML2AttrAssertionInbound()
void
testSAML2AttrAssertionOutbound()
void
testSAML2AuthnAssertionInbound()
void
testSAML2AuthnAssertionOutbound()
void
testSAML2AuthzAssertionInbound()
void
testSAML2AuthzAssertionOutbound()
void
testSAML2EncryptedAssertion()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion, which is encrypted in a saml2:EncryptedAssertion Element in the security headervoid
testSAML2IssuerFormatOutbound()
void
testSAML2SubjectLocalityOutbound()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a user-specified SubjectLocality statement.void
testSAML2SubjectNameIDFormatOutbound()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a user-specified SubjectNameIDFormat.void
testStandardSubjectConfirmationMethod()
void
testUnsignedBearer()
-
Methods inherited from class org.apache.wss4j.stax.test.AbstractTestBase
doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurityWithWSS4J, doInboundSecurityWithWSS4J_1, doInboundSecurityWithWSS4J_1, doOutboundSecurity, doOutboundSecurity, doOutboundSecurityWithWSS4J, doOutboundSecurityWithWSS4J_1, getJavaSpecificationVersion, getMessageContext, getXPath
-
-
-
-
Method Detail
-
testSAML1AuthnAssertionOutbound
@Test public void testSAML1AuthnAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML1AuthnAssertionInbound
@Test public void testSAML1AuthnAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML1AttrAssertionOutbound
@Test public void testSAML1AttrAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML1AttrAssertionInbound
@Test public void testSAML1AttrAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML1AuthzAssertionOutbound
@Test public void testSAML1AuthzAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML1AuthzAssertionInbound
@Test public void testSAML1AuthzAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML2AuthnAssertionOutbound
@Test public void testSAML2AuthnAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML2AuthnAssertionInbound
@Test public void testSAML2AuthnAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML2AttrAssertionOutbound
@Test public void testSAML2AttrAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML2AttrAssertionInbound
@Test public void testSAML2AttrAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML2AuthzAssertionOutbound
@Test public void testSAML2AuthzAssertionOutbound() throws Exception
- Throws:
Exception
-
testSAML2AuthzAssertionInbound
@Test public void testSAML2AuthzAssertionInbound() throws Exception
- Throws:
Exception
-
testSAML1SubjectNameIDFormatOutbound
@Test public void testSAML1SubjectNameIDFormatOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a user-specified SubjectNameIDFormat.- Throws:
Exception
-
testSAML2SubjectNameIDFormatOutbound
@Test public void testSAML2SubjectNameIDFormatOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a user-specified SubjectNameIDFormat.- Throws:
Exception
-
testSAML1SubjectLocalityOutbound
@Test public void testSAML1SubjectLocalityOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a user-specified SubjectLocality statement.- Throws:
Exception
-
testSAML2SubjectLocalityOutbound
@Test public void testSAML2SubjectLocalityOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a user-specified SubjectLocality statement.- Throws:
Exception
-
testSAML1ResourceOutbound
@Test public void testSAML1ResourceOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authz assertion with a Resource URI- Throws:
Exception
-
testSAML2AttrAssertionCustomAttributeOutbound
@Test public void testSAML2AttrAssertionCustomAttributeOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 2 attribute assertion. The attributeValue has a custom XMLObject (not a String) value.- Throws:
Exception
-
testSAML1AuthnAssertionPropertiesOutbound
@Test public void testSAML1AuthnAssertionPropertiesOutbound() throws Exception
- Throws:
Exception
-
testSAML1AuthnAssertionPropertiesInbound
@Test public void testSAML1AuthnAssertionPropertiesInbound() throws Exception
- Throws:
Exception
-
testSAML2EncryptedAssertion
@Test public void testSAML2EncryptedAssertion() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion, which is encrypted in a saml2:EncryptedAssertion Element in the security header- Throws:
Exception
-
testRequiredSubjectConfirmationMethod
@Test public void testRequiredSubjectConfirmationMethod() throws Exception
- Throws:
Exception
-
testStandardSubjectConfirmationMethod
@Test public void testStandardSubjectConfirmationMethod() throws Exception
- Throws:
Exception
-
-