|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.provider.nonce.ExpiringTimestampNonceServices
public class ExpiringTimestampNonceServices
Nonce services that only validates the timestamp of a consumer request. The nonce
is not checked for replay attacks.
The timestamp is interpreted as the number of seconds from January 1, 1970 00:00:00 GMT. If the timestamp
is older than the configured validity window, the nonce is not valid. The default validity window is
12 hours.
| Constructor Summary | |
|---|---|
ExpiringTimestampNonceServices()
|
|
| Method Summary | |
|---|---|
long |
getValidityWindowSeconds()
Set the timestamp validity window (in seconds). |
void |
setValidityWindowSeconds(long validityWindowSeconds)
The timestamp validity window (in seconds). |
void |
validateNonce(ConsumerDetails consumerDetails,
long timestamp,
String nonce)
Validate a nonce for a specific consumer timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpiringTimestampNonceServices()
| Method Detail |
|---|
public void validateNonce(ConsumerDetails consumerDetails,
long timestamp,
String nonce)
throws org.springframework.security.core.AuthenticationException
OAuthNonceServices
validateNonce in interface OAuthNonceServicesconsumerDetails - The consumer details.timestamp - The timestamp.nonce - The nonce.
org.springframework.security.core.AuthenticationException - If the nonce failed to validate.public long getValidityWindowSeconds()
public void setValidityWindowSeconds(long validityWindowSeconds)
validityWindowSeconds - the timestamp validity window (in seconds).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||