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 void
changePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword)
boolean
checkExpiredPassword(String accoount, String dispatcher)
boolean
checkPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired)
boolean
checkPin(String user, String pin)
com.soffid.iam.api.PolicyCheckResult
checkPolicy(String account, String dispatcher, com.soffid.iam.api.Password password)
AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfiguracioService
.String
getDefaultDispatcher()
InternalPasswordService
getInternalPasswordService()
Gets reference tointernalPasswordService
.PasswordDomainEntityDao
getPasswordDomainEntityDao()
Gets reference todominiContrasenyaEntityDao
.Calendar
getPasswordExpiredDate(String account, String dispatcher)
PasswordPolicyEntityDao
getPasswordPolicyEntityDao()
Gets reference topoliticaContrasenyaEntityDao
.String
getPolicyDescription(String account, String dispatcher)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract void
handleChangePassword(String account, String dispatcher, com.soffid.iam.api.Password oldPassword, com.soffid.iam.api.Password newPassword)
protected abstract boolean
handleCheckExpiredPassword(String accoount, String dispatcher)
protected abstract boolean
handleCheckPassword(String account, String dispatcher, com.soffid.iam.api.Password password, boolean checkTrusted, boolean checkExpired)
protected abstract boolean
handleCheckPin(String user, String pin)
protected abstract com.soffid.iam.api.PolicyCheckResult
handleCheckPolicy(String account, String dispatcher, com.soffid.iam.api.Password password)
protected abstract String
handleGetDefaultDispatcher()
protected abstract Calendar
handleGetPasswordExpiredDate(String account, String dispatcher)
protected abstract String
handleGetPolicyDescription(String account, String dispatcher)
void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.void
setInternalPasswordService(InternalPasswordService internalPasswordService)
Sets reference tointernalPasswordService
.void
setPasswordDomainEntityDao(PasswordDomainEntityDao dominiContrasenyaEntityDao)
Sets reference todominiContrasenyaEntityDao
.void
setPasswordPolicyEntityDao(PasswordPolicyEntityDao politicaContrasenyaEntityDao)
Sets reference topoliticaContrasenyaEntityDao
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setUserEntityDao(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:
checkPassword
in 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:
checkExpiredPassword
in 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:
checkPin
in 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:
checkPolicy
in 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:
getDefaultDispatcher
in 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:
getPolicyDescription
in 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:
getPasswordExpiredDate
in 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:
changePassword
in interfacecom.soffid.iam.service.PasswordService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
es.caib.seycon.ng.exception.BadPasswordException
es.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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-