|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NonceProvider
Provides a source of nonce values to be used in Digest authentication, and a means to validate nonce values. Implementations should ensure that nonce values are available across all servers in a cluster, and that they expire appropriately. Implementations should also ensure that nonce-count values are always increasing, if provided.
| Nested Class Summary | |
|---|---|
static class |
NonceProvider.NonceValidity
|
| Method Summary | |
|---|---|
java.lang.String |
createNonce(Resource resource,
Request request)
Create and return a nonce value to be used for an authentication session. |
NonceProvider.NonceValidity |
getNonceValidity(java.lang.String nonce,
java.lang.Long nonceCount)
Check to see if the given nonce is known. |
| Method Detail |
|---|
NonceProvider.NonceValidity getNonceValidity(java.lang.String nonce,
java.lang.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.
java.lang.String createNonce(Resource resource,
Request request)
resource - - the resource being accessed.request - - the current request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||