Package org.keycloak.saml
Class RandomSecret
java.lang.Object
org.keycloak.saml.RandomSecret
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]createRandomSecret(int size) Creates a randombyte[]secret of the specified size.
-
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.
-