bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The contents of this file are subject to the terms
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * of the Common Development and Distribution License
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * (the License). You may not use this file except in
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You can obtain a copy of the License at
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * opensso/legal/CDDLv1.0.txt
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * See the License for the specific language governing
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * permission and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * When distributing Covered Code, include this CDDL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Header Notice in each file and include the License file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * at opensso/legal/CDDLv1.0.txt.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * If applicable, add the following below the CDDL Header,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * with the fields enclosed by brackets [] replaced by
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * your own identifying information:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * $Id: AMConstants.java,v 1.6 2009/01/28 05:34:47 ww203982 Exp $
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington * Portions Copyright 2015 ForgeRock AS.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterpackage com.iplanet.am.sdk;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport java.util.HashSet;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport java.util.Set;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtonimport org.forgerock.opendj.ldap.SearchScope;
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * This interface defines constants used by <code>AM SDK</code>.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * @supported.all.api
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * <br>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * @deprecated As of Sun Java System Access Manager 7.1.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterpublic interface AMConstants {
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // search scope
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Specifies search scope to be just for the object specified
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington public static final int SCOPE_BASE = SearchScope.BASE_OBJECT.intValue();
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Specifies search scope to be a one level search.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington public static final int SCOPE_ONE = SearchScope.SINGLE_LEVEL.intValue();
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Specifies search scope to be a sub tree search.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington public static final int SCOPE_SUB = SearchScope.WHOLE_SUBTREE.intValue();
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The above constants SCOPE_BASE, SCOPE_ONE, and SCOPE_SUB should be kept
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * in synch with the corresponding constants defined in
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * com.iplanet.ums.SearchControl
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Subscribable attribute
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster public static String SUBSCRIBABLE_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-group-subscribable";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster /**
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Unique member attribute
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster public static final String UNIQUE_MEMBER_ATTRIBUTE = "uniquemember";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // All Protected Constants used with in SDK package
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Sting Constants NOT Public
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Attributes
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String STATIC_GROUP_DN_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-static-group-dn";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String CONTAINER_SUPPORTED_TYPES_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "sunIdentityServerSupportedTypes";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String INET_DOMAIN_STATUS_ATTRIBUTE = "inetdomainstatus";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String SERVICE_STATUS_ATTRIBUTE = "sunRegisteredServiceName";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String ROLE_MANAGED_CONTAINER_DN_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-role-managed-container-dn";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String UNIQUE_ATTRIBUTE_LIST_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "sunnamespaceuniqueattrs";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_PASSWORD_ATTRIBUTE = "userpassword";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_ENCRYPTED_PASSWORD_ATTRIBUTE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "encrypteduserpassword";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String REQUIRED_SERVICES_ATTR = "iplanet-am-required-services";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_SEARCH_RETURN_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-user-return-attribute";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String DCT_ENABLED_ATTR = "iplanet-am-admin-console-dctree";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String DCT_ATTRIBUTE_LIST_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-dctree-attr-list";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String ADMIN_GROUPS_ENABLED_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-compliance-admin-groups";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String COMPLIANCE_USER_DELETION_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-compliance-user-deletion";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String COMPLIANCE_SPECIAL_FILTER_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-special-search-filters";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String ADMIN_ROLE_ATTR = "adminrole";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String EMAIL_ATTRIBUTE = "mail";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String INET_DOMAIN_STATUS_ATTR = "inetdomainstatus";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String DOMAIN_ADMINISTRATORS = "DomainAdministrators";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String DOMAIN_HELP_DESK_ADMINISTRATORS =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "DomainHelpDeskAdministrators";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String INET_ADMIN_OBJECT_CLASS = "inetadmin";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Pre Post Processing Impl attribute
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String PRE_POST_PROCESSING_MODULES_ATTR =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-pre-post-processing-modules";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // notification attribute names
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_CREATE_NOTIFICATION_LIST =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-user-create-notification-list";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_DELETE_NOTIFICATION_LIST =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-user-delete-notification-list";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_MODIFY_NOTIFICATION_LIST =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-user-modify-notification-list";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String FILTER_ATTR_NAME = "nsRoleFilter";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USERID_PASSWORD_VALIDATION_CLASS =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-user-password-validation-class";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String INVALID_USERID_CHARACTERS =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iplanet-am-admin-console-invalid-chars";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Other Constants
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String CONTAINER_DEFAULT_TEMPLATE_ROLE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "ContainerDefaultTemplateRole";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Service Names
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String ADMINISTRATION_SERVICE =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "iPlanetAMAdminConsoleService";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Properties
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String CACHE_ENABLED_DISABLED_KEY =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "com.iplanet.am.sdk.caching.enabled";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String CACHE_MAX_SIZE_KEY = "com.iplanet.am.sdk.cache.maxSize";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Plugin interface for processing user create/delete/modify
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String USER_ENTRY_PROCESSING_IMPL =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster "com.iplanet.am.sdk.userEntryProcessingImpl";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // COS Attribute type could default, operational, override,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // For policy attributes, will use "override" since user won't be
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // able to customize them
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // suffix for policy COSDefinition, i.e. &lt;serviceName>Policy
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String POLICY_SUFFIX = "Policy";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String POLICY_COSATTR_TYPE = " override";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // For other attributes, user will be able to customize them
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // so use default
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final String OTHER_COSATTR_TYPE = " default";
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Other constant values
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final int ADD_MEMBER = 1;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster static final int REMOVE_MEMBER = 2;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster // Constant for removing attribute
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster public static final Set REMOVE_ATTRIBUTE = new HashSet();
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster}