Class NoOpCredential
java.lang.Object
com.easydesk.security.credentials.NoOpCredential
- All Implemented Interfaces:
CredentialService
This class authenticates by returning TRUE always. Regardless of the user and
password data. 테스트 또는 인증이 필요없는 환경에서 사용한다.
- Version:
- $Id$
- Author:
- Eric Pugh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(User user, String password) 항상 인증에 성공한다.voidsetPassword(User user, String newPassword) 아무 것도 하지 않는다.
-
Constructor Details
-
NoOpCredential
public NoOpCredential()
-
-
Method Details
-
authenticate
public boolean authenticate(User user, String password) throws PasswordMismatchException, UnknownEntityException, DataBackendException 항상 인증에 성공한다.- Specified by:
authenticatein interfaceCredentialService- Parameters:
user- 사용자 (사용하지 않는다)password- password (사용하지 않는다)- Returns:
- 항상
true - Throws:
PasswordMismatchException- password 를 검증할 수 없는 경우UnknownEntityException- 사용자가 존재하지 않는 경우DataBackendException- 저장소 접근 중 오류가 발생한 경우
-
setPassword
public void setPassword(User user, String newPassword) throws UnknownEntityException, DataBackendException 아무 것도 하지 않는다.- Specified by:
setPasswordin interfaceCredentialService- Parameters:
user- 사용자 (사용하지 않는다)newPassword- 새 password (사용하지 않는다)- Throws:
UnknownEntityException- 사용자가 존재하지 않는 경우DataBackendException- password 변환 또는 저장 중 오류가 발생한 경우
-