Configuring the Basic Security Service

This page explains how you can configure the Basic Security Service, either by config string or by fluent interface. For more information about the security service see here.

Config String

With the config string the following options can be configured:
  • security.policy: Configures which security policy is used by the security service. The possible values are:
    • Permissive: Anonymous users are allowed (can access all workers/ports that are not restricted to certain roles). This is the default value.
    • Restrictive: No anonymous users are allowed.
  • security.store: Defines where the users are stored (if they are stored in an xml file). If this property is set, the users will automatically be loaded from there.
Here is an example:
var space = new XcoAppSpace("tcp.port=9000;security.policy=Restrictive;security.store=users.xml");

Fluent Inferface

The fluent interface provides methods equal to the config string elements:
  • WithPolicy(XcoSecurityPolicy policy): Configures which security policy is used by the security service. The possible values are as defined above.
  • WithStorePath(string path): Defines where the users are stored (if they are stored in an xml file). If this property is set, the users will automatically be loaded from there.
Here is an example:
XcoAppSpace space = XcoAppSpace.Configure.UsingService(new XcoBasicSecurityService()).WithPolicy(XcoSecurityPolicy.Restrictive).WithStorePath("users.xml");

Last edited Feb 22, 2010 at 4:00 PM by thomass, version 2

Comments

No comments yet.