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 RandomKeyFactory()
public static Map<EncryptionType,EncryptionKey> getRandomKeys() throws KerberosException
KerberosException
public static Map<EncryptionType,EncryptionKey> getRandomKeys(Set<EncryptionType> ciphers) throws KerberosException
ciphers
- The list of ciphers to derive keys for.KerberosException
public static EncryptionKey getRandomKey(EncryptionType encryptionType) throws KerberosException
EncryptionType
.encryptionType
- KerberosException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.