public class AuthenticationRepository extends BaseRepository
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
backendUser |
private static java.lang.String |
BUYER_RSC_PREFIX |
private static java.lang.String |
CLASSNAME |
(package private) static java.lang.String |
COPYRIGHT |
private static java.lang.String |
DEFAULT_RESOURCE_FILE_NAME |
private static org.apache.log4j.Logger |
logger |
private static AuthenticationRepository |
repository |
private static java.lang.String |
SUPPLIER_RSC_PREFIX |
Modifier | Constructor and Description |
---|---|
private |
AuthenticationRepository()
Users should use static getInstance() method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(CredentialBean theBean)
Authenticates a (credential) bean against data found in the repository.
|
private boolean |
authenticateBuyer(CredentialBean theBean)
Authenticates a buyer against data found in the repository.
|
private boolean |
authenticateSupplier(CredentialBean theBean)
Authenticates a supplier against data found in the repository.
|
java.lang.String |
getBackendUser() |
static AuthenticationRepository |
getInstance() |
protected java.lang.String |
getName() |
lookup, lookup
static final java.lang.String COPYRIGHT
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private static final java.lang.String BUYER_RSC_PREFIX
private static final java.lang.String SUPPLIER_RSC_PREFIX
private static final java.lang.String DEFAULT_RESOURCE_FILE_NAME
private java.lang.String backendUser
private static AuthenticationRepository repository
private AuthenticationRepository()
protected java.lang.String getName()
getName
in class BaseRepository
public static AuthenticationRepository getInstance()
public java.lang.String getBackendUser()
public boolean authenticate(CredentialBean theBean) throws AuthenticationException
theBean
- - the bean containing credentials to authenticateAuthenticationException
- - thrown if credential information is found in the repository, but does not match the bean dataprivate boolean authenticateBuyer(CredentialBean theBean) throws AuthenticationException
theBean
- - the bean containing credentials to authenticateAuthenticationException
- - thrown if credential information is found in the repository, but does not match the bean dataprivate boolean authenticateSupplier(CredentialBean theBean) throws AuthenticationException
theBean
- - the bean containing credentials to authenticateAuthenticationException
- - thrown if credential information is found in the repository, but does not match the bean data