| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.preferences.ui.page; |
| |
| import org.eclipse.osbp.preferences.Preference; |
| import org.eclipse.osbp.preferences.ui.component.APreferencePage; |
| import org.eclipse.osbp.preferences.ui.component.Item; |
| import org.eclipse.osbp.preferences.ui.component.Type; |
| |
| public class PreferencePageAuthentication extends APreferencePage { |
| |
| public PreferencePageAuthentication() { |
| super( |
| "authentication", |
| "Configuration to Authentication Services" |
| ); |
| } |
| |
| @Override |
| protected Item[] initializeItems() { |
| return new Item[] { |
| new Item(Type.TEXT, Preference.SHOW_PRODUCT_CONFIGURATION, "Product Configuration", false), |
| new Item(""), |
| new Item(Type.TEXT, Preference.AUTHENTICATION_ORGANIZATION_ID, "Organization ID"), |
| new Item(""), |
| new Item(Type.BOOLEAN, Preference.AUTHENTICATION_AUTOLOGIN, "Enable Automatic sign-in"), |
| new Item(Type.BOOLEAN, Preference.AUTHENTICATION_NO_REMEMBER_ME, "Disable rememer-me function"), |
| new Item(Type.BOOLEAN, Preference.AUTHENTICATION_VIA_USERNAME, "Identify by username"), |
| new Item(Type.INTEGER, Preference.AUTHENTICATION_MAX_LOGIN_ATTEMPS, "Max. failed login attemps"), |
| new Item(Type.BOOLEAN, Preference.AUTHENTICATION_ENCRYPT_PASSWORDS, "Enable encryption of uncrypted passwords"), |
| //new Item(""), |
| //new Item(Type.INTEGER, Preference.DTO_REALM_PORTAL_ID, "DTO realm portal id"), |
| new Item(""), |
| //new Item(Type.INTEGER, Preference.LDAP_REALM_PORTAL_ID, "LDAP realm portal id"), |
| new Item(Type.TEXT, Preference.LDAP_CONTEXT_FACTORY_URL, "LDAP context factory url"), |
| new Item(Type.TEXT, Preference.LDAP_USER_DN_TEMPLATE, "LDAP user dn template"), |
| }; |
| } |
| } |