/usr/include/arc/security/ArcPDP/attr/AttributeValue.h is in nordugrid-arc-dev 4.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #ifndef __ARC_SEC_ATTRIBUTEVALUE_H__
#define __ARC_SEC_ATTRIBUTEVALUE_H__
#include <string>
namespace ArcSec {
///Interface for containing different type of <Attribute/> node for both policy and request
/**<Attribute/> contains different "Type" definition; Each type of <Attribute/> needs
*different approach to compare the value.
*Any specific class which is for processing specific "Type" shoud inherit this class.
*The "Type" supported so far is: StringAttribute,
*DateAttribute, TimeAttribute, DurationAttribute, PeriodAttribute, AnyURIAttribute,
*X500NameAttribute
*/
class AttributeValue {
public:
AttributeValue(){};
virtual ~AttributeValue(){};
/**Evluate whether "this" equale to the parameter value */
virtual bool equal(AttributeValue* value, bool check_id = true) = 0;
//virtual int compare(AttributeValue* other){};
/**encode the value in a string format*/
virtual std::string encode() = 0;
/**Get the DataType of the <Attribute>*/
virtual std::string getType() = 0;
/**Get the AttributeId of the <Attribute>*/
virtual std::string getId() = 0;
};
} // namespace ArcSec
#endif /* __ARC_SEC_ATTRIBUTEVALUE_H__ */
|