public class Base64StringKeyGenerator extends Object implements StringKeyGenerator
BytesKeyGenerator
for the actual key generation.Constructor and Description |
---|
Base64StringKeyGenerator()
Creates an instance with keyLength of 32 bytes and standard Base64 encoding.
|
Base64StringKeyGenerator(int keyLength)
Creates an instance with the provided key length in bytes and standard Base64
encoding.
|
public Base64StringKeyGenerator()
public Base64StringKeyGenerator(int keyLength)
keyLength
- the key length in bytespublic String generateKey()
generateKey
in interface StringKeyGenerator