public class SecurityMgrEE extends SecurityMgr implements SecurityMgrIf
SecurityMgr.LoginAttempt, SecurityMgr.StaticDataavailableChars, DEFAULT_PASSWORD_CHARACTERS, log, mutex, staticDataHMtemplateBaseDir| 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, validatePasswordacquireLock, 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, updateStaticVariablesNowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangePassword, checkAdminSession, checkFileAccess, checkSession, enableCustomer, encrypt, getRandomPassword, getSSOToken, getTimeInSecs, login, login, loginByAdmin, loginWithOptions, logout, refreshConfigs, saveSSOToken, sendNewPassword, sendNewPassword1, setNewPassword, validatePasswordpublic 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 SecurityMgrIfaddCustomDataToSession in class SecurityMgrsessionId - 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 SecurityMgrIfgetCustomDataFromSession in class SecurityMgrsessionId - 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 SecurityMgrIfexternalLogin in class SecurityMgrloginInfo - 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 SecurityMgrusername - 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 SecurityMgrusername - the usernameusernameType - the usernameTypepublic CaptchaResultIf validateCaptcha(CaptchaInputIf captchaInfo) throws java.lang.Exception
validateCaptcha in interface SecurityMgrIfvalidateCaptcha in class SecurityMgrcaptchaInfo - Contains the information required by the module to perform the validationjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.