public interface NonceProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
NonceProvider.NonceValidity |
| Modifier and Type | Method and Description |
|---|---|
String |
createNonce(Request request)
Create and return a nonce value to be used for an authentication session.
|
default String |
createNonce(Request request,
String userUrl) |
NonceProvider.NonceValidity |
getNonceValidity(String nonce,
Long nonceCount)
Check to see if the given nonce is known.
|
default NonceProvider.NonceValidity |
getNonceValidity(String nonce,
Long nonceCount,
String userId)
Default implementation which calls getNonceValidity( String nonce, Long nonceCount )
Implementations which wish to apply extra security can check the userid is valid for the nonce
, IF it is provided
Note that the userID may be EITHER a userUrl (from cookie auth handler) or a username (from Digest auth)
|
NonceProvider.NonceValidity getNonceValidity(String nonce, Long nonceCount)
nonce - - the nonce value given by a client to be checked.nonceCount - - 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.default NonceProvider.NonceValidity getNonceValidity(String nonce, Long nonceCount, String userId)
nonce - nonceCount - userId - String createNonce(Request request)
request - - the current requestCopyright © 2021 McEvoy Software Ltd. All rights reserved.