Generated by
JDiff

Interface org.cyclos.impl.access.PasswordHandler

Removed Methods
void checkConfirmationPassword(String) Checks the confirmation password for the logged user, if used
void checkPassword(boolean, PasswordType, BasicUser, String) Checks the password for the given user, doing different checks if it's for login
void checkPassword(PasswordType, BasicUser, String) Checks the password for the given user
void checkSecondaryPassword(String) Checks the secondary access password for the logged user.
PasswordType getAccessPasswordType() Return the password type used as the primary (login) password for the logged user and the current channel.
PasswordInputDTO getConfirmationPasswordInput() Returns the input for the confirmation password for the logged user
PasswordType getConfirmationPasswordType() Returns the password type used to confirm operations for the logged user
PasswordInputDTO getPasswordInput(PasswordType) Returns the password input information for the logged user and the given password type
PasswordInputDTO getPasswordInput(BasicUser, PasswordType) Returns the password input information for the given user and password type
PasswordInputDTO getSecondaryPasswordInput() Returns the input used to for a secondary access password (if any) for the logged user and the current channel.
PasswordType getSecondaryPasswordType() Return the password type used as the secondary password used to finish the login process.
 

Added Methods
CredentialAccessor accessor(CredentialUsage) Return a new CredentialAccessor for the given (required) credential usage.
The returned accessor will be associated to the logged user and the current session's channel.
void checkPassword(ChannelAccessAccessor, CredentialUsage, UserPrincipal, CreateDeviceConfirmationParams, boolean, String) Checks the password / device confirmation for the given configuration, usage and user identification (i.e UserPrincipal).
The given CreateDeviceConfirmationParams object is required only when the password value represents a device confirmation.
void checkPassword(PasswordType, BasicUser, boolean, String) Use with caution: this method doesn't take into account the trusted devices.

Checks the password for the given type and user.
NOTE: In case of checking the confirmation / secondary password for the logged user use .accessor(CredentialUsage) or .checkPassword(ChannelConfiguration, CredentialUsage, BasicUser, CreateDeviceConfirmationParams, boolean, String)
PasswordInputDTO getPasswordInput(ChannelAccessAccessor, CredentialUsage, BasicUser) Returns the password input information for the given user, usage and channel configuration.
PinInputDTO toPinInput(ChannelAccessAccessor) Returns a PinInputDTO compatible with the given channel access
boolean wasConfirmationPasswordCheckedwithDevice() Returns true if the confirmation password (CredentialUsage.CONFIRMATION) was already checked and also if the check was made with a trusted device.