ReferralPrivilegeManager.java revision c49468bbfa37132e6989d263741ca8c3b436f8f4
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, addReferral the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ReferralPrivilegeManager.java,v 1.7 2010/01/20 17:01:35 veiming Exp $
*/
/**
* Portions Copyrighted 2012 ForgeRock Inc
*/
/**
* Referral Privilege Manager manages referral privilege.
*/
public final class ReferralPrivilegeManager {
private Subject adminSubject;
/**
* Constructor.
*
* @param realm Realm.
* @param subject subject to initilialize the privilege manager with
*/
this.adminSubject = subject;
}
/**
* Adds referral privilege.
*
* @param referral Referral privilege.
* @throws EntitlementException if privilege cannot be added.
*/
throws EntitlementException {
if (principalName != null) {
}
}
throws EntitlementException {
}
}
}
}
private void validateReferral(
res += "*";
}
return;
}
}
}
throws EntitlementException {
}
}
}
/**
* Returns a referral privilege.
*
* @param name Name for the referral privilege to be returned
* @throws EntitlementException if referral privilege is not found.
*/
throws EntitlementException {
}
/**
* Removes a referral privilege.
*
* @param name name of referral privilege to be removed.
* @throws EntitlementException if referral privilege cannot be removed.
*/
}
}
throws EntitlementException {
}
}
}
/**
* Modifies a referral privilege.
*
* @param referral the referral privilege to be modified
* @throws EntitlementException if privilege cannot be modified.
*/
throws EntitlementException {
}
}
}
}
/**
* Returns a set of referral privilege names for a given search criteria.
*
* @param filter Set of search filter.
* @param searchSizeLimit Search size limit.
* @param searchTimeLimit Search time limit in seconds.
* @return a set of referral privilege names for a given search criteria.
* @throws EntitlementException if search failed.
*/
int searchSizeLimit,
int searchTimeLimit
) throws EntitlementException {
false, false);//TODO Search size and time limit
}
/**
* Returns a set of privilege names for a given search criteria.
*
* @param filter Set of search filter.
* @return a set of privilege names for a given search criteria.
* @throws EntitlementException if search failed.
*/
) throws EntitlementException {
//TODO Search size and time limit
}
protected void notifyPrivilegeChanged(
if (m != null) {
}
}
if (m != null) {
}
}
}
private void combineMap(
) {
}
}
}
}
/**
* Returns the referred privileges for a given realm.
*/
) throws EntitlementException {
return Collections.EMPTY_MAP;
}
}
}
return results;
}
) throws EntitlementException {
if (r.equalsIgnoreCase(targetRealm)) {
break;
}
}
}
return results;
}
}