role.unsetRunAsSubject();
}
String realm = request.getParameter(prefix2 + "realm");
String id = request.getParameter(prefix2 + "id");
if (!isEmpty(realm) && !isEmpty(id)) {
GerSubjectInfoType runAsSubject = role.addNewRunAsSubject();
runAsSubject.setRealm(realm);
runAsSubject.setId(id);
}
}
}
}
if (processAdvancedSettings) {
String parameterName = "security" + "." + "credentialStoreRef";
if (map.containsKey(parameterName)) {
String patternString = request.getParameter(parameterName);
String[] elements = patternString.split("/", 6);
PatternType pattern = PatternType.Factory.newInstance();
pattern.setGroupId(elements[0]);
pattern.setArtifactId(elements[1]);
// pattern.setVersion(elements[2]);
// pattern.setType(elements[3]);
// pattern.setModule(elements[4]);
pattern.setName(elements[5]);
security.setCredentialStoreRef(pattern);
dependenciesSet.add(JndiRefsConfigData.getDependencyString(patternString));
}
String prefix = "security" + "." + "defaultSubject" + ".";
if (map.containsKey(prefix + "realm")) {
if (security.isSetDefaultSubject()) {
security.unsetDefaultSubject();
}
String realm = request.getParameter(prefix + "realm");
String id = request.getParameter(prefix + "id");
if (!isEmpty(realm) && !isEmpty(id)) {
GerSubjectInfoType runAsSubject = security.addNewDefaultSubject();
runAsSubject.setRealm(realm);
runAsSubject.setId(id);
}
}
parameterName = "security" + "." + "doasCurrentCaller";
if ("true".equalsIgnoreCase(request.getParameter(parameterName))) {
security.setDoasCurrentCaller(true);