public class

CredentialsUtil

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.CredentialsUtil

Class Overview

This class is a utility that contains much of the TGS-Exchange protocol. It is used by ../Credentials.java for service ticket acquisition in both the normal and the x-realm case.

Summary

Fields
private static boolean DEBUG
Public Constructors
CredentialsUtil()
Public Methods
static Credentials acquireServiceCreds(String service, Credentials ccreds, Config kerberosConfig)
Acquires credentials for a specified service using initial credential.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static boolean DEBUG

Public Constructors

public CredentialsUtil ()

Public Methods

public static Credentials acquireServiceCreds (String service, Credentials ccreds, Config kerberosConfig)

Acquires credentials for a specified service using initial credential. Wh en the service has a different realm from the initial credential, we do cross-realm authentication - first, we use the current credential to get a cross-realm credential from the local KDC, then use that cross-realm cr edential to request service credential from the foreigh KDC.

Parameters
service The name of service principal using format components@real m
ccreds Client's initial credential.
kerberosConfig
Returns
  • a Credentials object.
Throws
Exception general exception will be thrown when any error occu rs.
IOException
KrbException