public class InMemoryReplayChecker extends Object implements MessageReplayChecker
Constructor and Description |
---|
InMemoryReplayChecker() |
Modifier and Type | Method and Description |
---|---|
void |
checkReplay(SAMLObject object)
Checks if the supplied message contains an ID that already has been processed within the time the replay checker
keeps the processed items in its cache.
|
void |
checkReplay(String id)
Checks if the supplied message ID already has been processed within the time the replay checker keeps the processed
items in its cache.
|
void |
setReplayCacheExpiration(long replayCacheExpiration)
Assigns the number of milliseconds each stored ID should be kept in the cache.
|
public void checkReplay(String id) throws MessageReplayException
checkReplay
in interface MessageReplayChecker
id
- the message IDMessageReplayException
- if there is a replay attackpublic void checkReplay(SAMLObject object) throws MessageReplayException, IllegalArgumentException
checkReplay
in interface MessageReplayChecker
object
- the SAML message objectMessageReplayException
- if there is a replay attackIllegalArgumentException
- if the supplied object is not supported by the cheker@Duration public void setReplayCacheExpiration(long replayCacheExpiration)
replayCacheExpiration
- number of millisCopyright © 2018 Litsec AB. All rights reserved.