Skip to main content

ERUCES::TEACLInfo

#include <teacl.h>

The TEACLInfo class manages an ACL entry for each TTag.

The TEACLInfo class represents a TTag access control list (ACL). A single TEACLInfo object holds the TTag data together with the access rights granted to each principal, one TEACLEntry per principal; the relationship between TEACLInfo and TEACLEntry is one to many.

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance​

Public Member Functions​

MemberDescription
TEACLInfo()The TEACLInfo constructor is the default class constructor.
TEACLInfo(const TEACLInfo &)The TEACLInfo constructor copies an object.
TEACLInfo & operator=(const TEACLInfo &)The = operator assigns a deep copy of the source's implementation object to this object (self-assignment safe; the previous implementation object is freed).
~TEACLInfo()The TEACLInfo destructor is the class destructor.
void setHiddenLink(const _TESTD string &hl, bool decode=false)The setHiddenLink method sets a TTag in a TEACLInfo object.
void getHiddenLink(_TESTD string &hl, bool encode=false) constThe getHiddenLink method gets a TTag from a TEACLInfo object.
void setACLId(te_oid id)The setACLID method sets a unique identifier for an access control list (ACL).
te_oid getACLId() constThe getACLId method gets an access control list identifier.
void setKeyExpirationFlag(uint32_t flag)The setKeyExpirationFlag method sets a key expiration status flag.
uint32_t getKeyExpirationFlag() constThe getKeyExpirationFlag method gets a key expiration status flag.
void setCreationTimestamp(time_t t)The setCreationTimestamp method sets a timestamp indicating when a TEACLInfo object was created.
time_t getCreationTimestamp() constThe getCreationTimestamp method gets the timestamp issued when a TEACLInfo object was created.
uint32_t EntryCount() constThe entryCount method gets the number of ACL entries in a TEACLInfo object.
void getEntries(TEObjectContainer &container) constThe getEntries method gets a copy of all ACL entries in a TEACLInfo object.
bool addEntry(const TEACLEntry &entry)The addEntry method adds an ACL entry to a TEACLInfo object.
bool removeEntry(const TEACLEntry &entry)The removeEntry method removes an ACL entry from a TEACLInfo object.
void clearEntry()The clearEntry method clears all ACL entries from a TEACLInfo object.
TEACLEntry operator[](_TESTD pair< uint32_t, te_oid > pid)The TEACLEntry operator[] returns a pointer to a TEACLEntry object at the position indicated by the given system ID and principal ID.
const TEACLEntry operator[](_TESTD pair< uint32_t, te_oid > pid) constThe TEACLEntry operator returns a constant pointer to the object at the position indicated by the given index.
TEObject * clone() constThe clone method clones a TEACLInfo object, including all ACL entries in the object.

Member Function Documentation​

TEACLInfo()​

The TEACLInfo constructor is the default class constructor.

TEACLInfo(const TEACLInfo &)​

The TEACLInfo constructor copies an object.

TEACLInfo & operator=(const TEACLInfo &)​

The = operator assigns a deep copy of the source's implementation object to this object (self-assignment safe; the previous implementation object is freed).

TE81-448 (W36 round 1): until this round the implicit member copied the pointer, so the assignee and the source freed one object twice.

~TEACLInfo()​

The TEACLInfo destructor is the class destructor.

void setHiddenLink(const _TESTD string &hl, bool decode=false)​

The setHiddenLink method sets a TTag in a TEACLInfo object.

Parameters

ParameterDescription
hlA string representing the TTag to be set.
decodeA boolean value flag indicating whether the TTag is Base64 encoded; TRUE = TTag is Base64 encoded and must be decoded, FALSE = TTag is not Base64 encoded.

The getHiddenLink method gets a TTag from a TEACLInfo object.

Parameters

ParameterDescription
hlA string representing the returned TTag data.
encodeA boolean value flag indicating whether the TTag is Base64 encoded; TRUE = TTag is Base64 encoded, FALSE = TTag is not Base64 encoded.

void setACLId(te_oid id)​

The setACLID method sets a unique identifier for an access control list (ACL).

Parameters

ParameterDescription
idThe ACL ID to be set.

te_oid getACLId() const​

The getACLId method gets an access control list identifier.

Returns: Returns an ACL ID.

void setKeyExpirationFlag(uint32_t flag)​

The setKeyExpirationFlag method sets a key expiration status flag.

Parameters

ParameterDescription
flagThe expiration status flag to be set; 1 = key has expired, 0 = key has not expired.

uint32_t getKeyExpirationFlag() const​

The getKeyExpirationFlag method gets a key expiration status flag.

Returns: Returns a key expiration status flag; 1 = key has expired, 0 = key has not expired.

void setCreationTimestamp(time_t t)​

The setCreationTimestamp method sets a timestamp indicating when a TEACLInfo object was created.

Parameters

ParameterDescription
tA timestamp indicating when a TEACLInfo object was created.

time_t getCreationTimestamp() const​

The getCreationTimestamp method gets the timestamp issued when a TEACLInfo object was created.

Returns: Returns a TEACLInfo object's creation timestamp.

uint32_t EntryCount() const​

The entryCount method gets the number of ACL entries in a TEACLInfo object.

Returns: The number of ACL entries in a TEACLInfo object.

void getEntries(TEObjectContainer &container) const​

The getEntries method gets a copy of all ACL entries in a TEACLInfo object.

Parameters

ParameterDescription
containerA container to hold the ACL entries; contents must be TEACLEntry objects.

bool addEntry(const TEACLEntry &entry)​

The addEntry method adds an ACL entry to a TEACLInfo object.

Parameters

ParameterDescription
entryThe ACL entry to be added.

Returns: Returns a boolean value indicating if the ACL entry has been added to the ACL object successfully.

bool removeEntry(const TEACLEntry &entry)​

The removeEntry method removes an ACL entry from a TEACLInfo object.

Parameters

ParameterDescription
entryThe entry to be removed.

Returns: Returns a boolean value indicating if the entry has been removed from the TEACLInfo object successfully.

void clearEntry()​

The clearEntry method clears all ACL entries from a TEACLInfo object.

TEACLEntry operator[](_TESTD pair< uint32_t, te_oid > pid)​

The TEACLEntry operator[] returns a pointer to a TEACLEntry object at the position indicated by the given system ID and principal ID.

Parameters

ParameterDescription
pidA pair consisting of a system ID and a principal ID.

Returns: Returns a pointer to the TEACLEntry object.

const TEACLEntry operator[](_TESTD pair< uint32_t, te_oid > pid) const​

The TEACLEntry operator returns a constant pointer to the object at the position indicated by the given index.

Parameters

ParameterDescription
pidA pair consisting of a system ID and a principal ID.

Returns: Returns a constant pointer to the TEACLEntry object.

TEObject * clone() const​

The clone method clones a TEACLInfo object, including all ACL entries in the object.

Returns: Returns a cloned TEACLInfo object.

Examples​