Name
RandomData
Synopsis
This is the interface used by secure
random number generators in the JXTA platform. There is no public API
that creates or returns such a generator; you can instantiate an
instance of the jxta.security.impl.random.JRandom
class, if necessary.
public interface RandomData { // Public Constants public static final byte ALG_PSEUDO_RANDOM; // =1 public static final byte ALG_SECURE_RANDOM; // =2 // Public Instance Methods public abstract void generateData(byte[ ] buffer, short offset, short length); public abstract void setSeed(byte[ ] buffer, short offset, short length); }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.