securityFactoryData.setAttribute("realmName", loginConfig.getRealmName().getStringValue().trim());
} else if (auth == BuiltInAuthMethod.DIGEST) {
securityFactoryData.setAttribute("realmName", loginConfig.getRealmName().getStringValue().trim());
} else if (auth == BuiltInAuthMethod.FORM) {
if (loginConfig.isSetFormLoginConfig()) {
FormLoginConfigType formLoginConfig = loginConfig.getFormLoginConfig();
securityFactoryData.setAttribute("loginPage", formLoginConfig.getFormLoginPage().getStringValue());
securityFactoryData.setAttribute("errorPage", formLoginConfig.getFormErrorPage().getStringValue());
}
} else if (auth == BuiltInAuthMethod.CLIENTCERT) {
//nothing to do
} else {
throw new DeploymentException("unrecognized auth method, use jaspi to configure: " + authMethod);