| java.lang.Object | |
| ↳ | sun.security.mule.krb5.Config |
This class maintains key-value pairs of Kerberos configurable constants from configuration file or from user specified system properties.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | BASE16_0 | ||||||||||
| int | BASE16_1 | ||||||||||
| int | BASE16_2 | ||||||||||
| int | BASE16_3 | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| defaultRealm | |||||||||||
| logger | |||||||||||
| singleton | |||||||||||
| stanzaTable | |||||||||||
| subjects | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Generate a config using the traditional JAAS way.
| |||||||||||
Generate a config using the information passed as parameter and not the system properties
| |||||||||||
Generate a default config file using only as dinamic parameters the realm and the kdcLocation
The configuration generated is:
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the default encryption types.
| |||||||||||
Gets the default string value for the specified name.
| |||||||||||
Gets the default string value for the specified name in the
specified section.
| |||||||||||
Gets the default boolean value for the specified name in the
specified section.
| |||||||||||
Gets the default boolean value for the specified name.
| |||||||||||
Gets the default int value for the specified name.
| |||||||||||
Gets the default int value for the specified name in the specified
section.
| |||||||||||
Gets default realm.
| |||||||||||
Returns a list of KDC's with each KDC separated by a space
| |||||||||||
Get the etype and checksum value for the specified encryption and
checksum type.
| |||||||||||
For testing purpose.
| |||||||||||
Generate a Kerberos configuration using the default template.
| |||||||||||
Refresh and reload the Configuration.
| |||||||||||
Resets the default kdc realm.
| |||||||||||
Check to use addresses in tickets
use addresses if "no_addresses" or "noaddresses" is set to false
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Generate a config using the traditional JAAS way. This is using the System properties to get the kerberos config file and other configurations
| KrbException |
|---|
Generate a config using the information passed as parameter and not the system properties
| configFile | The Vector |
|---|
| KrbException | If the configuration cannot be generated |
|---|
Generate a default config file using only as dinamic parameters the realm and the kdcLocation
The configuration generated is:
[libdefaults]
default_realm = realm
default_tkt_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
default_tgs_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
permitted_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
[realms]
realm = {
kdc = kdcLocation
[domain_realm]
.realmInLowerCase = realm
realmInLowerCase = realm
}
| realm | The realm of the Authentication server (generally in upper case format) |
|---|---|
| kdcLocation | The location of the Authentication server |
| KrbException | If the configuration cannot be generated |
|---|
Returns the default encryption types.
| enctypes |
|---|
Gets the default string value for the specified name.
| name | The name. |
|---|
Gets the default string value for the specified name in the
specified section.
This method is quicker by using the section name as the search key.
| name | The name. |
|---|---|
| section | The name of the section. |
Gets the default boolean value for the specified name in the
specified section.
This method is quicker by using the section name as the search key.
| name | The name. |
|---|---|
| section | The name of the section. |
Gets the default boolean value for the specified name.
| name | The name. |
|---|
Gets the default int value for the specified name.
| name | The name. |
|---|
Gets the default int value for the specified name in the specified
section.
This method is quicker by using section name as the
search key.
| name | The name. |
|---|---|
| section |
Gets default realm.
Returns a list of KDC's with each KDC separated by a space
| realm | The realm for which the master KDC is desired |
|---|
Get the etype and checksum value for the specified encryption and checksum type.
| input |
|---|
For testing purpose. This method lists all information being parsed from the configuration file to the hashtable.
Generate a Kerberos configuration using the default template.
[libdefaults]
default_realm = realm
default_tkt_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
default_tgs_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
permitted_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc
[realms]
realm = {
kdc = kdcLocation
[domain_realm]
.realmInLowerCase = realm
realmInLowerCase = realm
}
| realm | The realm (domain) provided using case sensitive (generally it is in upper case) |
|---|---|
| kdcLocation | The domain or url where the kdc is located |
| Exception | If cannot generate the file |
|---|
Refresh and reload the Configuration. This could involve, for example reading the Configuration file again or getting the java.security.krb5.* system properties again.
| KrbException | if error occurs when constructing a Config instance. Possible causes would be configuration file not found, either of java.security.krb5.realm or java.security.krb5.kdc not specified, error reading configuration file. |
|---|
Resets the default kdc realm. We do not need to synchronize these methods since assignments are atomic
| realm |
|---|
| principalName |
|---|
| principalName | |
|---|---|
| subject |
Check to use addresses in tickets use addresses if "no_addresses" or "noaddresses" is set to false