주:
사용자정의 인증 코드는 오류 로깅에 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;
}
}
입력 매개변수:
컨텍스트: 로케일 정보 키-값 쌍이 포함된 맵
사용자 이름: 사용자정의 모듈이 사용자를 인증하는 사용자 디렉토리에 대해 사용자를 고유하게 확인하는 ID. 사용자가 Oracle Enterprise Performance Management System 구성요소에 로그인할 때 이 매개변수 값을 입력합니다.
비밀번호: 사용자정의 모듈이 사용자를 인증하는 사용자 디렉토리의 사용자에 대해 설정된 비밀번호. 사용자가 EPM System 구성요소에 로그인할 때 이 매개변수 값을 입력합니다.