public class NonceFactory extends Object
Constructor and Description |
---|
NonceFactory() |
Modifier and Type | Method and Description |
---|---|
String |
createNonce(boolean store)
Generates a nonce and caches it with the issued nonces for later verification.
|
boolean |
useNonce(String nonceToUse)
Validates the nonce is in the list of issued nonces and removes it from the list to ensure it can not be used again.
|
public String createNonce(boolean store)
public boolean useNonce(String nonceToUse)
nonceToUse
- - The nonce to validate.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.