public abstract class BaseAuthentication
extends com.labvantage.sapphire.BaseCustom
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATION_FAIL_MESSAGE |
protected DBAccess |
database |
protected java.lang.String |
databaseid |
static int |
FAILURE |
static int |
SUCCESS |
protected javax.naming.directory.Attributes |
userAttributes |
Constructor and Description |
---|
BaseAuthentication() |
Modifier and Type | Method and Description |
---|---|
abstract void |
authenticateUser(java.lang.String userid,
java.lang.String password,
PropertyList properties) |
void |
createUser(java.lang.String userid,
java.lang.String password,
PropertyList properties) |
void |
endAuthenticate() |
protected void |
logError(java.lang.String errormsg) |
protected void |
logError(java.lang.String errormsg,
java.lang.Exception exception) |
protected void |
logTrace(java.lang.String tracemsg) |
void |
startAuthenticate(java.lang.String databaseid,
com.labvantage.sapphire.DBUtil dbutil) |
void |
synchronizeUser(java.lang.String userid,
java.lang.String password,
PropertyList properties) |
getAccessorErrorIds, getAccessorErrorMsgs, getActionProcessor, getConfigurationProcessor, getConnectionid, getConnectionId, getConnectionProcessor, getDAMProcessor, getDepartmentList, getHttpProcessor, getQueryProcessor, getRakFile, getSDCProcessor, getSDIProcessor, getSequenceProcessor, getTranslationProcessor, setConnectionId, setLanguage, setRakFile
public static final int SUCCESS
public static final int FAILURE
public static final java.lang.String AUTHENTICATION_FAIL_MESSAGE
protected DBAccess database
protected java.lang.String databaseid
protected javax.naming.directory.Attributes userAttributes
protected void logError(java.lang.String errormsg)
protected void logError(java.lang.String errormsg, java.lang.Exception exception)
protected void logTrace(java.lang.String tracemsg)
public void startAuthenticate(java.lang.String databaseid, com.labvantage.sapphire.DBUtil dbutil) throws SapphireException
SapphireException
public void endAuthenticate()
public abstract void authenticateUser(java.lang.String userid, java.lang.String password, PropertyList properties) throws SapphireException
userid
- id of the userpassword
- password to be checkedproperties
- configuration properties for third party authenticationSapphireException
- Throw an exception if authentication failed - message should be message to display to user.public void synchronizeUser(java.lang.String userid, java.lang.String password, PropertyList properties) throws SapphireException
userid
- id of the userpassword
- password to be checkedproperties
- configuration properties for third party authenticationSapphireException
- Throw an exception if synchronization failed, which should fail authentication process - message should be message to display to user.public void createUser(java.lang.String userid, java.lang.String password, PropertyList properties) throws SapphireException
userid
- id of the userpassword
- password to be checkedproperties
- configuration properties for third party authenticationSapphireException
- Throw an exception if creation of a sapphire user failed, which should fail authentication process - message should be message to display to user.