1
인증 자의 복제 방법은 개체 구성원의 전체 복사본을 만듭니다. 왜 복제가 사용자 정의 인증 및 로그인 모듈에 사용됩니까?
public WorkLightAuthenticator clone() throws CloneNotSupportedException {
MyCustomAuthenticator otherAuthenticator = (MyCustomAuthenticator) super.clone();
otherAuthenticator.authenticationData = new HashMap<String, Object>(authenticationData);
return otherAuthenticator;
}
- 우리는 왜 대상 부재의 사본이 필요합니다?
- 사본이 생성 된 경우 사본을 사용하고 있습니까?
- 복제본 사용에 대한 시나리오와 저장 위치는 무엇입니까?
- "authenticationData"에 복사 된 데이터는 모두 무엇입니까?