Package com.soffid.iam.service
Class PasswordServiceBase
- java.lang.Object
-
- com.soffid.iam.service.PasswordServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.PasswordService
- Direct Known Subclasses:
PasswordServiceImpl
public abstract class PasswordServiceBase extends Object implements com.soffid.iam.service.PasswordService
Spring Service base class for
see com.soffid.iam.service.PasswordServicecom.soffid.iam.service.PasswordService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description PasswordServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidchangePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword)booleancheckExpiredPassword(String accoount, String dispatcher)booleancheckPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired)booleancheckPin(String user, String pin)com.soffid.iam.api.PolicyCheckResultcheckPolicy(String account, String dispatcher, com.soffid.iam.api.Password password)AccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.AuditEntityDaogetAuditEntityDao()Gets reference toauditoriaEntityDao.com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.StringgetDefaultDispatcher()InternalPasswordServicegetInternalPasswordService()Gets reference tointernalPasswordService.PasswordDomainEntityDaogetPasswordDomainEntityDao()Gets reference todominiContrasenyaEntityDao.CalendargetPasswordExpiredDate(String account, String dispatcher)PasswordPolicyEntityDaogetPasswordPolicyEntityDao()Gets reference topoliticaContrasenyaEntityDao.StringgetPolicyDescription(String account, String dispatcher)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.SystemEntityDaogetSystemEntityDao()Gets reference todispatcherEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract voidhandleChangePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword)protected abstract booleanhandleCheckExpiredPassword(String accoount, String dispatcher)protected abstract booleanhandleCheckPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired)protected abstract booleanhandleCheckPin(String user, String pin)protected abstract com.soffid.iam.api.PolicyCheckResulthandleCheckPolicy(String account, String dispatcher, com.soffid.iam.api.Password password)protected abstract StringhandleGetDefaultDispatcher()protected abstract CalendarhandleGetPasswordExpiredDate(String account, String dispatcher)protected abstract StringhandleGetPolicyDescription(String account, String dispatcher)voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetAuditEntityDao(AuditEntityDao auditoriaEntityDao)Sets reference toauditoriaEntityDao.voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.voidsetInternalPasswordService(InternalPasswordService internalPasswordService)Sets reference tointernalPasswordService.voidsetPasswordDomainEntityDao(PasswordDomainEntityDao dominiContrasenyaEntityDao)Sets reference todominiContrasenyaEntityDao.voidsetPasswordPolicyEntityDao(PasswordPolicyEntityDao politicaContrasenyaEntityDao)Sets reference topoliticaContrasenyaEntityDao.voidsetSystemEntityDao(SystemEntityDao dispatcherEntityDao)Sets reference todispatcherEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao.
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao.
-
setPasswordDomainEntityDao
public void setPasswordDomainEntityDao(PasswordDomainEntityDao dominiContrasenyaEntityDao)
Sets reference todominiContrasenyaEntityDao.
-
getPasswordDomainEntityDao
public PasswordDomainEntityDao getPasswordDomainEntityDao()
Gets reference todominiContrasenyaEntityDao.
-
setInternalPasswordService
public void setInternalPasswordService(InternalPasswordService internalPasswordService)
Sets reference tointernalPasswordService.
-
getInternalPasswordService
public InternalPasswordService getInternalPasswordService()
Gets reference tointernalPasswordService.
-
setPasswordPolicyEntityDao
public void setPasswordPolicyEntityDao(PasswordPolicyEntityDao politicaContrasenyaEntityDao)
Sets reference topoliticaContrasenyaEntityDao.
-
getPasswordPolicyEntityDao
public PasswordPolicyEntityDao getPasswordPolicyEntityDao()
Gets reference topoliticaContrasenyaEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
checkPassword
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public boolean checkPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkPasswordin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckPassword
protected abstract boolean handleCheckPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired) throws Exception
- Throws:
Exception
-
checkExpiredPassword
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public boolean checkExpiredPassword(String accoount, String dispatcher) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkExpiredPasswordin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckExpiredPassword
protected abstract boolean handleCheckExpiredPassword(String accoount, String dispatcher) throws Exception
- Throws:
Exception
-
checkPin
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public boolean checkPin(String user, String pin) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkPinin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckPin
protected abstract boolean handleCheckPin(String user, String pin) throws Exception
- Throws:
Exception
-
checkPolicy
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PolicyCheckResult checkPolicy(String account, String dispatcher, com.soffid.iam.api.Password password) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkPolicyin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckPolicy
protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckPolicy(String account, String dispatcher, com.soffid.iam.api.Password password) throws Exception
- Throws:
Exception
-
getDefaultDispatcher
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String getDefaultDispatcher() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getDefaultDispatcherin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetDefaultDispatcher
protected abstract String handleGetDefaultDispatcher() throws Exception
- Throws:
Exception
-
getPolicyDescription
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String getPolicyDescription(String account, String dispatcher) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPolicyDescriptionin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPolicyDescription
protected abstract String handleGetPolicyDescription(String account, String dispatcher) throws Exception
- Throws:
Exception
-
getPasswordExpiredDate
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Calendar getPasswordExpiredDate(String account, String dispatcher) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPasswordExpiredDatein interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPasswordExpiredDate
protected abstract Calendar handleGetPasswordExpiredDate(String account, String dispatcher) throws Exception
- Throws:
Exception
-
changePassword
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void changePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.BadPasswordException, es.caib.seycon.ng.exception.InvalidPasswordException- Specified by:
changePasswordin interfacecom.soffid.iam.service.PasswordService- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptiones.caib.seycon.ng.exception.BadPasswordExceptiones.caib.seycon.ng.exception.InvalidPasswordException
-
handleChangePassword
protected abstract void handleChangePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-