|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.kerberos.shared.crypto.encryption.RandomKeyFactory
public class RandomKeyFactory
A factory class for producing random keys, suitable for use as session keys. For a list of desired cipher types, Kerberos random-to-key functions are used to derive keys for DES-, DES3-, AES-, and RC4-based encryption types.
| Constructor Summary | |
|---|---|
RandomKeyFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomKeyFactory()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||