EMS はアクティベーション情報に含まれるライセンスモデル属性を使用します。ライセンスの生成前にインターフェース EnforcementPayload をインプリメントしてクラスパスにその参照を含めることにより、ライセンスモデル属性の一部を変更できます。Java クラスのサンプルは次のファイルに含まれています。
<EMS_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload\
src\com\sfnt\ems\service\generator\EnforcementPayloadImpl.java
インターフェース EnforcementPayload の使い方の詳細については、(<EMS_Installation_Dir>\ems120-plugins\javadocs\overview-summary.html にある)Javadocs を参照してください。
32ビットコンピュータのデフォルトのインストールディレクトリは、C:\Program Files\SafeNet Sentinel\Sentinel EMS です。64ビットコンピュータの場合は、C:\Program Files (x86)\SafeNet Sentinel\Sentinel EMS です。
ライセンスモデル属性を変更するには、次の手順に従います。
サンプル EnforcementPayloadImpl.java に含まれている Java クラスを変更してコンパイルします。この Java クラスは次のインターフェースをインプリメントします。
com.sfnt.ems.services.generator.EnforcementPayload
/*interface source code*/ package com.sfnt.ems.service.generator; import java.util.Map; import java.util.Set; import com.sfnt.ems.service.generator.model.LicenseModelAttribute; import com.sfnt.ems.service.generator.model.Payload; public interface EnforcementPayload { public Set<LicenseModelAttribute> modifyGeneratorAttributes(Payload payload); } |
<EMS_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload\src\com\sfnt\ems\service\generator\EnforcementPayloadImpl.java
サンプルコードは次の処理を実行します。
%EMSSERVER_HOME%\webapps\ems\WEB-INF\classes\com\sfnt\ems\service\generator
<Ems_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload/EnforcementPayloadBuild.xml
<Ems_Install_Dir>\ems120-plugins\javadocs
コマンドプロンプトで、次のディレクトリに移動し、Ant を実行します。
<Ems_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload
次のディレクトリに、適切なパッケージ構造の EnforcementPayloadImpl.class が作成されます。
<Ems_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload\classes
<Ems_Install_Dir>\ems120-plugins\samples\SampleEnforcementPayload\
|
|
http://www.safenet-inc.com/Support | |
© Copyright 2013, SafeNet, Inc. All rights reserved. | |