org.keycloak.saml

## Class RandomSecret

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

-     public class RandomSecret
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RandomSecret()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `createRandomSecret(int size)` Creates a random `byte[]` secret of the specified size.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

Copyright © 2021 JBoss by Red Hat. All rights reserved.