Class Krb5LoginConfiguration
java.lang.Object
javax.security.auth.login.Configuration
org.jboss.as.test.integration.security.common.Krb5LoginConfiguration
Simple Krb5LoginModule configuration.
- Author:
- Josef Cacek
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters -
Constructor Summary
ConstructorsConstructorDescriptionKrb5LoginConfiguration(String principal, File keyTab, boolean acceptor, Configuration wrapped) Create a new Krb5LoginConfiguration with given principal name, keytab and credential type.Krb5LoginConfiguration(Configuration wrapped) Create a new Krb5LoginConfiguration. -
Method Summary
Modifier and TypeMethodDescriptiongetAppConfigurationEntry(String applicationName) Interface method requiring us to return all the LoginModules we know about.static StringReturns Krb5LoginModule class name.getName()Returns this login configuration name.getOptions(String principal, File keyTab, boolean acceptor) Returns Map with Krb5LoginModule options.protected ConfigurationReturns the wrapped configuration.Resets configuration to the wrapped one and returns it.Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfiguration
-
Constructor Details
-
Krb5LoginConfiguration
Create a new Krb5LoginConfiguration. Neither principal nor keytab are not filled and JGSS credential type is initiator.- Throws:
MalformedURLException
-
Krb5LoginConfiguration
public Krb5LoginConfiguration(String principal, File keyTab, boolean acceptor, Configuration wrapped) throws MalformedURLException Create a new Krb5LoginConfiguration with given principal name, keytab and credential type.- Parameters:
principal- principal name, may benullkeyTab- keytab file, may benullacceptor- flag for setting credential type. Set to true, if the authenticated subject should be acceptor (i.e. credsType=acceptor for IBM JDK, and storeKey=true for Oracle JDK)wrapped- wrapped configuration (you can receive it for instance by calling Configuration#getConfiguration()- Throws:
MalformedURLException
-
-
Method Details
-
getOptions
Returns Map with Krb5LoginModule options. The result depends on currently running JVM.- Parameters:
principal- principal name, may benullkeyTab- keytab file, may benullacceptor- flag for setting credential type. Set to true, if the authenticated subject should be acceptor (i.e. credsType=acceptor for IBM JDK, and storeKey=true for Oracle JDK)- Returns:
- HashMap with Krb5LoginModule options.
-
getLoginModule
Returns Krb5LoginModule class name. The returned name depends on the currently running JVM.- Returns:
- class name
-
getName
Returns this login configuration name.- Returns:
-
getWrapped
Returns the wrapped configuration.- Returns:
-
getAppConfigurationEntry
Interface method requiring us to return all the LoginModules we know about.- Specified by:
getAppConfigurationEntryin classConfiguration- Parameters:
applicationName- the application name- Returns:
- the configuration entry
-
resetConfiguration
Resets configuration to the wrapped one and returns it.- Returns:
- login configuration to which it was reseted
-