Local Interface SecurityLevel3::SecurityCurrent

Local Interface SecurityLevel3::SecurityCurrent

local interface SecurityCurrent
The SecurityCurrent object references thread specific data pertaining to the security service. It is used to retrieve the client's credentials during an invocation on the server side.

There is only one instance of this object per ORB instance. It is resolved by a call to

   ORB.resolve_initial_references("SecurityLevel3:SecurityCurrent");
 

Attribute Index

client_credentials
From inside the execution of a target object implementation, this attribute contains the representation of the remote client's credentials.
request_is_local
If this attribute is TRUE, the client_credentials attribute returns the credentials of the remote client no matter how deep the collocated call stack, unless of course, this request is not CSIv2 based, in which case it returns null.

Attributes

client_credentials
readonly attribute ClientCredentials client_credentials;

From inside the execution of a target object implementation, this attribute contains the representation of the remote client's credentials. This attribute is null if the client is not CSIv2 based, or the client is from a collocated call.

The value of this attribute, if not null, represents the security context with a remote CSIv2 client. If the request_is_local attribute is FALSE, the current thread of execution is directly servicing a remote request for the target object within the target's implemenation. If the request_is_local attribute is TRUE, the current thread of execution is servicing an ORB mediated call on a collocated object.

If the client is not CSIv2 based, there are no CSIv2 Client Credentials, and this attribute is null. In this case, the user should try the request_is_local

readonly attribute boolean request_is_local;

If this attribute is TRUE, the client_credentials attribute returns the credentials of the remote client no matter how deep the collocated call stack, unless of course, this request is not CSIv2 based, in which case it returns null. This attribute is TRUE if the current thread of execution is servicing a request on a collocated object. This attribute is FALSE if the current thread of execution is immediately servicing a remote request.

If this attribute is TRUE, there may or may not be a remote client. If there is a remote client and the client is CSIv2 based, the client_credentials attribute will return the credentials of the remote client.

If this attribute is FALSE, there will always be a remote client. In such case, the client_credentials attribute will return the credentials of the remote client, unless the client is not CSIv2 based.


Generated by the ORBacus IDL-to-HTML translator