| java.lang.Object | |
| ↳ | sun.security.mule.krb5.Credentials |
This class encapsulates the concept of a Kerberos service credential. That includes a Kerberos ticket and an associated session key.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEBUG | |||||||||||
| alreadyLoaded | |||||||||||
| alreadyTried | |||||||||||
| authTime | |||||||||||
| cAddr | |||||||||||
| cache | |||||||||||
| client | |||||||||||
| endTime | |||||||||||
| flags | |||||||||||
| key | |||||||||||
| renewTill | |||||||||||
| server | |||||||||||
| serviceKey | |||||||||||
| startTime | |||||||||||
| ticket | |||||||||||
| 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.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
| new_ticket | |
|---|---|
| new_client | |
| new_server | |
| new_key | |
| new_flags | |
| authTime | |
| new_startTime | |
| new_endTime | |
| renewTill | |
| cAddr |
| encoding | |
|---|---|
| client | |
| server | |
| keyBytes | |
| keyType | |
| flags | |
| authTime | |
| startTime | |
| endTime | |
| renewTill | |
| cAddrs | |
| kerberosConfig |
| 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. |
| kerberosConfig |
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. |
|---|---|
| secretKeys | |
| password | |
| kerberosConfig |
| 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. |
| kerberosConfig |
KrbCreds object.