Package eu.europa.esig.dss.service
Class SecureRandomNonceSource
java.lang.Object
eu.europa.esig.dss.service.SecureRandomNonceSource
- All Implemented Interfaces:
NonceSource,Serializable
This class produces nonce values based on a SecureRandom.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNonce()This methods allows to retrieve an unique new value to be use as nonce.
-
Constructor Details
-
SecureRandomNonceSource
public SecureRandomNonceSource()Default constructor instantiating a SecureRandom
-
-
Method Details
-
getNonce
Description copied from interface:NonceSourceThis methods allows to retrieve an unique new value to be use as nonce.- Specified by:
getNoncein interfaceNonceSource- Returns:
- the unique value to use
-