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 and Description |
|---|---|
| public void | associateHash(final String
- The nonce the hash is to be associated with. nonce, final byte[] - The hash to associate. hash)Associate the supplied hash with the nonce specified. |
| public byte[] | Returns: The associated hash or null if there is no association.- The nonce the hash is required for. nonce)Retrieve the existing hash associated with the nonce specified. |
| associateHash | back to summary |
|---|---|
| public void associateHash(final String nonce, final byte[] hash) Associate the supplied hash with the nonce specified.
| |
| lookupHash | back to summary |
|---|---|
| public byte[] lookupHash(final String nonce) Retrieve the existing hash associated with the nonce specified. If there is no association then null should be returned.
| |