Map<String, ?> sharedState, Map<String, ?> options) {
this.subject = subject;
this.callbackHandler = callbackHandler;
// Avoid using Seam components in Login Modules
JndiBackedConfig jndiConfig = new JndiBackedConfig();
internalAuthDomain =
jndiConfig.getAuthPolicyName(AuthenticationType.INTERNAL.name()
.toLowerCase());
kerberosDomain =
jndiConfig.getAuthPolicyName(AuthenticationType.KERBEROS.name()
.toLowerCase());
openIdDomain =
jndiConfig.getAuthPolicyName(AuthenticationType.OPENID.name()
.toLowerCase());
jaasDomain =
jndiConfig.getAuthPolicyName(AuthenticationType.JAAS.name()
.toLowerCase());
}