public class KrbUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_PRINCIPAL |
static String |
KRB5_ANONYMOUS_PRINCSTR |
static String |
KRB5_ANONYMOUS_REALMSTR |
static String |
KRB5_WELLKNOWN_NAMESTR
First component of NT_WELLKNOWN principals
|
| Constructor and Description |
|---|
KrbUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PrincipalName |
makeAnonymousPrincipal() |
static PrincipalName |
makeKadminPrincipal(String realm)
Construct kadmin principal name.
|
static PrincipalName |
makeTgsPrincipal(String realm)
Construct TGS principal name.
|
static boolean |
pricipalCompareIgnoreRealm(PrincipalName princ1,
PrincipalName princ2) |
public static final String ANONYMOUS_PRINCIPAL
public static final String KRB5_WELLKNOWN_NAMESTR
public static final String KRB5_ANONYMOUS_PRINCSTR
public static final String KRB5_ANONYMOUS_REALMSTR
public static PrincipalName makeTgsPrincipal(String realm)
realm - The realmpublic static PrincipalName makeKadminPrincipal(String realm)
realm - The realmpublic static boolean pricipalCompareIgnoreRealm(PrincipalName princ1, PrincipalName princ2) throws KrbException
KrbExceptionpublic static PrincipalName makeAnonymousPrincipal()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.