Chapter 35 Role and Authorization Service Components
You can install your own service component that performs access control based on role membership. The component must implement the CtsSecurity::RoleService IDL interface.
Use Jaguar Manager to install the role service component in the server. Refer to Chapter 33, "Creating Service Components" for information about service components.
Use Jaguar Manager to enable the authorization service. You
can write an implementation of the RoleService interface
and configure a server-level role service by setting the com.sybase.jaguar.server.roleservice
property to
the URL that accesses the component that implements this interface.
Set this property using the All Properties tab of the Server Properties
window.
There are two accepted forms for the URL:
com.sybase.jaguar.server.roleservice
=Security/RoleService where Security is
the name of the Jaguar package that contains the RoleService component
that implements the RoleService interface. pseudo://java/JavaClass/JaguarPackage/JaguarComponent
pseudo://cpp/SharedLibraryName/JaguarPackage/JaguarComponent
pseudo://cpp/libAuthorize/Security/RoleService
interface RoleService {
boolean isMember(
in CtsSecurity::SessionInfo sessionInfo,
in string role);
};
isMember checks if the authenticated client is a member of the role. The client's credentials are obtained from sessionInfo. Membership checks are first performed by the server and if the user is not a member of the given role, isMember is invoked. The result from this method is cached by the server, where it can be referenced for the same client/role combination, provided the internal cache has the relevant information.
For more information, see the CtsSecurity::RoleService IDL interface documentation.
Copyright © 2000 Sybase, Inc. All rights reserved. |