이 규칙은 더 이상 사용되지 않는 다음 메소드를 플래그 지정합니다.
이 메서드는 다음에서 더 이상 사용되지 않습니다 WebSphere Application Server 버전 5.1
사용해야 합니다 com.ibm.websphere.security.auth.WSSubject.getRunAsSubject() 또는 com.ibm.websphere.security.auth.WSSubject.getCallerSubject() 메서드를 대신 사용합니다.
다음 예제는 자동화된 수정이 어떻게 레거시 WSPrincipal.getCredential( )를 권장 WSSubject.getCallerSubject( ) :
com.ibm.websphere.security.cred.WSCredential 자격 증명 = null; try { javax.security.auth.Subject subject = com.ibm.websphere.security.auth.WSSubject.getCallerSubject(); if (subject!= null) { credential = subject.getPublicCredentials(WSCredential.class).iterator().next(); } } catch (Exception e) { e.printStackTrace(); // 적절한 로깅 고려 } 자격 증명을 반환합니다;
이 규칙에는 네임스페이스 값을 업데이트하기 위한 자동화된 수정사항이 있습니다. 수정사항 자동화를 사용으로 설정하려면 사용자 정의 구성을 애플리케이션 빌드 파일에 복사하십시오.
추가 클래스 정보는 다음을 참조하십시오.