Class KrbUtil
java.lang.Object
org.apache.kerby.kerberos.kerb.common.KrbUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kerby.kerberos.kerb.type.base.PrincipalNamestatic org.apache.kerby.kerberos.kerb.type.base.PrincipalNamemakeCrossRealmPrincipal(String localRealm, String remoteRealm) static org.apache.kerby.kerberos.kerb.type.base.PrincipalNamemakeKadminPrincipal(String realm) Construct kadmin principal name.static org.apache.kerby.kerberos.kerb.type.base.PrincipalNamemakeKadminPrincipal(String principal, String realm) Construct the kadmin principalstatic org.apache.kerby.kerberos.kerb.type.base.PrincipalNamemakeTgsPrincipal(String realm) Construct TGS principal name.static org.apache.kerby.kerberos.kerb.type.base.PrincipalNamemakeTgsPrincipal(String sourceRealm, String destRealm) Construct TGS principal name for cross-realm.static booleanpricipalCompareIgnoreRealm(org.apache.kerby.kerberos.kerb.type.base.PrincipalName princ1, org.apache.kerby.kerberos.kerb.type.base.PrincipalName princ2)
-
Field Details
-
ANONYMOUS_PRINCIPAL
- See Also:
-
KRB5_WELLKNOWN_NAMESTR
First component of NT_WELLKNOWN principals- See Also:
-
KRB5_ANONYMOUS_PRINCSTR
- See Also:
-
KRB5_ANONYMOUS_REALMSTR
- See Also:
-
-
Constructor Details
-
KrbUtil
public KrbUtil()
-
-
Method Details
-
makeTgsPrincipal
Construct TGS principal name.- Parameters:
realm- The realm- Returns:
- principal
-
makeTgsPrincipal
public static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeTgsPrincipal(String sourceRealm, String destRealm) Construct TGS principal name for cross-realm.- Parameters:
sourceRealm- The source realmdestRealm- The dest realm- Returns:
- principal
-
makeCrossRealmPrincipal
-
makeKadminPrincipal
public static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeKadminPrincipal(String realm) Construct kadmin principal name.- Parameters:
realm- The realm- Returns:
- principal
-
makeKadminPrincipal
public static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeKadminPrincipal(String principal, String realm) Construct the kadmin principal- Parameters:
principal- The principal namerealm- The realm- Returns:
- principal
-
pricipalCompareIgnoreRealm
public 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 - Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
makeAnonymousPrincipal
public static org.apache.kerby.kerberos.kerb.type.base.PrincipalName makeAnonymousPrincipal()
-