sun.security.mule.krb5.internal
Class CredentialsUtil
java.lang.Object
sun.security.mule.krb5.internal.CredentialsUtil
public class CredentialsUtil
- extends Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CredentialsUtil
public CredentialsUtil()
acquireServiceCreds
public static Credentials acquireServiceCreds(String service,
Credentials ccreds,
Config kerberosConfig)
throws KrbException,
IOException
- 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
mccreds - client's initial credential.
- Returns:
- a
Credentials object.
- Throws:
Exception - general exception will be thrown when any error occu
rs.
KrbException
IOException
Copyright © 2013. All Rights Reserved.