Package org.apache.wss4j.dom.message
Class ReplayTest
- java.lang.Object
-
- org.apache.wss4j.dom.message.ReplayTest
-
public class ReplayTest extends Object
Some test-cases for replay attacks.
-
-
Constructor Summary
Constructors Constructor Description ReplayTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testEhCacheReplayedSAML2()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion.void
testEhCacheReplayedSAML2OneTimeUse()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a OneTimeUse Elementvoid
testEhCacheReplayedTimestamp()
void
testEhCacheReplayedTimestampBelowSignature()
void
testEhCacheReplayedTimestampNoExpires()
void
testEhCacheReplayedUsernameToken()
void
testReplayedTimestamp()
void
testReplayedTimestampBelowSignature()
void
testReplayedTimestampNoExpires()
void
testReplayedUsernameToken()
-
-
-
Method Detail
-
testEhCacheReplayedTimestamp
@Test public void testEhCacheReplayedTimestamp() throws Exception
- Throws:
Exception
-
testReplayedTimestampBelowSignature
@Test public void testReplayedTimestampBelowSignature() throws Exception
- Throws:
Exception
-
testEhCacheReplayedTimestampBelowSignature
@Test public void testEhCacheReplayedTimestampBelowSignature() throws Exception
- Throws:
Exception
-
testReplayedTimestampNoExpires
@Test public void testReplayedTimestampNoExpires() throws Exception
- Throws:
Exception
-
testEhCacheReplayedTimestampNoExpires
@Test public void testEhCacheReplayedTimestampNoExpires() throws Exception
- Throws:
Exception
-
testReplayedUsernameToken
@Test public void testReplayedUsernameToken() throws Exception
- Throws:
Exception
-
testEhCacheReplayedUsernameToken
@Test public void testEhCacheReplayedUsernameToken() throws Exception
- Throws:
Exception
-
testEhCacheReplayedSAML2
@Test public void testEhCacheReplayedSAML2() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion. This is just a sanity test to make sure that it is possible to send the SAML token twice, as no "OneTimeUse" Element is defined there is no problem with replaying it. with a OneTimeUse Element- Throws:
Exception
-
-