public class RandomKeyFactory extends Object
| 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 Map<EncryptionType,EncryptionKey> |
getRandomKeys()
Get a map of random keys.
|
static Map<EncryptionType,EncryptionKey> |
getRandomKeys(Set<EncryptionType> ciphers)
Get a map of random keys for a list of cipher types to derive keys for.
|
public static Map<EncryptionType,EncryptionKey> getRandomKeys() throws KerberosException
KerberosExceptionpublic static Map<EncryptionType,EncryptionKey> getRandomKeys(Set<EncryptionType> ciphers) throws KerberosException
ciphers - The list of ciphers to derive keys for.KerberosExceptionpublic static EncryptionKey getRandomKey(EncryptionType encryptionType) throws KerberosException
EncryptionType.encryptionType - KerberosExceptionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.