Package es.caib.seycon.ng.servei
Interface PasswordService
-
public interface PasswordService
Service PasswordService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changePassword(String account, String dispatcher, Password oldPassword, Password newPassword)
Operation changePasswordboolean
checkPassword(String account, String dispatcher, Password password, boolean checkTrusted, boolean checkExpired)
Operation checkPasswordboolean
checkPasswordExpired(String accoount, String dispatcher)
Operation checkPasswordExpiredboolean
checkPin(String user, String pin)
Operation checkPinPolicyCheckResult
checkPolicy(String account, String dispatcher, Password password)
Operation checkPolicyString
getDefaultDispatcher()
Operation getDefaultDispatcherCalendar
getPasswordExpiredDate(String account, String dispatcher)
Operation getPasswordExpiredDateString
getPolicyDescription(String account, String dispatcher)
Operation getPolicyDescription
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkPassword
boolean checkPassword(String account, String dispatcher, Password password, boolean checkTrusted, boolean checkExpired) throws InternalErrorException, InternalErrorException
Operation checkPassword- Parameters:
account
-dispatcher
-password
-checkTrusted
-checkExpired
-- Returns:
- Throws:
InternalErrorException
-
checkPasswordExpired
boolean checkPasswordExpired(String accoount, String dispatcher) throws InternalErrorException, InternalErrorException
Operation checkPasswordExpired- Parameters:
accoount
-dispatcher
-- Returns:
- Throws:
InternalErrorException
-
checkPin
boolean checkPin(String user, String pin) throws InternalErrorException, InternalErrorException
Operation checkPin- Parameters:
user
-pin
-- Returns:
- Throws:
InternalErrorException
-
checkPolicy
PolicyCheckResult checkPolicy(String account, String dispatcher, Password password) throws InternalErrorException, InternalErrorException
Operation checkPolicy- Parameters:
account
-dispatcher
-password
-- Returns:
- Throws:
InternalErrorException
-
getDefaultDispatcher
String getDefaultDispatcher() throws InternalErrorException, InternalErrorException
Operation getDefaultDispatcher- Returns:
- Throws:
InternalErrorException
-
getPolicyDescription
String getPolicyDescription(String account, String dispatcher) throws InternalErrorException, InternalErrorException
Operation getPolicyDescription- Parameters:
account
-dispatcher
-- Returns:
- Throws:
InternalErrorException
-
getPasswordExpiredDate
Calendar getPasswordExpiredDate(String account, String dispatcher) throws InternalErrorException, InternalErrorException
Operation getPasswordExpiredDate- Parameters:
account
-dispatcher
-- Returns:
- Throws:
InternalErrorException
-
changePassword
void changePassword(String account, String dispatcher, Password oldPassword, Password newPassword) throws InternalErrorException, InternalErrorException, BadPasswordException, InvalidPasswordException
Operation changePassword- Parameters:
account
-dispatcher
-oldPassword
-newPassword
-- Throws:
InternalErrorException
BadPasswordException
InvalidPasswordException
-
-