public interface NonceManager
Modifier and Type | Method and Description |
---|---|
String |
nextNonce(String lastNonce,
HttpServerExchange exchange)
Select the next nonce to be sent from the server taking into account the last valid nonce.
|
boolean |
validateNonce(String nonce,
int nonceCount,
HttpServerExchange exchange)
Validate that a nonce can be used.
|
String nextNonce(String lastNonce, HttpServerExchange exchange)
lastNonce
- - The last valid nonce received from the client or null if we don't already have a nonce.boolean validateNonce(String nonce, int nonceCount, HttpServerExchange exchange)
nonce
- - The nonce received from the client.nonceCount
- - The nonce count from the client or -1 of none specified.Copyright © 2019 JBoss by Red Hat. All rights reserved.