public class AppEngineMemcacheNonceProvider extends Object implements NonceProvider
NonceProvider.NonceValidity| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enableNonceCountChecking |
protected com.google.appengine.api.memcache.MemcacheService |
memcache |
protected int |
nonceValiditySeconds |
| Constructor and Description |
|---|
AppEngineMemcacheNonceProvider(int nonceValiditySeconds) |
| Modifier and Type | Method and Description |
|---|---|
String |
createNonce(Request request)
Create and return a nonce value to be used for an authentication session.
|
NonceProvider.NonceValidity |
getNonceValidity(String nonce,
Long nc)
Check to see if the given nonce is known.
|
boolean |
isEnableNonceCountChecking()
IE seems to send nc (nonce count) parameters out of order.
|
void |
setEnableNonceCountChecking(boolean enableNonceCountChecking) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNonce, getNonceValidityprotected final int nonceValiditySeconds
protected boolean enableNonceCountChecking
protected final com.google.appengine.api.memcache.MemcacheService memcache
public AppEngineMemcacheNonceProvider(int nonceValiditySeconds)
public String createNonce(Request request)
NonceProvidercreateNonce in interface NonceProviderrequest - - the current requestpublic NonceProvider.NonceValidity getNonceValidity(String nonce, Long nc)
NonceProvidergetNonceValidity in interface NonceProvidernonce - - the nonce value given by a client to be checked.nc - - may be null for non-auth requests. otherwise this should
be a monotonically increasing value. The server should record the previous
value and ensure that this value is greater then any previously given.public boolean isEnableNonceCountChecking()
public void setEnableNonceCountChecking(boolean enableNonceCountChecking)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.