If you are trying to use the java.security package on the client it is unlikely that GWT supports them.
On Nov 28, 6:08 am, Phani <[EMAIL PROTECTED]> wrote: > Hi All, > > In my application i have to implement a unique number generation i.e > UUID using SecureRandom class of java.security package. Please refer > the below code. > try { > // Create a secure random number generator > SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); > // Get 1024 random bits > byte[] bytes = new byte[1024/8]; > sr.nextBytes(bytes); > > // Create two secure number generators with the same seed > int seedByteCount = 10; > byte[] seed = sr.generateSeed(seedByteCount); > sr = SecureRandom.getInstance("SHA1PRNG"); > sr.setSeed(seed); > SecureRandom sr2 = SecureRandom.getInstance("SHA1PRNG"); > sr2.setSeed(seed); > } catch (NoSuchAlgorithmException e) { > } > But i'm facing a problem stating that java.security cannot be resolved > to a type. Please help me.Whether GWT doesn't support java.security > package? > Thanks in Advance, > Phani. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---