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::Resourcevbsec::ResourceThe Resource interface gives a generic abstraction of resource. The resource can beanything upon which the access will be made, such as a remote method of a CORBAobject, or a servlet which is essentially a resource.MethodsReturnsExceptionsvirtual std::string getName () const =0;Returns the string representation of the resource being accessed.Name of the resource.nonevbsec::PrivilegesThe Privileges class gives an abstraction of the privileges for a subject. It is thecontainer of authorization privilege attributes, such as Distinguished Name (DN)attributes, and such. The AuthorizationService makes the decision on whether thesubject has permission to access the certain resource based on the privileges object ofthe subject.The privileges object is stored inside the subject as one of the PublicCredentials. At thesame time, privileges hold one reference to the referring subject. Privileges alsocontain a DN attributes map, as well as a map of other authorization attributes.The Privileges class implements the javax.security.auth.Destroyable interface.ConstructorsArgumentsExceptionsPrivileges (const std::string& name, ::vbsec::Subject& subject);This constructor creates a privileges object with the given name and associates it withthe given subject.The method takes the following two arguments:■■noneName of the Privileges object, which is actually the associated Subject's name.The target subject.MethodsReturnsExceptionsReturnsExceptions::vbsec::Subject& getSubject() const ;This method returns the subject that the privileges object represents.The target subject.nonestd::string getSubjectName() const;This method returns the name of the associated subject object.The target subject.noneconst ::vbsec::ATTRIBUTE_MAP& getAttributes() const ;Chapter 12: Security SPI for C++ 127

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

Saved successfully!

Ooh no, something went wrong!