public static String createNonce ( ) { val fmtDate = ZonedDateTime . now ( ZoneOffset . UTC ) . toString ( ) ; val rand = RandomUtils . getNativeInstance ( ) ; val randomInt = rand . nextInt ( ) ; return DigestUtils . md5Hex ( fmtDate + randomInt ) ; }
Create nonce string .