public class MessageReplaySecurityHandlerTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.common.binding.security.impl.MessageReplaySecurityHandler |
handler |
private org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> |
messageContext |
private String |
messageID |
private ReplayCache |
replayCache |
private MemoryStorageService |
storageService |
| Constructor and Description |
|---|
MessageReplaySecurityHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testNoReplay()
Test valid message ID.
|
void |
testNoReplayDistinctIDs()
Test valid message ID, distinct ID.
|
void |
testReplay()
Test invalid replay of message ID.
|
void |
testReplayValidWithExpiration()
Test valid replay of message ID due to replay cache expiration.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> messageContext
private org.opensaml.saml.common.binding.security.impl.MessageReplaySecurityHandler handler
private String messageID
private MemoryStorageService storageService
private ReplayCache replayCache
protected void tearDown()
public void testNoReplay()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoReplayDistinctIDs()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testReplay()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testReplayValidWithExpiration()
throws InterruptedException,
org.opensaml.messaging.handler.MessageHandlerException,
ComponentInitializationException
InterruptedExceptionorg.opensaml.messaging.handler.MessageHandlerExceptionComponentInitializationExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.