1460336487-1b2eddca-569c-4032-902b-85b4a3ebcbd9

A method and apparatus is disclosed for optic signal power control to maintain a desired or optimum optic signal power level. In one distributed environment, the permission model of JAAS is replaced or enhanced with role-based access control. The component may act as a variable optical attenuator device in which a MEMS shutter attenuates an optical signal passing between two waveguides, or may be an optical switch in which a MEMS mirror is used to switch an optical signal from a first waveguide between at least two other waveguides which intersect with the first waveguide at the trench.