public class SecurityMgrEE extends SecurityMgr implements SecurityMgrIf
SecurityMgr.LoginAttempt, SecurityMgr.StaticData
availableChars, DEFAULT_PASSWORD_CHARACTERS, log, mutex, staticDataHM
templateBaseDir
Constructor and Description |
---|
SecurityMgrEE(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomDataToSession(java.lang.String sessionId,
java.lang.String data,
int position)
A sessionId is created when a customer logs in to KonaKart using the login() API call.
|
protected com.konakart.app.KKException |
createNotFoundException(java.lang.String username,
int usernameType)
Creates an exception depending on the usernameType
|
ExternalLoginResult |
externalLogin(ExternalLoginInputIf loginInfo)
Used for logging in customers using a mechanism outside of KonaKart such as social login
using Facebook.
|
java.lang.String |
getCustomDataFromSession(java.lang.String sessionId,
int position)
A sessionId is created when a customer logs in to KonaKart using the login() API call.
|
protected void |
setCriteriaForUsernameType(java.lang.String username,
int usernameType,
KKCriteria c)
Sets the criteria depending on the username type
|
CaptchaResultIf |
validateCaptcha(CaptchaInputIf captchaInfo)
Used for validate captcha
|
byteToHex, changePassword, checkAdminSession, checkFileAccess, checkPassword, checkPassword, checkSession, createSessionId, enableCustomer, encrypt, externalCredentialsCheck, getAvailableChars, getExpiryTimeInSecs, getLDAPMgr, getLoginIntegrationMgr, getPermittedLocations, getRandomPassword, getSessionDurationInSecs, getSessionUpdateThresholdInSecs, getSSOToken, getStaticDataHM, getTimeInSecs, insertSessionId, isUserBlocked, login, login, loginByAdmin, loginWithOptions, logout, refreshConfigs, removeSession, removeUser, saveSSOToken, sendNewPassword, sendNewPassword1, setAvailableChars, setNewPassword, toHexChar, validatePassword
acquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changePassword, checkAdminSession, checkFileAccess, checkSession, enableCustomer, encrypt, getRandomPassword, getSSOToken, getTimeInSecs, login, login, loginByAdmin, loginWithOptions, logout, refreshConfigs, saveSSOToken, sendNewPassword, sendNewPassword1, setNewPassword, validatePassword
public SecurityMgrEE(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void addCustomDataToSession(java.lang.String sessionId, java.lang.String data, int position) throws org.apache.torque.TorqueException, com.konakart.app.KKException
addCustomDataToSession
in interface SecurityMgrIf
addCustomDataToSession
in class SecurityMgr
sessionId
- The sessionIddata
- The data to be savedposition
- This must be in the range of 1-5 to identify custom1 to custom5org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionpublic java.lang.String getCustomDataFromSession(java.lang.String sessionId, int position) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCustomDataFromSession
in interface SecurityMgrIf
getCustomDataFromSession
in class SecurityMgr
sessionId
- The sessionIdposition
- This must be in the range of 1-5 to identify custom1 to custom5com.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public ExternalLoginResult externalLogin(ExternalLoginInputIf loginInfo) throws java.lang.Exception
com.konakart.bl.modules.others.ExternalLoginInterface
) must be present in the
system and must have been installed and activated.
The function of this method is to instantiate the module, to call its
externalLogin
method and to return the result from the module which should
contain a KonaKart sessionId if the login was successful.
externalLogin
in interface SecurityMgrIf
externalLogin
in class SecurityMgr
loginInfo
- Contains the information required by the module to perform the loginjava.lang.Exception
- an unexpected exceptionprotected void setCriteriaForUsernameType(java.lang.String username, int usernameType, KKCriteria c) throws com.konakart.app.KKException
setCriteriaForUsernameType
in class SecurityMgr
username
- the usernameusernameType
- the usernameTypec
- the ccom.konakart.app.KKException
- an unexpected KKException exceptionprotected com.konakart.app.KKException createNotFoundException(java.lang.String username, int usernameType)
createNotFoundException
in class SecurityMgr
username
- the usernameusernameType
- the usernameTypepublic CaptchaResultIf validateCaptcha(CaptchaInputIf captchaInfo) throws java.lang.Exception
validateCaptcha
in interface SecurityMgrIf
validateCaptcha
in class SecurityMgr
captchaInfo
- Contains the information required by the module to perform the validationjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.