org.apache.directory.server.kerberos.shared.crypto.encryption
Class KerberosKeyFactory

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.crypto.encryption.KerberosKeyFactory

public class KerberosKeyFactory
extends Object

A factory class for producing KerberosKey's. For a list of desired cipher types, Kerberos string-to-key functions are used to derive keys for DES-, DES3-, AES-, and RC4-based encryption types.

Author:
Apache Directory Project

Constructor Summary
KerberosKeyFactory()
           
 
Method Summary
static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName, String passPhrase)
          Get a map of KerberosKey's for a given principal name and passphrase.
static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName, String passPhrase, Set<EncryptionType> ciphers)
          Get a list of KerberosKey's for a given principal name and passphrase and 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

KerberosKeyFactory

public KerberosKeyFactory()
Method Detail

getKerberosKeys

public static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName,
                                                                String passPhrase)
Get a map of KerberosKey's for a given principal name and passphrase. The default set of encryption types is used.

Parameters:
principalName - The principal name to use for key derivation.
passPhrase - The passphrase to use for key derivation.
Returns:
The map of KerberosKey's.

getKerberosKeys

public static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName,
                                                                String passPhrase,
                                                                Set<EncryptionType> ciphers)
Get a list of KerberosKey's for a given principal name and passphrase and list of cipher types to derive keys for.

Parameters:
principalName - The principal name to use for key derivation.
passPhrase - The passphrase to use for key derivation.
ciphers - The set of ciphers to derive keys for.
Returns:
The list of KerberosKey's.


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.