public static LocalAuthenticatorConfig build(OMElement localAuthenticatorConfigOM) { LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig(); return new LocalAuthenticatorConfig(); localAuthenticatorConfig.setName(member.getText()); } else if ("DisplayName".equals(member.getLocalName())) { localAuthenticatorConfig.setDisplayName(member.getText()); } else if ("IsEnabled".equals(member.getLocalName())) { if (member.getText() != null && member.getText().trim().length() > 0) { localAuthenticatorConfig.setEnabled(Boolean.parseBoolean(member.getText())); localAuthenticatorConfig.setProperties(propertiesArr);
public LocalAuthenticatorConfig getLocalAuthenticatorByName(String name) { for (LocalAuthenticatorConfig localAuthenticator : localAuthenticators) { if (localAuthenticator.getName().equals(name)) { return localAuthenticator; } } return null; }
&& ApplicationConstants.LOCAL_IDP_NAME.equals(authenticatorInfo .get("idpName"))) { LocalAuthenticatorConfig localAuthenticator = new LocalAuthenticatorConfig(); localAuthenticator.setName(authenticatorInfo .get(ApplicationConstants.IDP_AUTHENTICATOR_NAME)); localAuthenticator.setDisplayName(authenticatorInfo .get(ApplicationConstants.IDP_AUTHENTICATOR_DISPLAY_NAME)); stepLocalAuth.get(step).add(localAuthenticator);
.getInstance().getLocalAuthenticators(); for (LocalAuthenticatorConfig localAuthenticatorConfig : localAuthenticators) { if (authenticatorConfig.getName().equals(localAuthenticatorConfig.getName()) && authenticators.contains(localAuthenticatorConfig.getDisplayName())) { removeOption = false; break;
.next()); LocalAuthenticatorConfig localAuthConfig = LocalAuthenticatorConfig .build(localAuthenticatorConfigsElement); if (localAuthConfig != null) { localAuthenticatorConfigsArrList.add(localAuthConfig);
&& ApplicationConstants.LOCAL_IDP_NAME.equals(authenticatorInfo .get("idpName"))) { LocalAuthenticatorConfig localAuthenticator = new LocalAuthenticatorConfig(); localAuthenticator.setName(authenticatorInfo .get(ApplicationConstants.IDP_AUTHENTICATOR_NAME)); localAuthenticator.setDisplayName(authenticatorInfo .get(ApplicationConstants.IDP_AUTHENTICATOR_DISPLAY_NAME)); stepLocalAuth.get(step).add(localAuthenticator);
.getInstance().getLocalAuthenticators(); for (LocalAuthenticatorConfig localAuthenticatorConfig : localAuthenticators) { if (authenticatorConfig.getName().equals(localAuthenticatorConfig.getName()) && authenticators.contains(localAuthenticatorConfig.getDisplayName())) { removeOption = false; break;
.next()); LocalAuthenticatorConfig localAuthConfig = LocalAuthenticatorConfig .build(localAuthenticatorConfigsElement); if (localAuthConfig != null) { localAuthenticatorConfigsArrList.add(localAuthConfig);
public static LocalAuthenticatorConfig build(OMElement localAuthenticatorConfigOM) { LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig(); return new LocalAuthenticatorConfig(); localAuthenticatorConfig.setName(member.getText()); } else if ("DisplayName".equals(member.getLocalName())) { localAuthenticatorConfig.setDisplayName(member.getText()); } else if ("IsEnabled".equals(member.getLocalName())) { if (member.getText() != null && member.getText().trim().length() > 0) { localAuthenticatorConfig.setEnabled(Boolean.parseBoolean(member.getText())); localAuthenticatorConfig.setProperties(propertiesArr);
ApplicationConstants.LOCAL_IDP_NAME, lclAuthenticator.getName()); if (authenticatorId < 0) { authenticatorId = addAuthenticator(connection, tenantID, ApplicationConstants.LOCAL_IDP_NAME, lclAuthenticator.getName(), lclAuthenticator.getDisplayName()); + " Step Order: " + authStep.getStepOrder() + " IdP: " + ApplicationConstants.LOCAL_IDP + " Authenticator: " + lclAuthenticator.getName());
public LocalAuthenticatorConfig getLocalAuthenticatorByName(String name) { for (LocalAuthenticatorConfig localAuthenticator : localAuthenticators) { if (localAuthenticator.getName().equals(name)) { return localAuthenticator; } } return null; }
LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig(); localAuthenticatorConfig.setName(authenticator.getName()); localAuthenticatorConfig.setProperties(configProperties); localAuthenticatorConfig.setDisplayName(authenticator.getFriendlyName()); ApplicationAuthenticatorService.getInstance().addLocalAuthenticator(localAuthenticatorConfig); } else if (authenticator instanceof FederatedApplicationAuthenticator) {
ApplicationConstants.LOCAL_IDP_NAME, lclAuthenticator.getName()); if (authenticatorId < 0) { authenticatorId = addAuthenticator(connection, tenantID, ApplicationConstants.LOCAL_IDP_NAME, lclAuthenticator.getName(), lclAuthenticator.getDisplayName()); + " Step Order: " + authStep.getStepOrder() + " IdP: " + ApplicationConstants.LOCAL_IDP + " Authenticator: " + lclAuthenticator.getName());
private void validateLocalAuthenticatorConfig(List<String> validationMsg, Map<String, Property[]> allLocalAuthenticators, AtomicBoolean isAuthenticatorIncluded, AuthenticationStep authenticationStep) { for (LocalAuthenticatorConfig localAuth : authenticationStep.getLocalAuthenticatorConfigs()) { if (!allLocalAuthenticators.keySet().contains(localAuth.getName())) { validationMsg.add(String.format(AUTHENTICATOR_NOT_AVAILABLE, localAuth.getName())); } else if (!isAuthenticatorIncluded.get()) { Property[] properties = allLocalAuthenticators.get(localAuth.getName()); if (properties.length == 0) { isAuthenticatorIncluded.set(true); } else { for (Property property : properties) { if (!(IS_HANDLER.equals(property.getName()) && Boolean.valueOf(property.getValue()))) { isAuthenticatorIncluded.set(true); } } } } } }
LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig(); localAuthenticatorConfig.setName(authenticator.getName()); localAuthenticatorConfig.setProperties(configProperties); localAuthenticatorConfig.setDisplayName(authenticator.getFriendlyName()); ApplicationAuthenticatorService.getInstance().addLocalAuthenticator(localAuthenticatorConfig); } else if (authenticator instanceof FederatedApplicationAuthenticator) {
if (!allLocalAuthenticators.keySet().contains(localAuth.getName())) { validationMsg.add(String.format(AUTHENTICATOR_NOT_AVAILABLE, localAuth.getName())); } else if (!isAuthenticatorIncluded.get()) { Property[] properties = allLocalAuthenticators.get(localAuth.getName()); if (properties.length == 0) { isAuthenticatorIncluded.set(true);
LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig(); localAuthenticatorConfig.setName(authenticator.getName()); localAuthenticatorConfig.setProperties(configProperties); localAuthenticatorConfig.setDisplayName(authenticator.getFriendlyName()); ApplicationAuthenticatorService.getInstance().addLocalAuthenticator(localAuthenticatorConfig); } else if (authenticator instanceof FederatedApplicationAuthenticator) {
protected void loadLocalAuthenticators(AuthenticationStep authenticationStep, StepConfig stepConfig) { LocalAuthenticatorConfig[] localAuthenticators = authenticationStep.getLocalAuthenticatorConfigs(); if (localAuthenticators != null) { IdentityProvider localIdp = new IdentityProvider(); localIdp.setIdentityProviderName(FrameworkConstants.LOCAL_IDP_NAME); // assign it to the step for (LocalAuthenticatorConfig localAuthenticator : localAuthenticators) { String actualAuthenticatorName = localAuthenticator.getName(); loadStepAuthenticator(stepConfig, localIdp, actualAuthenticatorName); } } }
LocalAuthenticatorConfig localAuth = new LocalAuthenticatorConfig(); localAuth.setName(BASIC_AUTHENTICATOR); localAuth.setDisplayName(BASIC); localAuth.setEnabled(true);
private void loadLocalAuthenticators(AuthenticationStep authenticationStep, StepConfig stepConfig) { LocalAuthenticatorConfig[] localAuthenticators = authenticationStep .getLocalAuthenticatorConfigs(); if (localAuthenticators != null) { IdentityProvider localIdp = new IdentityProvider(); localIdp.setIdentityProviderName(FrameworkConstants.LOCAL_IDP_NAME); // assign it to the step for (LocalAuthenticatorConfig localAuthenticator : localAuthenticators) { String actualAuthenticatorName = localAuthenticator.getName(); loadStepAuthenticator(stepConfig, localIdp, actualAuthenticatorName); } } }