Class RandomSecret


  • public class RandomSecret
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • RandomSecret

        public RandomSecret()
    • Method Detail

      • createRandomSecret

        public static byte[] createRandomSecret​(int size)

        Creates a random byte[] secret of the specified size.

        Parameters:
        size - the size of the secret to be created, in bytes.
        Returns:
        a byte[] containing the generated secret.