Class SAML2AuthnRequestsSignedSecurityHandlerTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.binding.security.impl.SAML2AuthnRequestsSignedSecurityHandlerTest
-
public class SAML2AuthnRequestsSignedSecurityHandlerTest extends XMLObjectBaseTestCase
Test SAML 2 AuthnRequetsSigned rule.
-
-
Field Summary
Fields Modifier and Type Field Description private SAML2AuthnRequestsSignedSecurityHandlerhandlerprivate Stringissuerprivate MessageContextmessageContextprivate SPSSODescriptorspssoDescriptor-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SAML2AuthnRequestsSignedSecurityHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestNotSignedAndNotRequired()Test message not signed, signing not required.voidtestNotSignedAndRequired()Test message not signed, signing required.voidtestSignedAndNotRequired()Test message XML signed, signing not required.voidtestSignedAndRequired()Test message XML signed, signing required.voidtestSimpleSignedAndRequired()Test message simple signed, signing not required.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
handler
private SAML2AuthnRequestsSignedSecurityHandler handler
-
messageContext
private MessageContext messageContext
-
issuer
private final String issuer
- See Also:
- Constant Field Values
-
spssoDescriptor
private SPSSODescriptor spssoDescriptor
-
-
Method Detail
-
testNotSignedAndNotRequired
public void testNotSignedAndNotRequired() throws MessageHandlerExceptionTest message not signed, signing not required.- Throws:
MessageHandlerException- ...
-
testNotSignedAndRequired
public void testNotSignedAndRequired() throws MessageHandlerExceptionTest message not signed, signing required.- Throws:
MessageHandlerException- ...
-
testSignedAndNotRequired
public void testSignedAndNotRequired() throws MessageHandlerExceptionTest message XML signed, signing not required.- Throws:
MessageHandlerException- ...
-
testSignedAndRequired
public void testSignedAndRequired() throws MessageHandlerExceptionTest message XML signed, signing required.- Throws:
MessageHandlerException- ...
-
testSimpleSignedAndRequired
public void testSimpleSignedAndRequired() throws MessageHandlerExceptionTest message simple signed, signing not required.- Throws:
MessageHandlerException- ...
-
-