| java.lang.Object | |
| ↳ | sun.security.krb5.Credentials | 
This class encapsulates the concept of a Kerberos service credential. That includes a Kerberos ticket and an associated session key.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Acquires default credentials. | |||||||||||
| Acquires credentials for a specified service using initial credential. | |||||||||||
| Returns a TGT for the given client principal via an AS-Exchange. | |||||||||||
| Returns a TGT for the given client principal from a ticket cache. | |||||||||||
| Checks if the service ticket returned by the KDC has the OK-AS-DELEGATE
 flag set | |||||||||||
| Acquires a service ticket for the specified service
 principal. | |||||||||||
| Gets service credential from key table. | |||||||||||
| Returns a string representation of the object. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
| IOException | |
|---|---|
| KrbException | 
Acquires default credentials.
 
The possible locations for default credentials cache is searched in
 the following order:
 
KrbCreds object if the credential is found,
 otherwise return null.
Acquires credentials for a specified service using initial credential. When 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 credential to request service credential from the foreigh KDC.
| service | the name of service principal using format components@realm | 
|---|---|
| ccreds | client's initial credential. | 
Credentials object.
| IOException | if an error occurs in reading the credentials cache | 
|---|---|
| KrbException | if an error occurs specific to Kerberos | 
Returns a TGT for the given client principal via an AS-Exchange. This method causes pre-authentication data to be sent in the AS-REQ.
| princ | the client principal. This value cannot be null. | 
|---|
| IOException | |
|---|---|
| KrbException | 
Returns a TGT for the given client principal from a ticket cache.
| princ | the client principal. A value of null means that the default principal name in the credentials cache will be used. | 
|---|---|
| ticketCache | the path to the tickets file. A value of null will be accepted to indicate that the default path should be searched | 
| IOException | |
|---|---|
| KrbException | 
Checks if the service ticket returned by the KDC has the OK-AS-DELEGATE flag set
Acquires a service ticket for the specified service principal. If the service ticket is not already available, it obtains a new one from the KDC.
Gets service credential from key table. The credential is used to decrypt the received client message and authenticate the client by verifying the client's credential.
| serviceName | the name of service, using format component@realm | 
|---|---|
| keyTabFile | the file of key table. | 
KrbCreds object.
Returns a string representation of the object. In general, the
 toString method returns a string that
 "textually represents" this object. The result should
 be a concise but informative representation that is easy for a
 person to read.
 It is recommended that all subclasses override this method.
 
 The toString method for class Object
 returns a string consisting of the name of the class of which the
 object is an instance, the at-sign character `@', and
 the unsigned hexadecimal representation of the hash code of the
 object. In other words, this method returns a string equal to the
 value of:
 
getClass().getName() + '@' + Integer.toHexString(hashCode())