サンプル・コード1

注:

カスタム認証コードではエラー・ロギングにlog4jを使用しないでください。以前のリリースで使用したカスタム認証コードでlog4jを使用している場合は、このリリースで使用する前に、コードから削除する必要があります。

次のコード・スニペットは、カスタム・モジュールの空の実装です:

package com.hyperion.css.custom;

import java.util.Map;
import com.hyperion.css.CSSCustomAuthenticationIF;

public class CustomAuthenticationImpl implements CSSCustomAuthenticationIF {
      public String authenticate(Map context,String userName,
                                 String password) throws Exception{
        try{
          //Custom code to find and authenticate the user goes here.
          //The code should do the following:
          //if authentication succeeds:
                //set authenticationSuccessFlag = true
                //return authenticatedUserName
          // if authentication fails:
                //log an authentication failure
                //throw authentication exception
        }
        catch (Exception e){
          //Custom code to handle authentication exception goes here
          //Create a new exception, set the root cause
          //Set any custom error message
          //Return the exception to the caller
        }
        return authenticatedUserName;
      }
}

入力パラメータ:

  • コンテキスト: ロケール情報のキーと値のペアを含むマップ

  • ユーザー名: カスタム・モジュールがユーザーを認証するユーザー・ディレクトリにユーザーを一意に識別する識別子。ユーザーは、Oracle Enterprise Performance Management Systemコンポーネントにログインする際にこのパラメータの値を入力します。

  • パスワード: カスタム・モジュールがユーザーを認証するユーザー・ディレクトリのユーザーのパスワード・セット。ユーザーは、EPM Systemコンポーネントにログインする際にこのパラメータの値を入力します。