public class WSSecuritySAML20AssertionTokenSecurityHandlerTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Class and Description |
|---|---|
private static class |
WSSecuritySAML20AssertionTokenSecurityHandlerTest.MockAssertionValidator |
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.core.Assertion |
assertion |
private org.opensaml.saml.saml2.wssecurity.messaging.impl.WSSecuritySAML20AssertionTokenSecurityHandler |
handler |
private org.springframework.mock.web.MockHttpServletRequest |
httpServletRequest |
private String |
issuerEntityID |
private org.opensaml.messaging.context.MessageContext<org.opensaml.core.xml.XMLObject> |
messageContext |
private String |
remoteAddr |
private String |
rpEntityID |
private org.opensaml.saml.saml2.core.SubjectConfirmation |
subjectConfirmation |
| Constructor and Description |
|---|
WSSecuritySAML20AssertionTokenSecurityHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
private org.opensaml.saml.saml2.core.Assertion |
buildAssertion() |
private org.springframework.mock.web.MockHttpServletRequest |
buildHttpServletRequest() |
private org.opensaml.messaging.context.MessageContext<org.opensaml.core.xml.XMLObject> |
buildMessageContext() |
protected void |
setUp() |
void |
testBadValidationContextBuilder() |
void |
testDefaultsIndeterminate() |
void |
testDefaultsInvalid() |
void |
testDefaultsValid() |
void |
testException() |
void |
testIndeterminateNotFatal() |
void |
testInvalidNotFatal() |
void |
testNoAssertions() |
void |
testNoHeader() |
void |
testNonSOAP() |
void |
testNoValidatorAndFailedLookup() |
void |
testNoValidatorOrLookup() |
void |
testValidViaLookup() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate org.opensaml.saml.saml2.wssecurity.messaging.impl.WSSecuritySAML20AssertionTokenSecurityHandler handler
private org.opensaml.messaging.context.MessageContext<org.opensaml.core.xml.XMLObject> messageContext
private org.springframework.mock.web.MockHttpServletRequest httpServletRequest
private org.opensaml.saml.saml2.core.Assertion assertion
private org.opensaml.saml.saml2.core.SubjectConfirmation subjectConfirmation
private String issuerEntityID
private String rpEntityID
private String remoteAddr
public WSSecuritySAML20AssertionTokenSecurityHandlerTest()
protected void setUp()
throws CertificateException,
URISyntaxException,
KeyException,
org.opensaml.security.SecurityException,
org.opensaml.core.xml.io.MarshallingException,
SignatureException
CertificateExceptionURISyntaxExceptionKeyExceptionorg.opensaml.security.SecurityExceptionorg.opensaml.core.xml.io.MarshallingExceptionSignatureExceptionpublic void testDefaultsValid()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testDefaultsInvalid()
throws ComponentInitializationException
ComponentInitializationExceptionpublic void testDefaultsIndeterminate()
throws ComponentInitializationException
ComponentInitializationExceptionpublic void testValidViaLookup()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testInvalidNotFatal()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testIndeterminateNotFatal()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testException()
throws ComponentInitializationException
ComponentInitializationExceptionpublic void testNonSOAP()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoAssertions()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoHeader()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoValidatorOrLookup()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoValidatorAndFailedLookup()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionpublic void testBadValidationContextBuilder()
throws ComponentInitializationException,
org.opensaml.messaging.handler.MessageHandlerException
ComponentInitializationExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionprivate org.opensaml.messaging.context.MessageContext<org.opensaml.core.xml.XMLObject> buildMessageContext()
private org.springframework.mock.web.MockHttpServletRequest buildHttpServletRequest()
throws URISyntaxException,
CertificateException
private org.opensaml.saml.saml2.core.Assertion buildAssertion()
throws org.opensaml.security.SecurityException,
org.opensaml.core.xml.io.MarshallingException,
SignatureException
org.opensaml.security.SecurityExceptionorg.opensaml.core.xml.io.MarshallingExceptionSignatureExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.