IdUtils.java revision a093731116a8c24d49b903df7602cf586e499b45
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * The contents of this file are subject to the terms
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * of the Common Development and Distribution License
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * (the License). You may not use this file except in
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * compliance with the License.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * You can obtain a copy of the License at
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * https://opensso.dev.java.net/public/CDDLv1.0.html or
dbe875a112523740569be457b9c6f4757fa3bb20Phill Cunnington * See the License for the specific language governing
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * permission and limitations under the License.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * When distributing Covered Code, include this CDDL
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Header Notice in each file and include the License file
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * If applicable, add the following below the CDDL Header,
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * with the fields enclosed by brackets [] replaced by
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * your own identifying information:
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * "Portions Copyrighted [year] [name of copyright owner]"
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * $Id: IdUtils.java,v 1.34 2009/11/20 23:52:54 ww203982 Exp $
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Portions Copyrighted 2011-2014 ForgeRock AS
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Portions Copyrighted 2014 Nomura Research Institute, Ltd
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteimport com.iplanet.am.sdk.AMDirectoryAccessFactory;
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteimport com.iplanet.am.sdk.common.IDirectoryServices;
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteimport com.sun.identity.authentication.service.AuthD;
dbe875a112523740569be457b9c6f4757fa3bb20Phill Cunningtonimport com.sun.identity.common.CaseInsensitiveHashMap;
dbe875a112523740569be457b9c6f4757fa3bb20Phill Cunningtonimport com.sun.identity.security.AdminTokenAction;
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteimport com.sun.identity.sm.OrganizationConfigManager;
public final class IdUtils {
new CaseInsensitiveHashMap());
new CaseInsensitiveHashMap());
initialize();
protected static void initialize() {
} catch (SMSException e) {
"IdUtils.initialize: Loading default types.", e);
new IdUtilsListener());
} catch (SMSException e) {
"IdUtils.initialize: Register notification", e);
throws IdRepoException {
return (null);
} catch (Exception e) {
return (null);
return (null);
return returnType;
return (id);
+ orgIdentifier);
args);
boolean foundOrg = false;
foundOrg = true;
orgIdentifier)) {
if (!foundOrg) {
foundOrg = true;
if (!foundOrg &&
if (!foundOrg) {
args);
return id;
protected static void clearOrganizationNamesCache() {
boolean isActive = true;
args);
isActive = true;
args);
return isActive;
private static void initializeForGetIdentity() {
private static void initializeSpecialUsers() {
return ide;
private static void loadDefaultTypes() {
return memberSet;
throws IdRepoException {
return (username);
} catch (IdRepoException e) {
} catch (SSOException e) {
return theID;
initialize();
initialize();