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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

vbsec::PermissionCollectionvbsec::PermissionCollectionPermissionCollection represents a collection of permissions.Include fileThe vbsecspishared.h file should be included when you use this class.MethodsArgumentsReturnsbool implies (const Permission& p) constEvaluate if the PermissionCollection implies the given permission.the permission p to be evaluated.true if the PermissionCollection implies the given one, false otherwise.vbsec::RolePermissionThe RolePermission class provides the basis for authorization and trust in theVisiSecure system.ConstructorsArgumentsReturnsExceptionsRolePermission (const std::string& role)This constructor creates a RolePermission object representing a logic role.A logical role string this RolePermission object represents.A RolePermission object.noneMethodsArgumentsReturnsExceptionsReturnsExceptionsvirtual bool implies (const Permission& permission) const;This method checks whether the permission object passed in implies thisRolePermission object. The check is based on strict equality, as the method onlyreturns true (implies) when ALL the following conditions exist:1 the permission object given is an instance of RolePermission, and2 the name of the permission object given equals the name of this RolePermission.A Permission object to check.True|Falsenonevirtual std::string getActions() const;This method returns the action associated with this RolePermission.Always returns null, since there are no actions associated with a RolePermissionobject.noneChapter 12: Security SPI for C++ 131

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

Saved successfully!

Ooh no, something went wrong!