peer_is_allowed_to_use_identity


Description:

public virtual bool peer_is_allowed_to_use_identity (SecurityContext peer_ctx, SecurityContext owner_ctx, List<SecurityContext> identity_acl)

Checks if specified peer is allowed to access the specified identity.

The default implementation goes over items in identity_acl, using check to check them against peer_ctx.

Parameters:

this

object instance.

peer_ctx

security context of the peer connection.

owner_ctx

security context of the identity owner.

identity_acl

access control list for the identity in question. Includes the owner_ctx as well.

Returns:

true if the peer is allowed to use the identity, false otherwise.