注:
您的自定义身份验证代码不应使用 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 组件时需输入此参数的值。