com.ibm.security.krb5.internal
Class Config
- java.lang.Object
com.ibm.security.krb5.internal.Config
- public class Config
- extends java.lang.Object
Version:
1.1, 5/7/07
Author:
Yanni Zhang
Field Summary
Modifier and Type | Field and Description |
---|---|
|
USER_HOME
DOCUMENT ME!
|
Constructor Summary
Constructor and Description |
---|
Config(java.util.Map map)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
defaultEtype(java.lang.String enctypes)
Returns the default encryption types.
|
|
getDefault(java.lang.String name)
Gets the default string value for the specified name.
|
|
getDefault(java.lang.String name,java.lang.String section)
Gets the default string value for the specified name in the specified
section.
|
|
getDefaultBooleanValue(java.lang.String name)
Gets the default boolean value for the specified name.
|
|
getDefaultBooleanValue(java.lang.String name,java.lang.String section)
Gets the default boolean value for the specified name in the specified
section.
|
|
getDefaultIntValue(java.lang.String name)
Gets the default int value for the specified name.
|
|
getDefaultIntValue(java.lang.String name,java.lang.String section)
Gets the default int value for the specified name in the specified
section.
|
|
getDefaultRealm()
Gets default realm.
|
|
getInstance()
Gets an instance of Config class.
|
|
getInstance(java.util.Map map)
Gets an instance of Config class.
|
|
getKDCList(java.lang.String realm)
Returns a list of KDC's with each KDC separated by a space
|
|
getMasterKDC(java.lang.String realm)
Returns the master KDC, viz, the fist KDC on the list of KDC's
|
|
getType(java.lang.String input)
Get the etype and checksum value for the specified encryption and
checksum type.
|
|
listTable()
For testing purpose.
|
|
mapHostToRealm(java.lang.String name)
|
|
refresh()
DOCUMENT ME!
|
|
resetDefaultRealm(java.lang.String realm)
Resets the default kdc realm.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
USER_HOME
- public final java.lang.String USER_HOME
DOCUMENT ME!
Constructor Detail
Config
- public Config(java.util.Map map)
- throws KrbException
Throws:
Method Detail
getInstance
- public static Config getInstance( )
- throws KrbException
Gets an instance of Config class. One and only one instance (the
singleton) is returned.
Returns:
DOCUMENT ME!
Throws:
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. getInstance
- public static Config getInstance( java.util.Map map)
- throws KrbException
Gets an instance of Config class. One and only one instance (the
singleton) is returned.
Returns:
DOCUMENT ME!
Throws:
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. refresh
- public static void refresh()
- throws KrbException
DOCUMENT ME!
Throws:
KrbException
- DOCUMENT ME! getDefaultIntValue
- public int getDefaultIntValue(java.lang.String name)
Gets the default int value for the specified name.
Parameters:
name
- the name. Returns:
the default Integer, null is returned if no such name and value
are found in configuration file, or error occurs when parsing
string to integer.
getDefaultIntValue
- public int getDefaultIntValue(java.lang.String name,
- java.lang.String section)
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.
This method is quicker by using section name as the search key.
Parameters:
name
- the name. section
- the name string of the section. Returns:
the default Integer, null is returned if no such name and value
are found in configuration file, or error occurs when parsing
string to integer.
getDefault
- public java.lang.String getDefault( java.lang.String name)
Gets the default string value for the specified name.
Parameters:
name
- the name. Returns:
the default value, null is returned if it cannot be found.
getDefault
- public java.lang.String getDefault( java.lang.String name,
- java.lang.String section)
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.
This method is quicker by using the section name as the search key.
Parameters:
name
- the name. section
- the name of the section. Returns:
the default value, null is returned if it cannot be found.
getDefaultBooleanValue
- public boolean getDefaultBooleanValue( java.lang.String name)
Gets the default boolean value for the specified name.
Parameters:
name
- the name. Returns:
the default boolean value, false is returned if it cannot be
found.
getDefaultBooleanValue
- public boolean getDefaultBooleanValue( java.lang.String name,
- java.lang.String 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.
This method is quicker by using the section name as the search key.
Parameters:
name
- the name. section
- the name of the section. Returns:
the default boolean value, false is returned if it cannot be
found.
listTable
- public void listTable()
For testing purpose. This method lists all information being parsed from
the configuration file to the hashtable.
defaultEtype
- public int[] defaultEtype(java.lang.String enctypes)
Returns the default encryption types.
Parameters:
enctypes
- DOCUMENT ME! Returns:
DOCUMENT ME!
getType
- public int getType(java.lang.String input)
Get the etype and checksum value for the specified encryption and
checksum type.
Parameters:
input
- DOCUMENT ME! Returns:
DOCUMENT ME!
resetDefaultRealm
- public void resetDefaultRealm(java.lang.String realm)
Resets the default kdc realm.
Parameters:
realm
- DOCUMENT ME! getDefaultRealm
- public java.lang.String getDefaultRealm( )
Gets default realm.
Returns:
DOCUMENT ME!
mapHostToRealm
- public java.lang.String mapHostToRealm( java.lang.String name)
getKDCList
- public java.lang.String getKDCList( java.lang.String realm)
Returns a list of KDC's with each KDC separated by a space
Parameters:
realm
- the realm for which the master KDC is desired Returns:
the list of KDCs
getMasterKDC
- public java.lang.String getMasterKDC( java.lang.String realm)
Returns the master KDC, viz, the fist KDC on the list of KDC's
Parameters:
realm
- the realm for which the master KDC is desired Returns:
the name of the master KDC host