Class RandomSecret

java.lang.Object
org.keycloak.saml.RandomSecret

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

    • RandomSecret

      public RandomSecret()
  • Method Details

    • 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.