/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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, add 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: StaticAttributes.java,v 1.2 2009/09/21 18:33:45 dillidorai Exp $
*
* Portions Copyrighted 2012-2015 ForgeRock AS.
*/
/**
* Interface specification for entitlement <code>ResourceAttribute</code>
*/
/**
* Constructs an instance of StaticAttributes
*/
public StaticAttributes() {
}
return propertyName;
}
this.propertyName = propertyName;
}
return propertyValues;
}
}
/**
* Returns resoruce attributes aplicable to the request
*
* @param adminSubject Subject who is performing the evaluation.
* @param realm Realm name.
* @param subject Subject who is under evaluation.
* @param resourceName Resource name.
* @param environment Environment parameters.
* @return applicable resource attributes
* @throws com.sun.identity.entitlement.EntitlementException
* if can not get condition decision
*/
throws EntitlementException {
return map;
}
/**
* Returns the state of this object.
*
* @return state of this object.
*/
try {
return toJSONObject().toString();
} catch (JSONException ex) {
return "";
}
}
/**
* Sets the state of the object.
*
* @param s state of the object.
*/
try {
}
} catch (JSONException ex) {
}
}
}
/**
* Returns JSONObject mapping of the object
* @return JSONObject mapping of the object
*/
return jo;
}
/**
* Returns string representation of the object
* @return string representation of the object
*/
try {
} catch (JSONException e) {
}
return s;
}
/**
* Sets OpenAM policy response provider name of the object
* @param pResponseProviderName response provider name as used in OpenAM
* policy, this is relevant only when StaticAttributes was created
* from OpenAM policy Subject
*/
}
/**
* Returns OpenAM policy response provider name of the object
* @return response provider name as used in OpenAM policy,
* this is relevant only when StaticAttributes was created from
* OpenAM policy Subject
*/
return pResponseProviderName;
}
/**
* Returns <code>true</code> if the passed in object is equal to this object
* @param obj object to check for equality
* @return <code>true</code> if the passed in object is equal to this object
*/
return false;
}
return false;
}
if (propertyName == null) {
return false;
}
} else {
return false;
}
}
if (propertyValues == null) {
return false;
}
} else {
return false;
}
}
if (pResponseProviderName == null) {
return false;
}
} else {
if (!pResponseProviderName.equals(
return false;
}
}
return true;
}
/**
* Returns hash code of the object
* @return hash code of the object
*/
public int hashCode() {
int code = 1;
if (propertyName != null) {
}
if (propertyValues != null) {
}
if (pResponseProviderName != null) {
}
return code;
}
}