Package | Description |
---|---|
org.springframework.security.crypto.keygen |
Modifier and Type | Method and Description |
---|---|
static BytesKeyGenerator |
KeyGenerators.secureRandom()
Create a
BytesKeyGenerator that uses a SecureRandom to generate keys of 8 bytes in length. |
static BytesKeyGenerator |
KeyGenerators.secureRandom(int keyLength)
Create a
BytesKeyGenerator that uses a SecureRandom to generate keys of a custom length. |
static BytesKeyGenerator |
KeyGenerators.shared(int keyLength)
Create a
BytesKeyGenerator that returns a single, shared SecureRandom key of a custom length. |
Copyright © 2019. All rights reserved.