Top Description Methods
io.undertow.security.api

public Interface SessionNonceManager

extends NonceManager
Known Direct Implementers
io.undertow.security.impl.SimpleNonceManager

An extension to the 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.
Author
Darran Lofthouse

Method Summary

Modifier and TypeMethod 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.
lookupHash
(final String
- The nonce the hash is required for.
nonce
)

Retrieve the existing hash associated with the nonce specified.

Inherited from io.undertow.security.api.NonceManager:
nextNoncevalidateNonce

Method Detail

associateHashback to summary
public void associateHash(final String nonce, final byte[] hash)

Associate the supplied hash with the nonce specified.

Parameters
nonce:String

- The nonce the hash is to be associated with.

hash:byte[]

- The hash to associate.

lookupHashback 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.

Parameters
nonce:String

- The nonce the hash is required for.

Returns:byte[]

The associated hash or null if there is no association.