public class RandomKeyFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<EncryptionType,java.lang.String> |
DEFAULT_CIPHERS
A map of default encryption types mapped to cipher names.
|
| Constructor and Description |
|---|
RandomKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionKey |
getRandomKey(EncryptionType encryptionType)
Get a new random key for a given
EncryptionType. |
static java.util.Map<EncryptionType,EncryptionKey> |
getRandomKeys()
Get a map of random keys.
|
static java.util.Map<EncryptionType,EncryptionKey> |
getRandomKeys(java.util.Set<EncryptionType> ciphers)
Get a map of random keys for a list of cipher types to derive keys for.
|
private static final java.util.Map<EncryptionType,java.lang.String> DEFAULT_CIPHERS
public static java.util.Map<EncryptionType,EncryptionKey> getRandomKeys() throws KerberosException
KerberosExceptionpublic static java.util.Map<EncryptionType,EncryptionKey> getRandomKeys(java.util.Set<EncryptionType> ciphers) throws KerberosException
ciphers - The list of ciphers to derive keys for.KerberosExceptionpublic static EncryptionKey getRandomKey(EncryptionType encryptionType) throws KerberosException
EncryptionType.encryptionType - KerberosException