Package com.sun.identity.wss.security
Class KerberosConfiguration
- java.lang.Object
-
- javax.security.auth.login.Configuration
-
- com.sun.identity.wss.security.KerberosConfiguration
-
public class KerberosConfiguration extends Configuration
This classKerberosConfigurationrepresents Kerberos Configuration for web service clients and web service providers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description static StringWSC_CONFIGURATIONstatic StringWSP_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description KerberosConfiguration(Configuration config)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppConfigurationEntry[]getAppConfigurationEntry(String appName)Returns AppConfigurationEntry array for the application using Kerberos module.voidrefresh()voidsetKeyTab(String keytabFile)Sets key tab file.voidsetPrincipalName(String principalName)Sets principal name.voidsetRefreshConfig(String refresh)Sets a boolean value to refresh the configuration.voidsetTicketCacheDir(String dirName)Sets kerberos ticket cache dir.-
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
-
-
-
-
Field Detail
-
WSC_CONFIGURATION
public static final String WSC_CONFIGURATION
- See Also:
- Constant Field Values
-
WSP_CONFIGURATION
public static final String WSP_CONFIGURATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KerberosConfiguration
public KerberosConfiguration(Configuration config)
Constructor- Parameters:
config-
-
-
Method Detail
-
setPrincipalName
public void setPrincipalName(String principalName)
Sets principal name.- Parameters:
principalName-
-
setKeyTab
public void setKeyTab(String keytabFile)
Sets key tab file.- Parameters:
keytabFile-
-
setRefreshConfig
public void setRefreshConfig(String refresh)
Sets a boolean value to refresh the configuration.- Parameters:
refresh-
-
setTicketCacheDir
public void setTicketCacheDir(String dirName)
Sets kerberos ticket cache dir. Typically this is users home directory where the user's kerberos ticket is stored.- Parameters:
dirName- the dierectory where the ticket cache is stored.
-
getAppConfigurationEntry
public AppConfigurationEntry[] getAppConfigurationEntry(String appName)
Returns AppConfigurationEntry array for the application using Kerberos module.- Specified by:
getAppConfigurationEntryin classConfiguration- Parameters:
appName- the configuration name.- Returns:
- Array of AppConfigurationEntry
-
refresh
public void refresh()
- Overrides:
refreshin classConfiguration
-
-