NonceManager
SimpleNonceManager
public interface SessionNonceManager extends NonceManager
NonceManager
interface for Nonce managers that also support the association of a pre-prepared
hash against a currently valid nonce.
If the nonce manager replaces in-use nonces as old ones expire then the associated session hash should be migrated to the
replacement nonce.Modifier and Type | Method | Description |
---|---|---|
void |
associateHash(java.lang.String nonce,
byte[] hash) |
Associate the supplied hash with the nonce specified.
|
byte[] |
lookupHash(java.lang.String nonce) |
Retrieve the existing hash associated with the nonce specified.
|
nextNonce, validateNonce
void associateHash(java.lang.String nonce, byte[] hash)
nonce
- - The nonce the hash is to be associated with.hash
- - The hash to associate.byte[] lookupHash(java.lang.String nonce)
nonce
- - The nonce the hash is required for.Copyright © 2018. All rights reserved.