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
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
This method allows retrieving of unique value to be used as a nonce.
-
Constructor Details
-
SecureRandomNonceSource
public SecureRandomNonceSource()Default constructor instantiating a SecureRandom
-
-
Method Details
-
getNonceValue
public byte[] getNonceValue()Description copied from interface:NonceSource
This method allows retrieving of unique value to be used as a nonce.- Specified by:
getNonceValue
in interfaceNonceSource
- Returns:
- byte array representing the unique value to use
-