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 org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeAnonymousPrincipal() |
static org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeCrossRealmPrincipal(String localRealm,
String remoteRealm) |
static org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeKadminPrincipal(String realm)
Construct kadmin principal name.
|
static org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeKadminPrincipal(String principal,
String realm)
Construct the kadmin principal
|
static org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeTgsPrincipal(String realm)
Construct TGS principal name.
|
static org.apache.kerby.kerberos.kerb.type.base.PrincipalName |
makeTgsPrincipal(String sourceRealm,
String destRealm)
Construct TGS principal name for cross-realm.
|
static boolean |
pricipalCompareIgnoreRealm(org.apache.kerby.kerberos.kerb.type.base.PrincipalName princ1,
org.apache.kerby.kerberos.kerb.type.base.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 org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeTgsPrincipal(String realm)
realm - The realmpublic static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeTgsPrincipal(String sourceRealm, String destRealm)
sourceRealm - The source realmdestRealm - The dest realmpublic static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeCrossRealmPrincipal(String localRealm, String remoteRealm)
public static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeKadminPrincipal(String realm)
realm - The realmpublic static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeKadminPrincipal(String principal, String realm)
principal - The principal namerealm - The realmpublic static boolean pricipalCompareIgnoreRealm(org.apache.kerby.kerberos.kerb.type.base.PrincipalName princ1,
org.apache.kerby.kerberos.kerb.type.base.PrincipalName princ2)
throws org.apache.kerby.kerberos.kerb.KrbException
org.apache.kerby.kerberos.kerb.KrbExceptionpublic static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeAnonymousPrincipal()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.