11.07.2015 Views

Borland VisiBroker® 7.0 - Borland Technical Publications

Borland VisiBroker® 7.0 - Borland Technical Publications

Borland VisiBroker® 7.0 - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

vbsec::PermissionArgumentsReturnsExceptionsAttributeCodec for interpretation. Based on the encoding method, one particularAttributeCodec consumes the attributes it understands. It may update the caller's orasserter's Privileges, or may add RolePermission directly to the subject's publiccredentials.This method takes the following arguments:■■■A set of encoded Authorization Elements.A set of caller privileges.A set of asserter privileges.This method returns nothing. Upon a successful processing, this AttributeCode objectupdates the caller's or asserter's Privileges maps as appropriate based on theinformation available in the authorization elements.Throws NoDelegationPermissionException if the assertion is not authorized.vbsec::PermissionPermission represents the authorization information to access resources. Everypermission has a name, which can be interpreted only by the actual implementation.Include fileThe vbsecspishared.h file should be included when you use this class.MethodsArgumentsReturnsArgumentsReturnsReturnsReturnsReturnsbool implies (const Permission& p) constEvaluate if the permission implies another given permission. This is used during theauthorization process to determine if the caller permissions imply the permissionsrequired by the resource. Access will be granted if the caller permissions imply therequired permission, or denied if not.the permission p to be evaluated.true if the permission implies an existing permission, false otherwise.bool operator==(const Permission& p) constChecks if the permission equals another given permission.the permission p to be evaluated.true if the permissions are equal, false otherwise.std::string getName () constGets the name of the permission.the name of the permission.std::string getActions () constGet the actions of the permission as a string. It is only interpreted by the actualimplementation.The string representation of the action for the permission.std::string toString () constGet the string representation of the permission.The string representation of the permission.130 VisiBroker Security Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!