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 java.lang.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.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
KerberosKeyFactory()
           
 
Method Summary
static java.util.Map<EncryptionType,EncryptionKey> getKerberosKeys(java.lang.String principalName, java.lang.String passPhrase)
          Get a map of KerberosKey's for a given principal name and passphrase.
static java.util.Map<EncryptionType,EncryptionKey> getKerberosKeys(java.lang.String principalName, java.lang.String passPhrase, java.util.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 java.util.Map<EncryptionType,EncryptionKey> getKerberosKeys(java.lang.String principalName,
                                                                          java.lang.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 java.util.Map<EncryptionType,EncryptionKey> getKerberosKeys(java.lang.String principalName,
                                                                          java.lang.String passPhrase,
                                                                          java.util.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-2009 Apache Software Foundation. All Rights Reserved.