|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.kerberos.KerberosUtils
public class KerberosUtils
An utility class for Kerberos.
| Field Summary | |
|---|---|
static List<String> |
EMPTY_PRINCIPAL_NAME
An empty list of principal names |
static int |
NULL
A constant for integer optional values |
| Constructor Summary | |
|---|---|
KerberosUtils()
|
|
| Method Summary | |
|---|---|
static EncryptionType |
getBestEncryptionType(List<EncryptionType> requestedTypes,
List<EncryptionType> configuredTypes)
Get the matching encryption type from the configured types, searching into the requested types. |
static String |
getEncryptionTypesString(List<EncryptionType> encryptionTypes)
Build a list of encryptionTypes |
static KerberosPrincipal |
getKerberosPrincipal(PrincipalName principal,
String realm)
Constructs a KerberosPrincipal from a PrincipalName and an optional realm |
static List<String> |
getNames(KerberosPrincipal principal)
Parse a KerberosPrincipal instance and return the names. |
static List<String> |
getNames(String principalNames)
Parse a PrincipalName and return the names. |
static boolean |
isKerberosString(byte[] value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL
public static final List<String> EMPTY_PRINCIPAL_NAME
| Constructor Detail |
|---|
public KerberosUtils()
| Method Detail |
|---|
public static List<String> getNames(KerberosPrincipal principal)
throws ParseException
principal - The principal to be parsed
ParseException - if the name is not valid
public static List<String> getNames(String principalNames)
throws ParseException
ParseException
public static KerberosPrincipal getKerberosPrincipal(PrincipalName principal,
String realm)
principal - The principal name and typerealm - The optional realm
public static EncryptionType getBestEncryptionType(List<EncryptionType> requestedTypes,
List<EncryptionType> configuredTypes)
requestedTypes - The client encryption typesconfiguredTypes - The configured encryption types
public static String getEncryptionTypesString(List<EncryptionType> encryptionTypes)
encryptionTypes - The encryptionTypes
public static boolean isKerberosString(byte[] value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||