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.

General APIAssert a subject as caller identity.ParametercallerDescriptionThe caller name of the subject.ReturnsReturnsvoid clearAssertion ()Clear an assertion made by any previous API call of asserting. The caller before theassertion is made will be restored as the caller for next invocation. This API shall beused in conjunction with asserting. Mismatching calls of these two methods may causeundesired caller identities or unexpected exceptions.const vbsec::Subject* getPeerSubject ()Accesses the peer subject.The pointer to a Subject object representing the peer.const vbsec::Subject* getCallerSubject ()Accesses the caller subject.The pointer to a Subject object representing the caller.const vbsec::SSLSession* getPeerSession (CORBA::Object* peer)Get the peer SSLSession. This call returns the SSLSession of the client peer for thisrequest. This method cannot be called outside the context of a request.ParameterpeerDescriptionA peer object retrieved from the bind.ReturnsExceptionsThe pointer to a SSLSession currently established.BAD_OPERATION is thrown if this method is called outside the context of a request or whencalled in a request context where the request was received over a clear TCPconnection.class vbsec::ContextContext represents the security context under which a client will execute. This class canbe obtained through the following code:CORBA::Object_var obj = orb->resolve_initial_references("VBSecurityContext");Context* c = dynamic_cast(obj.in());Include FileThe vbsec.h file should be included when you use this class.Methodsvoid login()Login into the system. This logs-in to the realms defined in the propertyvbroker.security.loginRealms. It traverses the list of realms specified and authenticatesagainst each realm.void login (vbsec::CallbackHandler& handler)96 VisiBroker Security Guide

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

Saved successfully!

Ooh no, something went wrong!