Package org.keycloak.common.util
Class SecretGenerator
- java.lang.Object
- 
- org.keycloak.common.util.SecretGenerator
 
- 
 public class SecretGenerator extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static char[]ALPHANUMstatic char[]DIGITSstatic intSECRET_LENGTH_256_BITSstatic intSECRET_LENGTH_384_BITSstatic intSECRET_LENGTH_512_BITSstatic char[]UPPER
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecretGeneratorgetInstance()byte[]randomBytes()byte[]randomBytes(int length)StringrandomString()StringrandomString(int length)StringrandomString(int length, char[] symbols)
 
- 
- 
- 
Field Detail- 
SECRET_LENGTH_256_BITSpublic static final int SECRET_LENGTH_256_BITS - See Also:
- Constant Field Values
 
 - 
SECRET_LENGTH_384_BITSpublic static final int SECRET_LENGTH_384_BITS - See Also:
- Constant Field Values
 
 - 
SECRET_LENGTH_512_BITSpublic static final int SECRET_LENGTH_512_BITS - See Also:
- Constant Field Values
 
 - 
UPPERpublic static final char[] UPPER 
 - 
DIGITSpublic static final char[] DIGITS 
 - 
ALPHANUMpublic static final char[] ALPHANUM 
 
- 
 - 
Method Detail- 
getInstancepublic static SecretGenerator getInstance() 
 - 
randomStringpublic String randomString() 
 - 
randomStringpublic String randomString(int length) 
 - 
randomStringpublic String randomString(int length, char[] symbols) 
 - 
randomBytespublic byte[] randomBytes() 
 - 
randomBytespublic byte[] randomBytes(int length) 
 
- 
 
-