Package eu.europa.esig.dss.service
Class SecureRandomNonceSource
java.lang.Object
eu.europa.esig.dss.service.SecureRandomNonceSource
- All Implemented Interfaces:
NonceSource
public class SecureRandomNonceSource extends Object implements NonceSource
This class produces nonce values based on a SecureRandom.
-
Constructor Summary
Constructors Constructor Description SecureRandomNonceSource()
-
Method Summary
Modifier and Type Method Description BigInteger
getNonce()
This methods allows to retrieve an unique new value to be use as nonce.
-
Constructor Details
-
SecureRandomNonceSource
public SecureRandomNonceSource()
-
-
Method Details
-
getNonce
Description copied from interface:NonceSource
This methods allows to retrieve an unique new value to be use as nonce.- Specified by:
getNonce
in interfaceNonceSource
- Returns:
- the unique value to use
-