All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.crypto.random.RandomCreator Maven / Gradle / Ivy

package io.github.mmm.crypto.random;

import io.github.mmm.crypto.algorithm.CryptoAlgorithm;

/**
 * The interface for a creator of secure {@link #nextRandom(int) random data}. It is similar to
 * {@link java.security.SecureRandom} but gives additional abstraction.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public interface RandomCreator extends CryptoAlgorithm, RandomConstants {

  /**
   * @param bytes the requested number of random bytes.
   * @return the {@code byte} array with the given number of random bytes.
   * @see java.security.SecureRandom#nextBytes(byte[])
   */
  byte[] nextRandom(int bytes);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy