public class KerberosKeyFactory extends Object
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.Modifier and Type | Field and Description |
---|---|
static Map<EncryptionType,String> |
DEFAULT_CIPHERS
A map of default encryption types mapped to cipher names.
|
Constructor and Description |
---|
KerberosKeyFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
static EncryptionKey |
string2Key(String principalName,
String passPhrase,
EncryptionType encryptionType) |
public static final Map<EncryptionType,String> DEFAULT_CIPHERS
public KerberosKeyFactory()
public static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName, String passPhrase)
principalName
- The principal name to use for key derivation.passPhrase
- The passphrase to use for key derivation.public static Map<EncryptionType,EncryptionKey> getKerberosKeys(String principalName, String passPhrase, Set<EncryptionType> ciphers)
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.public static EncryptionKey string2Key(String principalName, String passPhrase, EncryptionType encryptionType)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.