註:
請勿在自訂驗證程式碼中使用 log4j 來記錄錯誤。如果您在上一個版本所用的自訂驗證程式碼中使用 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 元件時,輸入此參數的值。