開発するコンポーネントを保護します。コンポーネントは、メソッドを持つインターフェースを実装します。Service Component Architecture (SCA) 修飾子 SecurityPermission を使用して、 インターフェースまたはメソッドを保護します。
WebSphere ESB for z/OS® のコンポーネントを開発する際には、プラットフォーム固有の機能 (System Authorization Facility など) を使用してセキュリティーを管理できることを覚えておいてください。
<?xml version="1.0" encoding="UTF-8"?> <scdl:component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://www.ibm.com/xmlns/prod/websphere/scdl/java/6.0.0" xmlns:ns1="http://sample.recovery.security/Itarget" xmlns:scdl="http://www.ibm.com/xmlns/prod/websphere/scdl/6.0.0" xmlns:wsdl="http://www.ibm.com/xmlns/prod/websphere/scdl/wsdl/6.0.0" displayName="secure" name="Component1"> <interfaces> <interface xsi:type="wsdl:WSDLPortType" portType="ns1:Itarget"> <method name="onewayinvoke"> <scdl:interfaceQualifier xsi:type="scdl:SecurityPermission" role="manager"/> </method> </interface> </interfaces> <references/> <implementation xsi:type="java:JavaImplementation" class="sca.component.java.impl.Component1Impl1"> </implementation> </scdl:component>