public class MessageReplayCheckerImpl extends Object implements MessageReplayChecker, org.springframework.beans.factory.InitializingBean
ReplayCache
as an underlying cache.Constructor and Description |
---|
MessageReplayCheckerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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 |
setReplayCache(ReplayCache replayCache)
Assigns the replay cache to use when checking against replay attacks.
|
void |
setReplayCacheExpiration(long replayCacheExpiration)
Assigns the number of milliseconds each stored ID should be kept in the cache.
|
void |
setReplayCacheName(String replayCacheName)
Assigns the name of the replay 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 chekerpublic void setReplayCache(ReplayCache replayCache)
replayCache
- the cachepublic void setReplayCacheName(String replayCacheName)
replayCacheName
- the name@Duration public void setReplayCacheExpiration(long replayCacheExpiration)
replayCacheExpiration
- number of millisCopyright © 2018 Litsec AB. All rights reserved.